CLI (omni)
CLI Installation & Auth
Install the omni command-line tool and configure local credential storage.
The omni CLI provides command-line access to the Omni platform, allowing you to run agent sessions, inspect usage, verify credentials, and check system health directly from your terminal.
Installation
npm install -g @omni-os/cliAuthentication & Credential Storage
The CLI resolves credentials using the following precedence order:
OMNI_API_KEYenvironment variable (highest priority)- Local config file:
~/.omni/config.json
Logging In
Store your API key securely into local configuration:
omni auth login --key omni_sk_live_1234567890abcdef...[!SECURITY] Filesystem Permissions: The configuration file
~/.omni/config.jsonis created with strict0600(read/write by owner only) permissions. Never commit or expose your config directory.
Verifying Identity
Check which account and scopes are active:
omni auth whoamiOutput:
Authenticated as: usr_94a645d99c3a
Key Prefix: omni_sk_live_1234...
Scopes: chat, memory:read, memory:write, usage:read
Status: Valid