OpenCode — подключение альтернативных LLM-провайдеров
★ 7.5 · ai-tooling
add-opencode is a Claude Code skill that integrates OpenCode as an agent provider in NanoClaw, enabling the use of OpenRouter, OpenAI, Google, DeepSeek, and other LLMs instead of the built-in Anthropic Agent SDK. The provider is configured per agent group via `ncl groups config update --provider opencode`, with the host passing `OPENCODE_*` environment variables and an XDG mount when spawning containers. The skill copies provider source files from the `providers` git branch, appends self-registration imports to both barrel files (`src/providers/index.ts` and `container/agent-runner/src/providers/index.ts`), installs `@opencode-ai/sdk@1.4.17`, and adds a dedicated `opencode-ai` layer to `container/Dockerfile`. The SDK and CLI versions are deliberately pinned to `1.4.17` — the 1.14.x SDK introduces a breaking session API change incompatible with the current provider implementation.
- #opencode
- #provider
- #llm-routing
- #openrouter
- #multi-model