Local configuration
agent-data whoami reads local CLI configuration. It reports API-key settings from the environment or ~/.agent-data/config.json.
agent-data whoamiThis command does not contact the account service or describe the selected OAuth login. See credential precedence for credential selection.
This November 14, 2026 excerpt omits credential fragments and the path containing the local username.
{ "api_key_set": true, "api_key_source": "config", "config_exists": true, "base_url": "https://agent-data.motie.dev", "agent_type": null}| Field | Meaning |
|---|---|
api_key_set | Whether a configured API key exists locally. |
api_key_source | The local source: env, config, or null. |
api_key_redacted | A masked key that can include credential fragments. |
config_path, config_exists | The path and existence of the API-key configuration file. |
base_url | The service URL from the environment or the default service. |
agent_type | The value of AGENT_DATA_AGENT_TYPE, or null. |
The configuration file lives here.
~/.agent-data/└── config.jsonwhoami --help shows command help. This command has no credential or service override options. Review paths and credential fragments before you share output.
When to check the service instead
Section titled “When to check the service instead”Use agent-data auth status to check the selected credential against the service. Use agent-data account for allowance and credits.
MCP whoami contacts the server for the connected account identity. It differs from the local CLI command.