Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 67
  • 912 stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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/opencode

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install opencode in Claude Code

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 →

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.

opencode Install

Add to stack

Loading.