Skip to main content
The OneCLI skill is a short Markdown page for agents. It says what OneCLI is, how to connect, how to call an API through the gateway, and what to do when a call is held. It holds no key and nothing about your organization, so anyone may read it.

Where to read it

All three hold the same text. When they differ for a moment after a release, /v2/skill is the one that is right.
An agent that is not connected yet reads Sign up as an agent (auth.md) first. The skill links the same steps.

Install it with onecli attach

onecli attach puts the skill into an agent’s own skills folder, so the agent loads it from its next start:
It fetches /v2/skill, adds frontmatter named onecli, and writes it to the agent’s skills folder, such as ~/.claude/skills/onecli/SKILL.md. For Claude Code it also writes the proxy settings into ~/.claude/settings.json. With no agent named, it attaches to every agent it finds in your home folder: claude, cursor, codex, hermes, opencode and openclaw. onecli disconnect undoes it. Run onecli attach only in the place the agent runs, after it is connected. A coding agent that manages your vaults for you never attaches itself.

The gateway skill that onecli run adds

onecli run installs a second, narrower skill named onecli-gateway. It tells an agent inside a session what to do when a tool reports a missing credential or a 401: the gateway adds the key, so it should not start another sign-in flow.
  • onecli run fetches it from GET /v1/skill/gateway?agent_framework=<agent>. Some agents get their own variant.
  • It writes it to the agent’s folder, such as ~/.claude/skills/onecli-gateway/SKILL.md, and to ~/.onecli/skills/gateway.md. The second path is in ONECLI_GATEWAY_SKILL_PATH, for any agent to find.
  • When the fetch fails, onecli uses a copy built into the binary.
You don’t install it yourself. It is active only when HTTPS_PROXY holds an agent credential, as it does under onecli run.

Which to use

Next steps