OpenCode transforms your terminal into an AI-native workspace where coding, debugging and refactoring happen seamlessly in the shell. Eliminate disruptive context switches and browser tabs with lightning-fast, terminal-native AI responses.
Maintain full control while the AI handles grunt work, turning chaotic sessions into streamlined workflows. From messy code to polished solutions instantly. With OpenCode, evolve from writing code to orchestrating it like a pro.
AI Flow:
Auto-LSP Awareness:
Session Persistence:
Patch Approval Flow:
Model Variety:
Licensing & Community:
Prompt: opencode run "Explain awk usage"
Prompt: opencode fix tests
Prompt: opencode new
Prompt: Near context limit
Prompt: opencode auth login
Prompt: Multi-agent mode
OpenCode thrives in an active open‑source ecosystem:
1. Quick install
curl -fsSL https://opencode.ai/install | bash
2. Alternative installs
brew install sst/tap/opencode - # macOS
npm install -g opencode-ai - # npm / bun / pnpm / yarn
paru -S opencode-bin - # Arch Linux
3. Set API keys / Login
export OPENAI_API_KEY=…
opencode auth login
4. Launch your session
cd my-oneclick-project
opencode
System Requirements:
Go ≥ 1.24 (for dev), Node/Bun ≥ latest (for tooling), SQLite, terminal emulator, 4 GB+ RAM.
v0.1.0:
v0.2.5:
v0.3.12:
v0.3.16:
v0.3.17:
Q1. Is OpenCode production-ready?
Beta-stage but solid, patch previews and diff controls ensure safe usage in daily workflows.
Q2. Which AI models can I use?
Includes all major providers (OpenAI, Claude, Gemini, Bedrock, Groq, Azure) plus local via Models.dev
Q3. How are code changes managed?
AI suggests diffs. You review before applying, zero silent commits.
Q4. Can I run offline models?
Yes, configure Ollama, LM Studio, or other local endpoints via config/env.
Q5. Does it modify my shell config?
No. It works as subprocess. Your .bashrc or .zshrc remains untouched.
Q6. How do I contribute?
PRs accepted for bug fixes, provider improvements and documentation. MIT license. Feature proposals go through design review.
Try OpenCode Today
Run: curl -fsSL https://opencode.ai/install | bash
Level up your developer workflow, stay in flow, code smarter, ship cleaner code. OpenCode is the AI-powered terminal ally you’ve been waiting for.
Need help with AI transformation? Partner with OneClick to unlock your AI potential. Get in touch today!