add-opencode
仓库创建 2026年1月31日最近提交 1 天前SkillHot 收录 20 天前
▸ 精选理由
方便在不同模型/供应商间切换与集中管理
▸ 风险提示
需配置 OPENCODE_* 环境变量与相应凭据
这个 Skill 做什么
将 OpenCode 用作代理后端,支持通过配置切换多个模型与路由提供者。
把 OpenCode 当作代理后端,可以把请求路由到 OpenRouter、OpenAI、Google、DeepSeek 等提供者,并按 agent group 配置 provider 切换。适合需要按组灵活选择模型或路由策略的场景。部署时需在容器启动传入 OPENCODE_* 环境变量并更新组配置。
▸ 展开 SKILL.md 英文原文
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.
3.0w
Stars
1.3w
Forks
40
仓库内 Skill
+241
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/nanocoai/nanoclaw/main/.claude/skills/add-opencode/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/nanocoai/nanoclaw/main/.claude/skills/add-opencode/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# 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 ### Pre-flight If all of the following are already present, skip to **Configuration**: - `src/providers/opencode.ts` - `conta
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有