add-opencode

Featured

Use OpenCode as an agent provider. OpenRouter, OpenAI, Google, DeepSeek, etc. via OpenCode config — not the Anthropic Agent SDK. Per group via `ncl groups config update --provider opencode`; host passes OPENCODE_* and XDG mount when spawning containers.

AI & Automation 30,743 stars 12840 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# OpenCode agent provider NanoClaw runs agents in a long-lived **poll loop** inside the container. The backend is selected per agent group by the **`provider`** key in that group's `container.json` (materialized from the `container_configs` table) — set it with `ncl groups config update --provider opencode`. Default is `claude`. Trunk ships with only the `claude` provider baked in. This skill copies the OpenCode provider files in from the `providers` branch, wires them into the host and container barrels, installs dependencies, and rebuilds the image. ## Install ### 1. Copy the provider payload Fetch the `providers` branch from the configured remote that carries it, then overwrite every skill-owned provider file with its canonical registry copy: ```nc:copy from-branch:providers src/providers/opencode.ts src/providers/opencode-registration.test.ts container/agent-runner/src/providers/opencode.ts container/agent-runner/src/providers/mcp-to-opencode.ts container/agent-runner/src/providers/mcp-to-opencode.test.ts container/agent-runner/src/providers/opencode-registration.test.ts container/agent-runner/src/providers/opencode.attachments.test.ts container/agent-runner/src/providers/opencode.compaction.test.ts container/agent-runner/src/providers/opencode.config.test.ts container/agent-runner/src/providers/opencode.factory.test.ts container/agent-runner/src/providers/opencode.memory.test.ts container/agent-runner/src/providers/opencode.question.test.ts ``` (`cwd-shim.ts` and ...

Details

Author
nanocoai
Repository
nanocoai/nanoclaw
Created
7 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category