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.
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:
/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 runfetches it fromGET /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 inONECLI_GATEWAY_SKILL_PATH, for any agent to find. - When the fetch fails,
onecliuses a copy built into the binary.
HTTPS_PROXY holds an agent credential, as it does under onecli run.