Initialize OneCLI Agent Vault
Installs OneCLI and migrates your NanoClaw project's .env API credentials into the Agent Vault gateway.
UtilitiesAdvanced★ 30,471⑂ 12,865AI score 8/10Last updated: Aug 9, 2026
What it does
- Installs the OneCLI gateway and CLI, fixes PATH, and writes
ONECLI_URLinto.env. - Migrates credentials such as
ANTHROPIC_API_KEY,CLAUDE_CODE_OAUTH_TOKEN, andOPENAI_API_KEYinto the vault, then strips the raw lines from.env. - Deliberately leaves channel tokens (Telegram, Slack, Discord) in
.envbecause the host process needs them. - Handles rebuild, service restart (launchd/systemd/manual), log verification, and gateway health polling.
- Includes a canonical safe-merge pattern for granting secrets to agents and tips for git over HTTPS through the OneCLI proxy.
Who it's for
- NanoClaw operators moving to OneCLI after
/update-nanoclawlands the breaking change. - Teams who want container agents to never see raw API keys while applying rate limits and policies.
- Self-hosters uncomfortable with plaintext keys sitting in
.env.
Example uses
- Run
/init-onecliright after an update introduces OneCLI, migrating every Anthropic credential in one pass. - First-time setup: choose between a Claude Pro/Max subscription token or an Anthropic API key, registered via dashboard or headless CLI.
- Recover from "OneCLI gateway not reachable" log errors by inspecting the Docker Compose stack and bringing it back up.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/nanocoai/nanoclaw/HEAD/.claude/skills/init-onecli/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .claude/skills/init-onecli folder from the GitHub repo nanocoai/nanoclaw into my ~/.claude/skills/init-onecli/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/nanocoai/nanoclaw.git /tmp/nanoclaw && mkdir -p ~/.claude/skills && cp -r /tmp/nanoclaw/.claude/skills/init-onecli ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/nanocoai/nanoclaw.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r nanoclaw/.claude/skills/init-onecli ~/.claude/skills/ - Confirm prerequisites: Docker running,
pnpminstalled, and you are in your NanoClaw project root. - Back up your credentials file first:
cp .env .env.bak - Start Claude Code in the project folder and ask it to "initialize the OneCLI Agent Vault", or run
/init-onecli. - Answer the prompts (subscription token vs API key, which secrets to migrate), then confirm with
onecli secrets list.
View source on GitHub ↗License: MIT