OpenCode: The Local-First AI Coding Agent
Your autonomous AI pair programmer for Terminal, VS Code, and Desktop. Securely connect Gemini 4, Claude 4.5, or GPT-5 with a privacy-first architecture designed for enterprise engineering.
Try the Demo
Build websites with AI - no code required. Experience DeepSite powered by Gemini.
Loading demo...
Why Developers Choose OpenCode
An agentic workflow built for complex repositories, not just simple scripts.
Seamlessly switch between our powerful Terminal UI, standalone Desktop App, and native VS Code Extension without losing context.
Deep integration with Language Server Protocols ensures code suggestions are type-safe, definition-aware, and virtually hallucination-free.
Run multiple autonomous agents simultaneously: let one refactor legacy code while you debug a new feature in another session.
A true Local-First architecture. Your intellectual property stays on your machine, with optional auditable share links for team collaboration.
Engineered for Control and Flexibility
Complete model neutrality, granular permissions, and an open stack you can trust.
100% Open Source & Auditable
Built in the open. Audit every line of the agent's logic, self-host the stack, or fork it to customize the workflow for your specific engineering culture.
Model Neutrality (BYOK)
Never get locked in. Bring Your Own Keys for Gemini 4 Pro, Claude 4.5, GPT-5, or connect to local LLMs via Ollama for offline coding.
Safe, Permissioned Autonomy
You are always in open control. Granular 'Allow/Ask/Deny' permissions prevent the agent from executing commands or editing sensitive files without approval.
Get Started in Seconds
One command to install. Infinite capability unlocked.
One-Line Install
Instant setup on Mac, Windows, or Linux via our universal install script, npm, or Homebrew.
Link Your AI Provider
Securely authenticate with your existing Claude/ChatGPT subscription, or drop in your API keys.
Launch Your Agent
Run `opencode` in any repository to start a new pair programming session immediately.
$ curl -fsSL "https://opencode.ai/install" | bash
$ opencode auth login
$ opencode
# Run a one-off task
$ opencode run "Summarize this repo and propose next steps"OpenCode FAQ
Ready to Code with Superpowers?
Join thousands of developers shipping faster with the world's most capable open-source coding agent.
Install OpenCode Now