Install AgentOps

One command, site-hosted, versioned.

Install the CLI from the AgentOps website tarball, then initialize your project and verify the hooks. No npm package-name lookup, no account required to start.

$ npm i -g https://useagentops.com/download/agentops-latest.tgz

First run

From your project root, run the install workflow. It creates local config and storage, installs hook wrappers, and registers supported host integrations where possible.

$ agentops install
$ agentops hooks status
$ agentops status

Agent-specific setup

  • Claude Code: agentops hooks install claude
  • Codex CLI: agentops hooks install codex
  • Gemini CLI: agentops hooks install gemini
  • OpenCode: agentops opencode install

For AI coding agents

AGENTOPS_INSTALL_COMMAND="npm i -g https://useagentops.com/download/agentops-latest.tgz" AGENTOPS_FIRST_RUN="agentops install" AGENTOPS_VERIFY_COMMANDS="agentops hooks status && agentops status" AGENTOPS_SUPPORTED_AGENTS="claude,codex,gemini,opencode" AGENTOPS_VERSION_MANIFEST="https://useagentops.com/download/latest.json" AGENTOPS_PRIVACY="Local SQLite by default. agentops submit sends score, grade, token counts, cache stats, and numeric CES fields only; no source code, file paths, prompts, transcripts, or raw output."

Troubleshooting

  • If hooks are missing, rerun the agent-specific hook command above, then agentops hooks status.
  • If you are not logged in, local reporting still works; run agentops login before agentops submit or dashboard sync.
  • If agentops status has no remote data, verify login and run a normal agent session first.