CLI tool for the Otonix sovereign compute platform — initialize agents, generate API keys, register, monitor status, and manage infrastructure from the terminal.
Global install:
npm install -g @otonix/cliOr run without installing:
npx @otonix/cli <command>The CLI depends on Node.js 18+ and the
@otonix/sdk.
otonix keygen my-key # generate new API key (dashboard token needs to be provided)
otonix init # configure endpoint + API key
otonix register --name my-bot # register an agent
otonix heartbeat:loop # start sending heartbeats
otonix log "Hello world" # record an action
otonix status # inspect agent status-
initInteractive setup: prompts for endpoint (default:https://app.otonix.tech) and API key, validates key format and verifies authentication. -
keygen <name>Generate an API key via the dashboard token. The token is obtained from the Otonix web UI (SESSION_SECRET). The new key is printed and must be saved immediately. -
register [--name X] [--model X] [--wallet X] [--interval N]Register a new autonomous agent. Prompts for missing parameters, auto-detects public IP by querying ipify, and savesagentId/agentNameto local config. -
heartbeatSend a single heartbeat to the platform. -
heartbeat:loopRun a continuous heartbeat loop using the agent's configured interval. HandlesSIGINTto stop gracefully. -
statusShow detailed status of the registered agent. -
agentsList all agents associated with the configured API key. -
actions [--limit N]Display recent action log entries for the current agent (default limit 20). -
log <message> [--category X] [--details X]Record an action for the agent. Defaults to categorysystemand marks the action as autonomous. -
domainsList DNS domains owned by the account. -
sandboxesList sandboxes (VPS instances) for the account. -
engineShow status of the autonomic engine (tiers, thresholds, etc.). -
x402Display payment configuration such as treasury address, USDC contract, and chain info. -
whoamiPrint current configuration (endpoint, masked API key, agent ID/name). -
version,-v,--versionPrint the CLI version. -
help,-h,--helpShow this help text.
All settings are stored in ~/.otonix/config.json with 0o600 permissions. Example:
{
"apiKey": "otonix_abc123...",
"endpoint": "https://app.otonix.tech",
"agentId": "...",
"agentName": "my-bot"
}npm install
npm run lint # type check
npm run build # produce dist/cli.js
npm run dev # watch modeThe repository contains GitHub Actions workflows for CI and npm publishing.
MIT