opencode

Configure OpenCode CLI for multi-provider terminal coding tasks.

15|2|Updated May 23, 2026
One-click install
npx skills add https://github.com/VKirill/antigravity-for-claude-code --skill opencode-vkirill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/VKirill/antigravity-for-claude-code/tree/main/skills/opencode
Command: npx skills add https://github.com/VKirill/antigravity-for-claude-code --skill opencode-vkirill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you configure and use OpenCode’s multi-provider terminal coding agent so you can install, authenticate, select models, and run plan/build workflows without getting stuck in incorrect CLI/config details.

Core Features & Use Cases

  • Install, auth, and provider routing (BYOK): Set up opencode/opencode-ai, log in via providers, and choose models with <provider>/<model-id> routing.
  • Configure opencode.json + agents: Define built-in plan/build behavior, add custom agents, and control tool allowlists for safer review workflows.
  • Integrate MCP/ACP and automation: Configure MCP servers, use headless opencode run --json, and optionally operate via opencode serve / ACP for external orchestration.

Quick Start

Run opencode to install, then ask an AI to “Use the opencode skill to generate and validate an opencode.json for my project with plan as read-only and build as the writing agent, wiring providers via env interpolation.”

Frequently Asked Questions about opencode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure a multi-provider terminal coding agent with BYOK?

To configure a multi-provider terminal coding agent, install the OpenCode CLI, log in to your providers, and define model routing in opencode.json using the <provider>/<model-id> format. You handle secrets securely via {env:VAR} interpolation.

What's the best way to route different coding tasks to specific AI models?

The best way to route coding tasks is to define plan and build agents in opencode.json, assigning read-only models to the plan agent and writing models to the build agent. You specify models using <provider>/<model-id> prefixes for accurate routing.

How do I run terminal coding workflows in CI or headless review environments?

To run terminal coding workflows in CI, use the headless command `opencode run --json` to output JSONL logs. You can also use `opencode serve` or ACP to integrate external orchestration for automated review pipelines.

Can I use MCP servers for orchestration with a terminal coding agent?

Yes, you can configure MCP servers within opencode.json to enable external orchestration. This allows the terminal coding agent to interact with MCP/ACP integrations for automated tool execution and workflow management.

How do I securely manage API keys when using a CLI coding agent?

To securely manage API keys for a CLI coding agent, use {env:VAR} interpolation in your opencode.json configuration file. This ensures your provider secrets are loaded from environment variables rather than being hardcoded.

Does opencode support custom agents with restricted tool access?

Yes, opencode supports custom agents with restricted tool access. You can define custom agents in opencode.json and control their tool allowlists to create safer review workflows and limit specific agent capabilities.