The Open Source AI Coding Agent
Free models included — or bring your own. Desktop app, terminal, or IDE. Multi-session, LSP-powered, and built for real work.
Why Opencode?
Built for developers who care about control. 171K+ GitHub stars, 900+ contributors, 13K+ commits.
Model Agnostic
Bring your own model or use free built-in models. Zero lock-in. Whether it's Claude, GPT, or Gemini, Opencode adapts to your choice. 75+ providers supported through Models.dev.
Full Agency
Not just a chat. Opencode plans, edits files, runs terminal commands, validates work, and even debugs itself.
Zen Models
Free handpicked models optimized for coding agents. No setup, no API keys — just pure coding efficiency.
Multi-Session
Run multiple agents in parallel on the same project. Start, pause, and switch between concurrent coding sessions.
Desktop App
Full desktop experience for macOS, Windows, and Linux. Tabs, pinned sessions, diff viewer, and background agents.
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.
Senior Engineer
Refactor with confidence, hunt bugs faster, and ship cleaner diffs.
Team Lead
Standardize agent behavior across your repo with AGENTS.md and policies.
Non-Developer
Generate slides, docs, and automate tasks without writing code.
Where to start
Three paths, depending on how deep you want to go.
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.