Dev & Engineering opencodetutorialdocumentationmcp-serversprompt-engineeringclideveloper-tools

OpenCode Primer

A community-maintained, version-verified guide to OpenCode, the open-source AI coding agent — covering setup, agents, skills, plugins, MCP, and headless CI.

FollowAgents review · FARS-2.1
Use with care
71/ 100 5-point scale 3.6 / 5
1 2 3 4 5 6
1Trust19 / 29 · 3.3/5

Documentation-only product; SECURITY.md declares no runtime dependencies and no build step, example plugins use only Node built-ins; the CI workflow is scoped to contents:read (least privilege). README warns that plugins run arbitrary code, about session-sharing privacy, and not to auto-approve destructive operations. Deductions: actual plugin sources were not included in the evidence, so the claimed secret-blocker behavior cannot be statically verified; the repo itself offers no rollback mechanism — undo/redo merely describes upstream tool behavior.

2Reliability9 / 14 · 3.2/5

README claims facts 'verified against the current release', carries version and 'last reviewed' badges, and CI runs markdownlint plus link checking, supporting consistency. Deduction: README is truncated mid-file and many referenced docs (docs/*.md) are absent from evidence, so full internal consistency cannot be confirmed.

3Adaptability15 / 18 · 4.2/5

Clear reader-path table for beginners and power users; an explicit 'When OpenCode isn't the right tool' table delineates capability boundaries (not autocomplete, model-dependent quality, TUI degradation on slow SSH, plugin risk, time-limited free models) — rare candor for this genre. Deductions: trigger precision and environment fit mostly restate upstream tool behavior rather than this repo's own design.

4Convention14 / 18 · 3.9/5

Strong information architecture: path-selection table, mermaid decision flowchart, five-extension comparison, compatibility anchors. Full MIT LICENSE matching the badge; thorough known-limitations table. Deductions: no CHANGELOG file (only badge dates and an anchor); the actual example files (agents/commands/plugins/skills) are referenced but absent from evidence, so examples_and_faq earns only a mid score; single community maintainer with no CODEOWNERS or governance statement.

5Effectiveness10 / 13 · 3.8/5

Output is immediately copy-pasteable: install commands, config snippets, command/skill/plugin templates, structured tables. Deductions: as a third-party community guide its marginal value depends on upstream docs lag, which the README itself admits ('docs lag shipping'); cost_benefit for a pure docs product can only be moderate.

6Verifiability4 / 8 · 2.5/5

Claims generally carry source links and verification dates (pricing snapshot 'verified 2026-07-05', PR #18186, third-party press). Facts and opinions are largely separated via quoted warnings and recommendations. Deductions: static review cannot independently corroborate 'most-starred', '8M monthly users', or the 2026 pricing; no in-repo test or comparison evidence exists, so cross_source_corroboration scores 1.

Evidence confidence: Low Reviewed Sep 10, 2026 Reviewed revision fe71432a721e
Before you use it
  • This repo is a documentation guide only; example plugin sources were not included in the evidence, so claims like the secret blocker are unverified — read the actual files under .opencode/plugins/ before copying them.
  • 2026-era pricing, user counts, and competitor claims in the README cannot be cross-verified statically; check opencode.ai official docs before relying on them.
  • The guide itself admits it lags upstream releases; the install command (curl | bash) is third-party relayed — verify against the official source before running.
  • Publisher is an unverified individual with no governance or accountability statement; treat factual security guidance with independent judgment.
Review evidence [1][2][3][4]
See the full review method →

What does this agent do, and when should you use it?

OpenCode Primer (GitHub: wesammustafa/opencode-primer) is an MIT-licensed developer tutorial repository for OpenCode, with every fact verified against release v1.17.13. It is not OpenCode itself but a manual covering installation, authentication, model access (direct providers, the Zen pay-as-you-go gateway, the Go subscription, local models), prompt engineering, TUI keybinds and themes, headless CLI usage, and CI integration. The repository ships a working .opencode/ example directory with custom agents, slash commands, JS plugins (protect-secrets.js and audit-log.js), a SKILL.md skill, and an AGENTS.md project rules file. Deep dives live in topic files under docs/ (agents.md, plugins.md, mcp.md, zen.md, and more), supplemented by an FAQ, a Claude Code migration guide, and a changelog. Readers should treat it as a learning and configuration reference, not a deployable software product.

The repository delivers three kinds of content. First, tutorial documentation: OpenCode installation (curl script, npm, brew, scoop, Docker, and more), opencode auth login, /init for generating AGENTS.md, the plan/build agent workflow toggled with Tab, @file and !shell prompt syntax, leader-key bindings and themes, headless modes (opencode run / serve / web), and CI integration via opencode github install. Second, runnable configuration examples: .opencode/agents/ (markdown+YAML agent definitions), .opencode/commands/ (four commands: /review, /pr, /test, /optimize), .opencode/plugins/ (an audit-log and a secret-protection plugin), .opencode/skills/git-release/ (a SKILL.md), and opencode. with sample MCP server config. Third, reference assets: specialized-agents/ with copy-paste specialist prompts (backend, frontend, code reviewer, security reviewer, tech lead, database, UX), and mcp-servers/ walkthroughs for Playwright, Context7, Sentry, and Grep.

  1. A developer new to OpenCode who wants a guided ~15-minute path through install, authentication, and a first prompt
  2. A team migrating from Claude Code that needs the AGENTS.md/CLAUDE.md fallback rules, path differences, and frontmatter key changes
  3. A cost-conscious user choosing between direct providers, Zen per-token pricing, the $10/month Go plan, and local models, using the documented price snapshot and the cheap-explorer/strong-executor pattern
  4. An engineer adding guardrails to AI sessions who can directly reuse the protect-secrets.js and audit-log.js plugins
  5. A DevOps engineer building unattended pipelines following the Headless & CI recipes for opencode run --format , GitHub Actions, or GitLab CI
  6. A developer wiring up external tools via MCP using the Playwright, Context7, Sentry, and Grep walkthroughs in mcp-servers/

What are this agent's strengths and limitations?

Pros
  • Content is verified against a specific release (v1.17.13) with a stamped last-reviewed date, reducing tutorial-rot risk
  • The bundled .opencode/ directory provides directly copyable assets: security and audit plugins, four slash commands, and a git-release skill
  • End-to-end coverage: install, model selection (including a Zen price snapshot), prompt engineering, headless CI, and MCP integration in one guide
  • Clearly discloses its community-maintained, non-affiliated status and consistently links official docs as the source of truth
Limitations
  • It is documentation, not software — it cannot substitute for OpenCode itself, and actual behavior depends on the separately installed and paid-for tool and its underlying models
  • The guide admits it can lag the fast-moving binary; prices and features (e.g., Zen pricing snapshot dated 2026-07-05) may already have changed
  • Some guidance is ecosystem-bound: Claude Pro/Max subscription login no longer works, plugins require JS/TS and Bun, and free Zen models are time-limited and flagged as unfit for production
  • Examples follow OpenCode conventions (AGENTS.md, .opencode/ layout) and are not directly portable to other coding agents

How do you install or deploy this agent?

This is a documentation repository — no runtime to install. Get it with: git clone https://github.com/wesammustafa/opencode-primer.git, or read it on GitHub. To actually run its examples you must first install OpenCode: curl -fsSL https://opencode.ai/install | bash (or npm i -g opencode-ai@latest / brew install anomalyco/tap/opencode), then run opencode auth login to authenticate at least one LLM provider — a prerequisite the repository itself does not fulfill.

How do you use this agent?

Follow the 'Choose your path' table in the README: beginners start with What is OpenCode → Setup → Prompt Engineering; existing users jump to Custom Commands, Agent Skills, Plugins, or MCP (~20 min each); configuration and CI needs point to Agents, Headless & CI, and Models & Providers. Deep dives live in docs/ (e.g., docs/agents.md, docs/plugins.md, docs/workflows.md, docs/reference/cli.md). To try the examples, copy the repository's .opencode/agents/*.md, .opencode/commands/*.md, and .opencode/skills/ into your project's matching directories, or drop a specialist prompt from specialized-agents/ into .opencode/agents/<name>.md. Configure MCP servers in the mcp section of opencode. and manage them with opencode mcp add | list | auth.

How does this agent compare with similar options?

The README positions OpenCode itself against Claude Code, Codex CLI, Cursor, and Aider (e.g., choose Claude Code/Codex CLI for a polished single-vendor product, Cursor/Copilot for a deep VS Code workflow, Aider for a small readable Python tool), noting OpenCode trades polish for openness and provider flexibility. For this guide, the nearest alternative is the official documentation at opencode.ai/docs.

FAQ

Is this repository the OpenCode software?
No. It is a community-maintained tutorial and example collection (MIT-licensed). OpenCode itself must be installed separately from opencode.ai; the official documentation is at opencode.ai/docs.
Does using the examples cost money?
The repository is free and open source. Running the examples requires OpenCode plus LLM costs: direct providers billed per key, Zen pay-as-you-go, Go at a flat $10/month ($5 first month), or free local models (Ollama, etc.) whose quality depends on hardware.
Can I trust the example plugins and agent configs as-is?
The bundled plugins (protect-secrets.js, audit-log.js) are small and reviewable, but the guide itself warns that any plugin runs arbitrary code with your user permissions — audit third-party plugins line by line, as you would a shell script.
Will the content go stale?
Possibly. The README is based on v1.17.13, last reviewed 2026-07-05, and acknowledges docs can trail the binary. Time-sensitive items like the pricing table carry verification dates; check the official docs and GitHub releases when in doubt.
Is there migration guidance from Claude Code?
Yes. docs/migration.md covers it: OpenCode reads CLAUDE.md and .claude/skills/ as fallbacks, but slash-command paths, the plugin mechanism (Python hooks become JS/TS plugins), and agent frontmatter keys differ.

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related agents