Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

Initialize OneCLI Agent Vault

Installs OneCLI and migrates your NanoClaw project's .env API credentials into the Agent Vault gateway.

UtilitiesAdvanced30,47112,865AI score 8/10Last updated: Aug 9, 2026

What it does

  • Installs the OneCLI gateway and CLI, fixes PATH, and writes ONECLI_URL into .env.
  • Migrates credentials such as ANTHROPIC_API_KEY, CLAUDE_CODE_OAUTH_TOKEN, and OPENAI_API_KEY into the vault, then strips the raw lines from .env.
  • Deliberately leaves channel tokens (Telegram, Slack, Discord) in .env because 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-nanoclaw lands 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

  1. Run /init-onecli right after an update introduces OneCLI, migrating every Anthropic credential in one pass.
  2. First-time setup: choose between a Claude Pro/Max subscription token or an Anthropic API key, registered via dashboard or headless CLI.
  3. 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal and clone the repo: git clone https://github.com/nanocoai/nanoclaw.git
  2. Create the skills folder: mkdir -p ~/.claude/skills
  3. Copy the skill in: cp -r nanoclaw/.claude/skills/init-onecli ~/.claude/skills/
  4. Confirm prerequisites: Docker running, pnpm installed, and you are in your NanoClaw project root.
  5. Back up your credentials file first: cp .env .env.bak
  6. Start Claude Code in the project folder and ask it to "initialize the OneCLI Agent Vault", or run /init-onecli.
  7. Answer the prompts (subscription token vs API key, which secrets to migrate), then confirm with onecli secrets list.