opencode
Skill by taracodlabs
Delegates coding tasks to the OpenCode CLI, an open-source coding agent that works with multiple LLM providers. Useful for developers who want self-hostable coding sessions or local Ollama models.
Install opencode
Built from the published package, never by AI.
git clone --depth 1 https://github.com/taracodlabs/aiden /tmp/aiden && mkdir -p ~/.claude/skills && cp -r /tmp/aiden/skills/opencode ~/.claude/skills/opencodeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/taracodlabs/aiden /tmp/aiden && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/aiden/skills/opencode ~/.gemini/antigravity-cli/skills/opencodeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
OpenCode is an open-source AI coding CLI that supports multiple LLM providers, including Anthropic, OpenAI, Gemini and local Ollama models. This skill lets an assistant delegate coding tasks to it. It can open an interactive terminal UI for coding sessions, or run a single task non-interactively with the run command.
The skill covers installing OpenCode with npm or an installer script, and setting provider keys in a config.json file. Users can choose a model for each run, such as an Anthropic, OpenAI or local Ollama model. It suits developers who want a self-hostable coding agent, want to avoid cloud API costs with local models, or want to switch providers for the same task.
Written from the project's SKILL.md and checked against it.
What it can do
- Interactive coding sessionOpens the OpenCode terminal UI in a project folder for interactive coding.
- Non-interactive task runRuns a specific coding task without the terminal UI using opencode run.
- Per-run model selectionChooses a provider and model for a task, such as openai/gpt-4o.
- Local Ollama modelsRuns coding tasks on local Ollama models such as qwen2.5-coder:7b.
- File-targeted tasksAsks OpenCode to review or fix a specific file, such as src/api/payments.ts.
- New file generationCreates a new source file from a written description of its contents.
What you need
- OpenCode CLI installed via npm or the installer script
- At least one configured provider with a valid API key, or Ollama running locally
- PowerShell for the example commands
- Windows Terminal or another terminal with ANSI support for the TUI mode
Try asking
- Use the local Qwen model to add tests to my utility functions
- Refactor the auth middleware to handle OAuth2 using GPT-4o
- Create a TypeScript module at src/cache/redis.ts wrapping ioredis
Good to know
- The TUI mode needs a terminal that supports ANSI escape codes.
- Local Ollama models are free but slower and less capable than cloud models for complex refactoring.
- OpenCode may request file system access, so review the project scope before using it on sensitive codebases.
- The project is actively developed, so the install steps may change.
Security check
C- Downloads a script from the internet and runs itIn
skills/opencode/SKILL.md:Invoke-WebRequest -Uri "https://opencode.ai/install" -UseBasicParsing | Invoke-Expression
Checked automatically: skills/opencode/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to opencode
All alternatives →Ask-user-question lets an AI assistant ask the user questions through a modal in the UI. It suits tasks that need clarification, preferences, or approval before the assistant proceeds.
Beads is a Dolt-backed issue tracker that gives AI assistants persistent task memory. It tracks dependencies and notes across sessions and conversation compaction. It is for developers and agents managing multi-session work.
Manages the user's Google Tasks from an AI assistant. It reads task lists and tasks, adds, edits, completes and organizes them, and clears finished items from view. Built for people who keep their to-dos in Google Tasks.
Rebuilds your recent working context before you start or resume work. It reads your chat history and the shared record, then returns a short current-state brief for developers.
Build Agent turns a task a business owner repeats by hand into a named, reusable skill. It can be triggered by name or put on a schedule, and it adds approval checkpoints at consequential steps.
Lark-approval is a Feishu (Lark) skill for querying, handling and starting native approval workflows. It is for users who need to work through approval todos, review submitted approvals, or search and submit approval requests.
Compare with ask-user-question, beads or google_tasks
opencode: common questions
Can OpenCode run with local models?
Yes. The source shows running it with Ollama models such as ollama/qwen2.5-coder:7b, which avoids cloud API costs.
Which LLM providers does OpenCode support?
The source names Anthropic, OpenAI, Gemini and local Ollama as supported providers.
Is there a way to run OpenCode without the terminal UI?
Yes. The opencode run command runs a specific task without the TUI, and accepts a --model flag.
How do I install opencode?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is opencode free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is opencode safe to use?
It scores 67 of 100. Grades: maintenance B, licence C, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to opencode?
Similar skills: ask-user-question, beads, google_tasks, recall.
