Skip to content

Local configuration

agent-data whoami reads local CLI configuration. It reports API-key settings from the environment or ~/.agent-data/config.json.

Terminal window
agent-data whoami

This 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
}
FieldMeaning
api_key_setWhether a configured API key exists locally.
api_key_sourceThe local source: env, config, or null.
api_key_redactedA masked key that can include credential fragments.
config_path, config_existsThe path and existence of the API-key configuration file.
base_urlThe service URL from the environment or the default service.
agent_typeThe value of AGENT_DATA_AGENT_TYPE, or null.

The configuration file lives here.

~/.agent-data/
└── config.json

whoami --help shows command help. This command has no credential or service override options. Review paths and credential fragments before you share output.

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.