opencode
БесплатноБез исполняемых скриптовНе проверенOpenCode - Open source AI coding agent for terminal, desktop, and IDE with multi-provider LLM support, custom agents, MCP integration, and granular permissions
Об этом скилле
OpenCode Skill
OpenCode is an open source AI coding agent available as a terminal interface (TUI), desktop app, or IDE extension. It enables developers to work on code projects through conversational interactions with intelligent assistance for code explanation, implementation planning, code modification, and more.
Key Value Proposition: A flexible, multi-provider AI assistant with customizable agents, granular permissions, and extensive tool integrations that can be tailored for specific workflows like code review, documentation, security auditing, or development.
When to Use This Skill
- Setting up OpenCode for a new development environment
- Creating custom agents for specialized coding workflows
- Configuring permissions for team-based development
- Building automated scripts with OpenCode CLI
- Integrating MCP servers for extended capabilities
- Troubleshooting OpenCode configuration or tool issues
- Comparing OpenCode features with other AI coding assistants
When NOT to Use This Skill
- For Claude Code/Claude CLI specific features (different product)
- For GitHub Copilot configuration (use copilot-specific docs)
- For Cursor IDE settings (different AI editor)
- For generic LLM API usage (use provider-specific skills)
Core Concepts
Architecture Overview
┌─────────────────────────────────────────────────────────────────┐
│ OpenCode │
│ Terminal UI / Desktop App / IDE Extension │
└─────────────────────────────────────────────────────────────────┘
│
┌─────────────────────┼─────────────────────┐
│ │ │
▼ ▼ ▼
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ Agents │ │ Tools │ │ Permissions │
├───────────────┤ ├───────────────┤ ├───────────────┤
│ • Build │ │ • read/write │ │ • allow │
│ • Plan │ │ • edit/patch │ │ • ask │
│ • Custom... │ │ • bash │ │ • deny │
│ • Subagents │ │ • grep/glob │ │ • Wildcards │
└───────────────┘ │ • webfetch │ └───────────────┘
│ • lsp │
│ • MCP servers │
└───────────────┘
│
┌─────────────────────┼─────────────────────┐
▼ ▼ ▼
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ LLM Providers │ │ Sessions │ │ Commands │
├───────────────┤ ├───────────────┤ ├───────────────┤
│ • OpenAI │ │ • SQLite │ │ • /init │
│ • Claude │ │ • Persistence │ │ • /undo │
│ • Gemini │ │ • Export/ │ │ • /share │
│ • Groq │ │ Import │ │ • Custom... │
│ • Bedrock │ └───────────────┘ └───────────────┘
└───────────────┘
Agent Types
| Type | Description | Use Case |
|---|---|---|
| Primary Agent | Main assistant for direct interaction | Day-to-day development |
| Subagent | Specialized assistant for specific tasks | Research, exploration |
| Build (built-in) | Full tool access for development | Writing and modifying code |
| Plan (built-in) | Read-only for analysis | Planning without changes |
| General (subagent) | Multi-step task execution | Research and investigation |
| Explore (subagent) | Codebase navigation | Quick file/code searching |
Installation
Quick Install (Recommended)
# Install script
curl -fsSL https://raw.githubusercontent.com/opencode-ai/opencode/refs/heads/main/install | bash
# Homebrew (macOS/Linux)
brew install opencode-ai/tap/opencode
# npm
npm install -g opencode
# Go
go install github.com/opencode-ai/opencode@latest
Verify Installation
opencode --version
Configuration
Configuration Files
OpenCode uses opencode.json in your project root or global config at ~/.config/opencode/:
{
"provider": "anthropic",
"model": "claude-sonnet-4-20250514",
"permission": {
"edit": "ask",
"bash": "ask"
},
"agent": {
"build": {
"model": "claude-sonnet-4-20250514"
},
"plan": {
"model": "claude-sonnet-4-20250514",
"tools": {
"write": false,
"bash": false
}
}
}
}
Environment Variables
# API Keys (choose your provider)
export ANTHROPIC_API_KEY="sk-ant-..."
export OPENAI_API_KEY="sk-..."
export GOOGLE_API_KEY="..."
export GROQ_API_KEY="..."
# OpenCode Settings
export OPENCODE_CONFIG="~/.config/opencode/opencode.json"
export OPENCODE_PERMISSION="ask" # Default permission level
export OPENCODE_AUTO_SHARE="true" # Auto-share sessions
export OPENCODE_EXPERIMENTAL_LSP_TOOL="true" # Enable LSP
Tools Reference
Built-in Tools
Установить opencode в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл opencode?
OpenCode - Open source AI coding agent for terminal, desktop, and IDE with multi-provider LLM support, custom agents, MCP integration, and granular permissions
Как установить скилл opencode?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл opencode запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic