The Open Source AI Coding Agent
Not just autocomplete — a coding agent that plans, edits files, runs terminal commands, and debugs itself. Bring your own model or use free built-in ones. No lock-in, no subscription.
Why Opencode?
Built for developers who care about control. 160K+ GitHub stars, 900+ contributors, 13K+ commits.
Model Agnostic
Not locked to one vendor. Bring your own model — Claude, GPT, Gemini, or any of 75+ providers via Models.dev. Closed-source tools tie you to their pricing; Opencode lets you switch anytime.
Full Agency
Not just a chat window. Opencode plans the work, edits files, runs terminal commands, validates results, and debugs itself — the full loop, not single-shot suggestions.
Zen Models
Not a $20/month subscription. Free handpicked models tuned for coding agents — no setup, no API keys. Start coding immediately, upgrade only if you outgrow the free tier.
Multi-Session
Not one conversation at a time. Run multiple agents in parallel on the same project — like browser tabs, each with its own context. Start, pause, and switch without losing state.
Desktop App
Not just an IDE plugin. A full native app for macOS, Windows, and Linux — tabs, pinned sessions, diff viewer, and background agents. Runs standalone, not bolted onto your editor.
Who is this for?
Whatever your role, there’s a path into OpenCode that fits.
New Developer
Go from zero to your first AI-assisted coding session in minutes.
Start here →Senior Engineer
Refactor with confidence, hunt bugs faster, and ship cleaner diffs.
Start here →Team Lead
Standardize agent behavior across your repo with AGENTS.md and policies.
Start here →Non-Developer
Generate slides, docs, and automate tasks without writing code.
Start here →Where to start
Four tiers, from 5 minutes to team rollout. Follow the path that matches your goal.
Get Started
5 minInstall OpenCode, pick a model, run your first task.
Daily Work
30 minLearn the CLI and TUI, follow real recipes, make it part of your workflow.
Customize
Half daySkills, MCP servers, permissions, policies — bend OpenCode to your needs.
Team Adoption
1 dayAGENTS.md, enterprise config, shared policies — roll out to your whole team.
Pick your surface
Four ways to run OpenCode — choose the one that matches your workflow.
CLI
Refactor, commit, and script tasks from the terminal.
Power users, automationDesktop
Multi-session, diff viewer, and background agents on macOS, Windows, Linux.
Visual workflow, parallel tasksTUI
Fast terminal interface with panels for sessions, messages, and tools.
Keyboard-first, quick iterationIDE
Inline assistance and agent control without leaving your editor.
In-editor codingReal-World Recipes
Reproducible workflows that show exactly how to use OpenCode for real tasks — step by step, with prompts and pitfalls.
Slide Generation from a Topic
Turn a one-line topic into a structured slide deck. Outline the narrative, generate per-slide copy, and export to PPTX or HTML.
Check: Deck opens cleanly in target tool
Read the recipe →Explore an Unfamiliar Codebase
Land in a new repo and get a working mental model fast. Map architecture, find entry points, produce a navigation guide.
Check: CODEBASE_MAP committed and shared
Read the recipe →Browser Automation with Playwright
Let OpenCode drive a real browser to test, scrape, or verify web flows. Connect the Playwright MCP server and capture regression artifacts.
Check: Snapshot and screenshot captured
Read the recipe →Thriving Ecosystem
Power up your workflow with community plugins and MCP servers.