add-opencode
Skill by nanocoai
Adds OpenCode as an optional agent provider for NanoClaw, so groups can run agents through OpenCode config with backends such as OpenRouter, OpenAI, Google and DeepSeek. It is for NanoClaw operators who want an open-source provider router instead of the Anthropic Agent SDK.
Install add-opencode
Built from the published package, never by AI.
git clone --depth 1 https://github.com/nanocoai/nanoclaw /tmp/nanoclaw && mkdir -p ~/.claude/skills && cp -r /tmp/nanoclaw/.claude/skills/add-opencode ~/.claude/skills/add-opencodeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/nanocoai/nanoclaw /tmp/nanoclaw && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/nanoclaw/.claude/skills/add-opencode ~/.gemini/antigravity-cli/skills/add-opencodeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill installs OpenCode as an optional runtime for NanoClaw. The payload ships with the skill, so no separate provider branch is needed. Backend defaults apply to the whole installation, and model and reasoning effort can be overridden per group through the existing container configuration. The skill can be added through the setup provider picker or the provider-auth setup step.
The skill also adds a host helper script with configure, update and debug modes. Channel attachments reach the agent as a staged file that OpenCode's read tool opens. Installation and authentication checks run against the installed files and pinned versions, and a working backend is verified separately with a real request. The source is aimed at NanoClaw operators who want to run agents through OpenCode.
Written from the project's SKILL.md and checked against it.
What it can do
- Per-group provider settingSets a group to use OpenCode through the ncl groups config update command.
- Provider installation and authenticationInstalls the OpenCode payload and authenticates it through the provider-auth setup step.
- Host helper scriptProvides configure, update and debug modes for host OpenCode setup and operations.
- Per-group model overridesLets model and reasoning effort be overridden per group through container configuration.
- Attachment readingLets the agent open staged channel attachments with OpenCode's read tool, including images and PDFs for supporting models.
What you need
- OpenCode 1.18.25 or newer for the host helper
- NanoClaw host contract version 1 and credential-connection seam version 1 or later
- Local agent image build with ./container/build.sh
- Credentials for the model backend, such as OpenRouter, OpenAI, Google or DeepSeek
Try asking
- Set this group to use OpenCode as its agent provider.
- Authenticate the OpenCode provider for my NanoClaw install.
- Run the OpenCode host configure helper for this project.
Good to know
- Per-group backend and auth selection is separate work and is not part of this skill.
- The --debug, --update and failure help modes ask before every edit and command.
- Host diagnostic context sent to the model may remain in native OpenCode history.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/add-opencode/SKILL.md, .claude/skills/add-opencode/payload/container/agent-runner/src/provider-contracts/opencode.ts, .claude/skills/add-opencode/payload/container/agent-runner/src/providers/mcp-to-opencode.test.ts, .claude/skills/add-opencode/payload/container/agent-runner/src/providers/mcp-to-opencode.ts, .claude/skills/add-opencode/payload/container/agent-runner/src/providers/opencode-auth.test.ts, .claude/skills/add-opencode/payload/container/agent-runner/src/providers/opencode-auth.ts, .claude/skills/add-opencode/payload/container/agent-runner/src/providers/opencode-config.ts, .claude/skills/add-opencode/payload/container/agent-runner/src/providers/opencode-memory.ts, .claude/skills/add-opencode/payload/container/agent-runner/src/providers/opencode-registration.test.ts. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
ARCHITECTURE.md8 KB -
REMOVE.md3 KB -
SKILL.md20 KB -
apply-fixtures.json303 B -
payload/container/agent-runner/src/provider-contracts/opencode.ts866 B
Show all 41 files
-
payload/container/agent-runner/src/providers/mcp-to-opencode.test.ts3 KB -
payload/container/agent-runner/src/providers/mcp-to-opencode.ts2 KB -
payload/container/agent-runner/src/providers/opencode-auth.test.ts3 KB -
payload/container/agent-runner/src/providers/opencode-auth.ts2 KB -
payload/container/agent-runner/src/providers/opencode-config.ts10 KB -
payload/container/agent-runner/src/providers/opencode-memory.ts4 KB -
payload/container/agent-runner/src/providers/opencode-registration.test.ts625 B -
payload/container/agent-runner/src/providers/opencode-turn.ts14 KB -
payload/container/agent-runner/src/providers/opencode.config.test.ts16 KB -
payload/container/agent-runner/src/providers/opencode.conformance.test.ts253 B -
payload/container/agent-runner/src/providers/opencode.empty-resume.test.ts15 KB -
payload/container/agent-runner/src/providers/opencode.factory.test.ts331 B -
payload/container/agent-runner/src/providers/opencode.memory.test.ts7 KB -
payload/container/agent-runner/src/providers/opencode.native.test.ts18 KB -
payload/container/agent-runner/src/providers/opencode.question.test.ts8 KB -
payload/container/agent-runner/src/providers/opencode.shared-runtime.test.ts31 KB -
payload/container/agent-runner/src/providers/opencode.sse-cleanup.test.ts6 KB -
payload/container/agent-runner/src/providers/opencode.ts25 KB -
payload/scripts/opencode-auth-config.test.ts27 KB -
payload/scripts/opencode-auth.test.ts20 KB -
payload/scripts/opencode-auth.ts22 KB -
payload/scripts/opencode-gateway.test.ts7 KB -
payload/scripts/opencode-host.test.ts13 KB -
payload/scripts/opencode-host.ts9 KB -
payload/scripts/opencode-model-config.ts9 KB
And 11 more files on GitHub.
Alternatives to add-opencode
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
add-opencode: common questions
Does this use the Anthropic Agent SDK?
No. The source says OpenCode is used as the agent provider instead of the Anthropic Agent SDK, with backends set through OpenCode config.
Which model backends does it support?
The source names OpenRouter, OpenAI, Google and DeepSeek, among others, configured through OpenCode config.
Do I need to recreate containers after a refresh?
Yes. The source says to recreate affected containers after a refresh so they discard old config symlinks.
How do I install add-opencode?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is add-opencode free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is add-opencode safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to add-opencode?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
