Skip to main content

For AI agents: docs.octen.ai/integrations/octen-cli.md

@octen.ai/cli is the official command-line tool for Octen. One command wires Octen’s MCP server and Agent Skills into your AI client. It also brings the full Octen API straight to your terminal.

Get API Key

Create a key from the API Platform.

GitHub

View the source and releases.

npm

The @octen.ai/cli package.

Install

Requires Node.js 18+.
Or run without installing: npx @octen.ai/cli <command>.

Authenticate

You’ll need an Octen API key first. Create one from the API Platform.
Log in once through your browser. The CLI stores the key in ~/.octen/credentials.json, and every command picks it up automatically:
Or set your key as an environment variable:
You can also pass --api-key <key> on any single command. When more than one is set, --api-key wins over OCTEN_API_KEY, which wins over the stored login. To point at a staging or self-hosted endpoint, set OCTEN_API_URL or pass --base-url <url>. Run octen whoami to see the stored login. octen logout revokes this device’s login and removes the stored key; the API key itself stays active.

Set Up Your AI Agent

One command merges the Octen MCP server or Agent Skills into your client.
Install the Octen Skills into your AI agent:
Supported: Claude Code, Cursor, Codex, OpenClaw, Hermes. For Claude Desktop, use —claude-code.
--all configures every client found on your machine at once.

Use Octen from the Terminal


Last modified on November 3, 2026