with one click
opencode
Delegate coding to OpenCode CLI (multi-LLM open-source coding agent)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Delegate coding to OpenCode CLI (multi-LLM open-source coding agent)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
| name | opencode |
| description | Delegate coding to OpenCode CLI (multi-LLM open-source coding agent) |
| category | agent-bridge |
| version | 1.0.0 |
| origin | aiden |
| license | Apache-2.0 |
| tags | opencode, ai-coding, agent-bridge, open-source, multi-model, coding, delegation, claude, gpt |
Delegate coding tasks to OpenCode — an open-source AI coding CLI that supports multiple LLM providers (Anthropic, OpenAI, Gemini, local Ollama). Provides a terminal UI for interactive coding sessions.
# Install via npm
npm install -g opencode-ai
# Or install via the installer script
Invoke-WebRequest -Uri "https://opencode.ai/install" -UseBasicParsing | Invoke-Expression
# Verify
opencode --version
OpenCode reads from ~/.config/opencode/config.json:
$config = @{
providers = @{
anthropic = @{ apiKey = $env:ANTHROPIC_API_KEY }
openai = @{ apiKey = $env:OPENAI_API_KEY }
ollama = @{ baseUrl = "http://localhost:11434" }
}
model = "anthropic/claude-opus-4-5"
} | ConvertTo-Json -Depth 5
$configDir = "$env:USERPROFILE\.config\opencode"
New-Item -ItemType Directory -Force -Path $configDir | Out-Null
Set-Content -Path "$configDir\config.json" -Value $config
Set-Location "C:\Users\<you>\myproject"
opencode
# Opens terminal UI — type your task in the prompt
# Run task without TUI
opencode run "Add pagination to the GET /users endpoint"
# Run with a specific model
opencode run --model "openai/gpt-4o" "Refactor the auth middleware to handle OAuth2"
# Ensure Ollama is running with a code-capable model
# ollama pull qwen2.5-coder:7b
opencode run --model "ollama/qwen2.5-coder:7b" "Write a Python script to parse CSV files"
opencode run "Review and fix the error handling in" src/api/payments.ts
opencode run "Create a new TypeScript module at src/cache/redis.ts that wraps ioredis with:
- connect(), disconnect() methods
- get(key), set(key, value, ttlSeconds) methods
- Proper error handling and type safety"
"Use the local Qwen model to add tests to my utility functions"
→ Use step 5 with --model "ollama/qwen2.5-coder:7b" and ask it to generate tests for your utils file.
"Run an interactive coding session on my project"
→ Use step 3 — navigate to the project first, then run opencode to open the TUI.
"Refactor this module but use GPT-4o instead of Claude"
→ Use step 4 with --model "openai/gpt-4o".
Search and download arXiv papers (no API key needed)
Delegate coding and file edits to Anthropic Claude Code CLI
Read/write Windows clipboard text, HTML, images, history (PowerShell)
Running scripts and code on Windows
Delegate coding tasks to OpenAI Codex CLI
Windows Defender: scans, threat history, signatures (PowerShell)