Repository navigation
3.0.0 (2026-12-02)
OneCLI 3.0 replaces workspaces and per-agent grants with vaults. Put API keys, LLM keys and connected apps in a vault, connect agents to it, and set what they may do with each item.
What's new
- Vaults and items. A vault holds secrets and connected apps. Every agent on a vault shares its permissions, and each agent gets its own credential (
oc_agent_). - Permissions per item. Set each tool to Always allow, Needs approval or Never. The gateway checks every call against the vault and attaches the key.
- Rules. Block, require approval or rate-limit across the organization.
- API v2. A documented
/v2API for vaults, items, agents and permissions. - Apache-2.0 only. Every file in the repo is Apache-2.0, and contributions come in under the same license, with no CLA to sign.
Before you upgrade
3.0 breaks old credentials. Read the upgrade guide first: https://onecli.sh/docs/self-hosting/upgrade-v3
- Take a database snapshot you have restored once, and save the gateway's data volume.
- Add
CREDENTIAL_PEPPER_SECRET(32 characters or more) to the API and the gateway. Re-running the installer adds it. - Deploy 3.0.0 pinned (
ONECLI_VERSION=3.0.0), notlatest. - Run the vault data move by hand (
vault-move.mjs: check, dry run, then--apply). Starting the containers does not run it. - Make new API keys at Settings > API keys, connect each agent again, and update the CLI and SDK.
The full list of breaking changes is below.
⚠ BREAKING CHANGES
- The hosted agent routes are gone from /v1: /agents runs, crons, channels, webhooks, memory, usage, evals, approval outcomes, library skills and sandbox ports, and /runs, /turns, /conversations, /usage, /skills, /runner, /runners, /channels, /channel-adapter, /hooks, /ssh-terminator, /preview-auth, /preview-relay, /org/channels, /org/skills and /org/skill-library.
- Invitations are no longer part of this edition: /v1/invitations and /v1/org/invitations are not served.
- An agent's credential (oc_agent_) on a route that is for a person now gets 403 with code person_required ("This call is for a person, not an agent."), where it used to get 401. Scripts that read 401 as "sign in again" should treat person_required as "use a person's key".
- The self-hosted agent runner is gone: the runner, ssh-terminator and channel-adapter services leave docker-compose.yml, and the chart drops runner, sandboxes, channelAdapter and slackSharedApp with their RUNNER_, TERMINATOR_, CHANNEL_ADAPTER_* and SLACK_SHARED_* settings.
- ENTERPRISE_ENABLED is no longer read: it leaves docker-compose.yml and the chart's enterpriseEnabled value, and everything in this repo is Apache-2.0.
- API keys made before 3.0 (oc_ and oc_org_) stop working when the 3.0 migrations run: the table that held them is dropped. Make a new key at Settings > API keys and move the CLI, the SDK and your scripts to it (with a new key, the /v1 calls that act in a workspace need the X-Workspace-Id header).
- Agent tokens made before 3.0 (aoc_) stop working: the gateway no longer takes them and the 3.0 migrations drop the column that held them. Connect each agent to its vault again (Connect agent in the dashboard, POST /v2/agents or a connect token) so it gets its own credential (oc_agent_), then remove the agents from before 3.0, which stay listed.
- GET and POST /v1/agents and GET /v1/container-config answer 410 with the way forward: an agent connects with POST /v2/agents, GET /v2/agents lists the agents and an agent reads its gateway settings from GET /v2/agents/me. CLI and SDK releases that still call them fail with that message: update them.