OpenCode Integration
Complete guide for configuring Qorebit with OpenCode to power your AI-assisted development workflow seamlessly.
Why use Qorebit with OpenCode?
OpenCode is a powerful platform for AI-assisted software engineering. By pointing OpenCode to Qorebit, you can effortlessly swap between top-tier coding models like Claude 3.5 Sonnet, GPT-4o, and others without juggling different API keys or managing multiple provider billing accounts. All your API requests run through one unified gateway.
Setup Instructions
Integrating Qorebit into OpenCode is simple. You just need to configure it to use a custom OpenAI-compatible endpoint.
1. Open Settings
Launch OpenCode and navigate to the Settings or Configuration panel where you manage your AI providers.
[Placeholder photo: Upload screenshot of OpenCode settings menu]
2. Configure Custom Provider
Select Custom API or OpenAI Compatible as your provider. Then, fill in the fields as follows:
- Base URL / API Endpoint:
https://api.qorebit.ai/v1 - API Key: Paste your Qorebit API key (starting with
qb_live_). - Model Name: Enter your preferred model (e.g.,
anthropic/claude-3-5-sonnetoropenai/gpt-4o).
[Placeholder photo: Upload screenshot of OpenCode API configuration fields]
3. Save and Start Coding
Click Save. OpenCode is now fully connected to Qorebit! You can ask it to generate code, refactor files, or debug, and all traffic will automatically route through your unified Qorebit balance.
Recommended Models for OpenCode
For the best coding experience, we highly recommend using anthropic/claude-3-5-sonnet or openai/gpt-4o. You can explore other supported options in our Model Library.