AGENT ✦ CAPABILITIES
Feed GitHub
06/23Agent
Anomaly (open source)

OpenCode

Home ~/.config/opencode/

6 features · 95 models · 6 sources · verified 2026-11-26

Instructions

◆Documented currentInstructions
Project (repo)
<repo>/AGENTS.md, falling back to CLAUDE.md only when no AGENTS.md exists in that directory — walks from the workspace up to the project root (or toward $HOME for a workspace outside any project); the first matching file in each category wins; nested AGENTS.md/CLAUDE.md load as the agent reads or lists that subdirectory. OPENCODE_DISABLE_PROJECT_CONFIG=1 skips project-level discovery and keeps only the global file. Extra via opencode.json instructions: […]; supports remote URLs + globs (5s fetch timeout), loaded after discovered AGENTS.md files
Global (user)
~/.config/opencode/AGENTS.md, falling back to ~/.claude/CLAUDE.md only when no global AGENTS.md exists. Disable Claude compat with OPENCODE_DISABLE_CLAUDE_CODE_PROMPT/OPENCODE_DISABLE_CLAUDE_CODE ³

Config

★Spec / stableSettings
Project (repo)
<repo>/opencode.json, or opencode.json(c) inside an .opencode/ directory — discovered from cwd up to the filesystem root; a package-level file (closer to cwd, e.g. packages/web/opencode.json) overrides a repository-level file (farther up), and every discovered .opencode/ config overrides every direct opencode.json. Non-conflicting keys merge; policies evaluate project-before-global (the reverse order)
Global (user)
~/.config/opencode/opencode.json (or .jsonc) — lowest-precedence file config. TUI/terminal-client settings: ~/.config/opencode/cli.json. System/managed (overrides all file-level config, including project): /etc/opencode/ (Linux) · /Library/Application Support/opencode/ (macOS) · %ProgramData%\opencode (Windows); also loads agents//commands//skills//plugins/ for every user. macOS MDM (ai.opencode.managed domain, highest precedence, not user-overridable): /Library/Managed Preferences/<user>/ai.opencode.managed.plist, /Library/Managed Preferences/ai.opencode.managed.plist; a user-specific profile replaces the machine-wide one. Config values support {env:VAR} and {file:path} interpolation

Commands

★Spec / stableCommands
Project (repo)
.opencode/commands/*.md — filename becomes command name; legacy singular .opencode/command/ also discovered
Global (user)
~/.config/opencode/commands/*.md — invoke via / in the TUI

Skills

★Spec / stableSkills
Project (repo)
.opencode/skills/*/SKILL.md, .claude/skills/*/SKILL.md, .agents/skills/*/SKILL.md — walks cwd→git root; directory form recommended, flat .md files also work but don't get a neighboring file list. Claude compat discovery gated by OPENCODE_DISABLE_CLAUDE_CODE_SKILLS / OPENCODE_DISABLE_CLAUDE_CODE
Global (user)
~/.config/opencode/skills/*/SKILL.md, ~/.claude/skills/*/SKILL.md, ~/.agents/skills/*/SKILL.md

Modes

○ObservedCommands
Project (repo)
(legacy) .opencode/modes/*.md — same
Global (user)
(legacy) ~/.config/opencode/modes/*.md — superseded by the Agents row's mode field (primary|subagent|all); may still load for backward compatibility

Agents

★Spec / stableSubagents
Project (repo)
.opencode/agents/*.md — primary (Tab) or subagent (@ invoke); a nested path becomes a namespaced ID, e.g. .opencode/agents/team/reviewer.md → team/reviewer
Global (user)
~/.config/opencode/agents/*.md — YAML: description, model (provider/model#variant), mode (primary|subagent|all, defaults to primary), permissions (ordered list of {action, resource, effect} rules, last match wins), color, steps, hidden, disabled. Markdown body is the agent's system prompt. Legacy V1 fields permission, temperature, top_p, tools, disable, prompt, maxSteps are deprecated
  1. ³
    OpenCode Claude compat can be disabled granularly: OPENCODE_DISABLE_CLAUDE_CODE_PROMPT=1 (disables ~/.claude/CLAUDE.md fallback), OPENCODE_DISABLE_CLAUDE_CODE_SKILLS=1 (disables .claude/skills/ discovery), OPENCODE_DISABLE_CLAUDE_CODE=1 (all .claude/ support). See OpenCode rules docs.
MODModels

Picking a model

Default
none fixed; uses the last-used model, else the first available model by an internal priority list
Select
--model <provider/model> (-m), /models in the TUI, model in opencode.json, model: in agent frontmatter; --variant <name> or the variant_cycle keybind picks a reasoning variant
Providers
75+ via the AI SDK and Models.dev, including OpenCode Zen (Console), OpenCode Go, Anthropic, OpenAI, GitHub Copilot, Amazon Bedrock, Google Vertex AI, Azure, OpenRouter, Ollama Cloud and local OpenAI-compatible servers
ID format
<provider_id>/<model_id>; the rows below are the curated OpenCode Zen list (opencode/…) and OpenCode Go list (opencode-go/…)
ModelIDAliases
GPT-6.2 Astra◆Documented current opencode/gpt-6.2-astra —
GPT-6.2 Sol◆Documented current opencode/gpt-6.2-sol —
GPT-6 Astra◆Documented current opencode/gpt-6-astra —
GPT-6 Sol◆Documented current opencode/gpt-6-sol —
GPT-6.1 Sol◆Documented current opencode/gpt-6.1-sol —
GPT-6 Luna◆Documented current opencode/gpt-6-luna opencode-go/gpt-6-luna
GPT-5.6 Sol◆Documented current opencode/gpt-5.6-sol —
GPT-5.6 Terra◆Documented current opencode/gpt-5.6-terra —
GPT-5.6 Luna◆Documented current opencode/gpt-5.6-luna opencode-go/gpt-5.6-luna
GPT-5.5◆Documented current opencode/gpt-5.5 —
GPT-5.5 Pro◆Documented current opencode/gpt-5.5-pro —
GPT-5.4◆Documented current opencode/gpt-5.4 —
GPT-5.4 Pro◆Documented current opencode/gpt-5.4-pro —
GPT-5.4 mini◆Documented current opencode/gpt-5.4-mini —
GPT-5.4 nano◆Documented current opencode/gpt-5.4-nano —
GPT-5.3-Codex◆Documented current opencode/gpt-5.3-codex —
GPT-5.3-Codex-Spark◆Documented current opencode/gpt-5.3-codex-spark —
GPT-5.2◆Documented current opencode/gpt-5.2 —
GPT-5.1◆Documented current opencode/gpt-5.1 —
GPT-5◆Documented current opencode/gpt-5 —
GPT-5 nano◆Documented current opencode/gpt-5-nano —
Claude Fable 5.2◆Documented current opencode/claude-fable-5-2 —
Claude Fable 5.1◆Documented current opencode/claude-fable-5-1 —
Claude Fable 5◆Documented current opencode/claude-fable-5 —
Claude Opus 5.5◆Documented current opencode/claude-opus-5-5 —
Claude Opus 5◆Documented current opencode/claude-opus-5 —
Claude Opus 4.8◆Documented current opencode/claude-opus-4-8 —
Claude Opus 4.7◆Documented current opencode/claude-opus-4-7 —
Claude Opus 4.6◆Documented current opencode/claude-opus-4-6 —
Claude Opus 4.5◆Documented current opencode/claude-opus-4-5 —
Claude Sonnet 5.5◆Documented current opencode/claude-sonnet-5-5 —
Claude Sonnet 5◆Documented current opencode/claude-sonnet-5 —
Claude Sonnet 4.6◆Documented current opencode/claude-sonnet-4-6 —
Claude Sonnet 4.5◆Documented current opencode/claude-sonnet-4-5 —
Claude Haiku 5.5◆Documented current opencode/claude-haiku-5-5 opencode-go/claude-haiku-5-5
Claude Haiku 4.5◆Documented current opencode/claude-haiku-4-5 —
Gemini 4 Neon◆Documented current opencode/gemini-4-neon —
Gemini 4 Hydrogen◆Documented current opencode/gemini-4-hydrogen —
Gemini 4 Carbon◆Documented current opencode/gemini-4-carbon —
Gemini 4 Argon◆Documented current opencode/gemini-4-argon opencode-go/gemini-4-argon
Gemini 3.8 Flash◆Documented current opencode/gemini-3.8-flash —
Gemini 3.7 Flash◆Documented current opencode/gemini-3.7-flash —
Gemini 3.6 Flash◆Documented current opencode/gemini-3.6-flash —
Gemini 3.5 Flash◆Documented current opencode/gemini-3.5-flash —
Gemini 3.5 Flash-Lite◆Documented current opencode/gemini-3.5-flash-lite —
Grok 4.7◆Documented current opencode/grok-4.7 opencode-go/grok-4.7
Grok 4.6◆Documented current opencode/grok-4.6 —
Grok 4.5◆Documented current opencode/grok-4.5 —
Grok Build 0.1◆Documented current opencode/grok-build-0.1 —
Muse Ember 1.0◆Documented current opencode/muse-ember-1.0 —
Muse Wonder 1.0◆Documented current opencode/muse-wonder-1.0 —
Muse Spark 1.3◆Documented current opencode/muse-spark-1.3 opencode-go/muse-spark-1.3-contributor
Muse Spark 1.2◆Documented current opencode/muse-spark-1.2 opencode-go/muse-spark-1.2-contributor
Qwen4-Max◆Documented current opencode-go/qwen4-max —
Qwen3.8-Max◆Documented current opencode/qwen3.8-max opencode-go/qwen3.8-max
Qwen3.8-Flash◆Documented current opencode/qwen3.8-flash opencode-go/qwen3.8-flash
Qwen3.7-Plus◆Documented current opencode-go/qwen3.7-plus —
Qwen3.6-Plus◆Documented current opencode/qwen3.6-plus —
Qwen3.5-Plus◆Documented current opencode/qwen3.5-plus —
DeepSeek-V4.1-Flash◆Documented current opencode/deepseek-v4.1-flash opencode-go/deepseek-v4.1-flash, opencode/deepseek-v4.1-flash-free
DeepSeek-V4-Pro◆Documented current opencode/deepseek-v4-pro opencode-go/deepseek-v4-pro
MiniMax-M3◆Documented current opencode/minimax-m3 opencode-go/minimax-m3
MiniMax-M3.1-Flash◆Documented current opencode-go/minimax-m3.1-flash opencode/minimax-m3.1-flash
MiniMax-M2.7◆Documented current opencode/minimax-m2.7 —
GLM-5.3-Flash◆Documented current opencode/glm-5.3-flash opencode-go/glm-5.3-flash, opencode/glm-5.3-flash-free
GLM-5.3◆Documented current opencode/glm-5.3 opencode-go/glm-5.3
GLM-5.2◆Documented current opencode/glm-5.2 opencode-go/glm-5.2
Kimi K3.1 Pro◆Documented current opencode/kimi-k3.1-pro opencode-go/kimi-k3.1-pro
Kimi K3◆Documented current opencode/kimi-k3 opencode-go/kimi-k3
Kimi K2.7 Code◆Documented current opencode/kimi-k2.7-code opencode-go/kimi-k2.7-code
Kimi K2.6◆Documented current opencode/kimi-k2.6 —
Mistral Large 4◆Documented current opencode/mistral-large-4 —
Jev 1.14◆Documented current opencode/jev-1.14 —
Jev 1.13◆Documented current opencode/jev-1.13 opencode/jev-1.13-free
LongCat-2.5◆Documented current opencode/longcat-2.5-free opencode-go/longcat-2.5-free
MiMo-V2.6-Pro◆Documented current opencode-go/mimo-v2.6-pro —
MiMo-V2.6-Flash◆Documented current opencode-go/mimo-v2.6-flash opencode/mimo-v2.6-flash-free
Hy4 Flash◆Documented current opencode-go/hy4-flash-free opencode/hy4-flash-free
MiMo-V2.5-Pro◆Documented current opencode-go/mimo-v2.5-pro —
MiMo-V2.5◆Documented current opencode-go/mimo-v2.5 —
Hy4◆Documented current opencode-go/hy4 —
Hy4 preview◆Documented current opencode-go/hy4-preview —
Hy3◆Documented current opencode-go/hy3 —
Step 5 Preview◆Documented current opencode-go/step-5-preview —
Big Pickle◆Documented current opencode/big-pickle —
Tidepool Alpha◆Documented current opencode/tidepool-alpha-free —
Seaglass Alpha◆Documented current opencode/seaglass-alpha-free —
Beam 1.0◆Documented current opencode/beam-free opencode-go/beam-free
Iceman◆Documented current opencode/iceman-free —
Iceman Contributor◆Documented current opencode-go/iceman-contributor-free —
Flint 40B◆Documented current opencode/flint-40b-free —
Inkling 2 Small◆Documented current opencode/inkling-2-small-free —
Nemotron 3 Ultra◆Documented current opencode/nemotron-3-ultra-free —
Nemotron 3.5 Lightning◆Documented current opencode/nemotron-3.5-lightning-free —
Nemotron 3.5 Super VL◆Documented current opencode/nemotron-3.5-super-vl-free —