CLI for OneCLI — manage agents, secrets, and configuration from the terminal.
curl -fsSL onecli.sh/cli/install | shOr download from GitHub Releases, or build from source:
go install github.com/onecli/onecli-cli/cmd/onecli@latestonecli auth login --api-key oc_...
onecli agents list
onecli secrets list
onecli agents create --name "My Agent" --identifier my-agentonecli agents list List all agents
onecli agents get-default Get the default agent
onecli agents create --name X --identifier Y Create a new agent
onecli agents delete --id X Delete an agent
onecli agents rename --id X --name Y Rename an agent
onecli agents regenerate-token --id X Regenerate access token
onecli agents secrets --id X List assigned secrets
onecli agents set-secrets --id X --secret-ids a,b Set assigned secrets
onecli agents set-secret-mode --id X --mode selective Set secret mode
onecli secrets list List all secrets
onecli secrets create --name X --type anthropic ... Create a new secret
onecli secrets update --id X --value Y Update a secret
onecli secrets delete --id X Delete a secret
onecli auth login [--api-key oc_...] Store API key
onecli auth logout Remove stored API key
onecli auth status Check current auth state
Authentication is only required when the server enforces it. In local mode, commands work without logging in.
onecli config get <key> Read config value
onecli config set <key> <value> Write config value
| Variable | Description |
|---|---|
ONECLI_API_KEY |
API key (overrides stored key) |
ONECLI_API_HOST |
API base URL (default: https://app.onecli.sh) |
ONECLI_ENV |
dev or production |
All output is JSON. Filter with --fields, extract single values with --quiet:
onecli agents list --quiet id
onecli agents list --fields id,name,secretModeApache 2.0