General
What is OpenCode?
What is OpenCode?
- Write and edit code across multiple files
- Debug and fix issues
- Refactor and optimize code
- Generate documentation
- Answer questions about your codebase
How is OpenCode different from other AI coding tools?
How is OpenCode different from other AI coding tools?
- Works in any terminal environment
- Supports multiple AI providers (OpenAI, Anthropic, Google, and more)
- Offers a plugin system for extensibility
- Provides both TUI (Terminal UI) and web interfaces
- Has an active open-source community building plugins and integrations
Is OpenCode free?
Is OpenCode free?
What AI providers does OpenCode support?
What AI providers does OpenCode support?
- OpenAI (GPT-4, GPT-3.5)
- Anthropic (Claude)
- Google (Gemini)
- And many more through community plugins
Installation & Setup
How do I install OpenCode?
How do I install OpenCode?
How do I configure my API keys?
How do I configure my API keys?
What are the system requirements?
What are the system requirements?
- Node.js 18 or higher (for npm installation)
- Bun 1.3+ (for development)
- A terminal emulator with modern features
- API access to at least one supported AI provider
Usage
How do I start using OpenCode?
How do I start using OpenCode?
What commands does OpenCode support?
What commands does OpenCode support?
opencode- Start TUI in current directoryopencode web- Start web interfaceopencode serve- Start headless API serveropencode attach <url>- Attach to existing serveropencode --help- Show all available commands
/help, /clear, /exit, and more.Can I use OpenCode with my IDE?
Can I use OpenCode with my IDE?
- opencode.nvim - Neovim plugin
- OpenChamber - VS Code Extension
- OpenCode-Obsidian - Obsidian plugin
How do I install plugins?
How do I install plugins?
- Install the plugin package via npm
- Configure it in your OpenCode settings
Troubleshooting
OpenCode is not responding or hanging
OpenCode is not responding or hanging
- Check if the AI provider’s API is responsive
- Verify your API key is valid and has sufficient credits
- Try restarting OpenCode
- Check for any error messages in the terminal
I'm getting API rate limit errors
I'm getting API rate limit errors
- Wait for the rate limit to reset (usually a few minutes)
- Consider upgrading your API plan for higher limits
- Use the opencode-dynamic-context-pruning plugin to optimize token usage
The AI is not understanding my codebase
The AI is not understanding my codebase
- Provide clear, specific instructions
- Reference specific files or functions
- Use the opencode-type-inject plugin for better type awareness
- Break down complex tasks into smaller steps
How do I report a bug?
How do I report a bug?
- Check if the issue already exists in GitHub Issues
- Use the Bug Report template when creating a new issue
- Include:
- OpenCode version (
opencode --version) - Your operating system
- Steps to reproduce
- Expected vs. actual behavior
- Any error messages
- OpenCode version (
Where can I get help?
Where can I get help?
- Join the Discord community
- Check GitHub Discussions
- Search existing GitHub Issues
- Read the documentation at opencode.ai/docs
Development & Contributing
How can I contribute to OpenCode?
How can I contribute to OpenCode?
- Bug fixes
- Documentation improvements
- New LSP/formatter support
- Provider integrations
- Performance improvements
How do I build a plugin for OpenCode?
How do I build a plugin for OpenCode?
- Use the opencode plugin template as a starting point
- Follow the plugin API documentation
- Test your plugin locally with
bun dev - Submit your plugin to the Ecosystem
Where is the source code?
Where is the source code?
- Core OpenCode logic
- TUI and web interfaces
- Desktop app
- Plugin system
- Documentation
What's the development workflow?
What's the development workflow?
- Fork the repository
- Create a feature branch
- Make your changes
- Test locally with
bun dev - Open a PR following the Contributing guidelines
Community
How do I join the community?
How do I join the community?
- Discord - Chat with users and maintainers
- GitHub Discussions - Ask questions and share ideas
- Twitter - Latest news and updates
- opencode.cafe - Community hub
Where can I find community plugins and projects?
Where can I find community plugins and projects?
- Plugins that extend OpenCode
- Projects built on OpenCode
- Pre-configured agents
- Integrations with other tools
Can I add my project to the ecosystem?
Can I add my project to the ecosystem?
- Fork the OpenCode repository
- Add your project to the ecosystem documentation
- Submit a PR with a brief description