Skip to content

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.

  1. Run the setup command for your agent. For Codex, use this command.
Terminal window
npx --yes agent-data@latest init --codex
  1. Complete browser approval if setup requests it.
  2. Return to the terminal.
  3. 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.

Coding agentSetup command
Codexnpx --yes agent-data@latest init --codex
Claude Codenpx --yes agent-data@latest init --claude-code
OpenClawnpx --yes agent-data@latest init --open-claw
Hermesnpx --yes agent-data@latest init --hermes
NanoClawnpx --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.

  1. Install the CLI.
  2. Start browser approval.
Terminal window
npm install -g agent-data@latest
agent-data auth login
  1. Complete browser approval.
  2. Return to the terminal.

Run these commands.

Terminal window
agent-data --version
agent-data auth status

agent-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.

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.

What you seeWhat 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.

Use MCP setup if your client needs remote tools. See CLI options for terminal setup flags.