Octo CLI (v0.8.0) is a Node.js CLI tool (requires Node >=22) for interacting with Octopus Observability platform — querying logs, alerts, traces, metrics, RUM data, LLM spans, and service topology. It provides a context+skill+tool framework designed for AI agents: agents automatically load project context (.claude/rules), use skills for troubleshooting workflows, and execute CLI commands. Releases are active on npm. Key differentiator: agents auto-generate and refresh context from code analysis and live topology data, and can parse Octopus URLs directly as query inputs. Ships TypeScript types.
npm install octo-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates login, project initialization, and common observability queries (logs, traces, metrics, alerts) using octo-cli via npx.
Use ESM imports (import octo from 'octo-cli') or dynamic import (const octo = await import('octo-cli')).Upgrade Node to v22+ or use nvm/n to manage versions.
Generate a PAT from Octopus UI under User Settings > Tokens.
Run npx octo-cli from project root or pass --cwd <path> on all commands.
Use 'octo-cli rum-explorer list' instead of 'octo-cli rum list'.
Convert to ESM ("type": "module" in package.json) or use dynamic import: const octo = await import('octo-cli').Upgrade Node.js to v22+ via nvm (nvm install 22) or download from nodejs.org.
Use -e production instead of -e prod.
Verify the token has the appropriate roles (e.g., 'observability:read') in Octopus UI.
Install @modelcontextprotocol/sdk: npm install @modelcontextprotocol/sdk.