Install the CLI
The agent-data CLI runs in your terminal or coding agent. It is the recommended interface for API requests.
You need Node.js 22.20.0 or later, npm, and an agent-data account. Check your Node.js version with node --version.
Use a coding agent
Section titled “Use a coding agent”- Run the setup command for your agent. For Codex, use this command.
npx --yes agent-data@latest init --codex- Complete browser approval if setup requests it.
- Return to the terminal.
- Restart your coding agent so it discovers the installed skills.
Setup installs or updates the global CLI and the skills for your selected agent. If the browser does not open, use the printed approval URL.
Select an agent
Section titled “Select an agent”| Coding agent | Setup command |
|---|---|
| Codex | npx --yes agent-data@latest init --codex |
| Claude Code | npx --yes agent-data@latest init --claude-code |
| OpenClaw | npx --yes agent-data@latest init --open-claw |
| Hermes | npx --yes agent-data@latest init --hermes |
| NanoClaw | npx --yes agent-data@latest init --nano-claw |
Omit the target flag to detect supported agent directories. If setup finds none, select a flag from the table.
NanoClaw also requires its repository path. Interactive setup asks for the path. Supply --nano-claw-path to specify it directly.
Use the terminal directly
Section titled “Use the terminal directly”- Install the CLI.
- Start browser approval.
npm install -g agent-data@latestagent-data auth login- Complete browser approval.
- Return to the terminal.
Check your connection
Section titled “Check your connection”Run these commands.
agent-data --versionagent-data auth statusagent-data --version prints the installed version. agent-data auth status checks the selected credential against the service.
This response excerpt comes from CLI 0.13.0 on November 14, 2026. It omits identity and other account fields.
{ "status": "authenticated", "baseUrl": "https://agent-data.motie.dev", "credential": "oauth", "account": { "authenticated": true, "can_make_calls": true }}authenticated means the service accepted the credential. can_make_calls reports account eligibility at the response time. See account status for the other eligibility fields.
Continue to get your first real data.
Existing keys and unattended environments
Section titled “Existing keys and unattended environments”For a job or container, supply AGENT_DATA_API_KEY through your environment’s secret manager. Check the credential with agent-data auth status.
init can reuse a saved login or configured API key. With an environment API key, agent-data init --codex --yes completes setup without browser approval.
--yes skips setup confirmations. It does not skip browser approval when no credential exists. NanoClaw also requires --nano-claw-path with --yes.
init --api-key saves an explicit key locally. See credential selection and storage.
If setup stops
Section titled “If setup stops”| What you see | What to do |
|---|---|
| The CLI command is missing. | Install it with npm install -g agent-data@latest. |
| Your coding agent cannot find its skills. | Repeat setup with the correct target flag. Restart the agent. |
| Browser approval stops before completion. | Resume the saved login attempt. |
| Setup reports a partial installation. | Follow the error’s next action. |
Check access with agent-data auth status after the correction.
When to use MCP
Section titled “When to use MCP”Use MCP setup if your client needs remote tools. See CLI options for terminal setup flags.