Configure a Model
Connect your own provider key or a local Ollama model to the Desktop Workspace, and understand how Cloud Studio routes models.
The Desktop Workspace ships without a model attached. You either bring a provider key or point it at a model running on your own machine. Cloud Studio is different: it routes requests for you and needs no key.
Desktop Workspace
Bring your own key
- Open Settings → Models in the desktop app.
- Pick a provider: OpenAI, Anthropic, or Google Gemini.
- Paste the API key and save.
- Pick a default model from the provider’s catalog.
Keys are written to your operating system’s keychain — Windows Credential Manager, macOS Keychain, or Linux Secret Service — never to a plaintext config file. Requests leave your machine directly for that provider; nothing proxies through BhaiCode.
Pair a fast model with your daily edits and switch to a larger one for multi-file refactors. Switching costs nothing but a new request.
Run a local model with Ollama
Local models keep the entire loop on your machine: no key, no egress.
- Install Ollama and pull a model, for example
ollama pull qwen2.5-coder. - Confirm the server answers:
curl http://localhost:11434/api/tags- In Settings → Models, choose Ollama and leave the endpoint at
http://localhost:11434. - Select the pulled model as your default.
{"models":[{"name":"qwen2.5-coder:latest","modified_at":"...","size":4683087360}]}If the request fails, Ollama is not running or is bound to a different port. Start it with ollama serve and retry.
What gets sent
Only the context a step names reaches the model: the files a tool call reads, the diff under review, and your prompt. Bulk workspace uploads do not happen. .gitignore is not applied automatically, so do not attach files that hold secrets. See Privacy and retention.
Cloud Studio
Cloud Studio requires no key. Sign in at app.bhaico.de, and the workspace routes each request to a suitable model — quick edits to a fast model, architectural work to a stronger one.
BhaiCode does not claim zero-data-retention for every route. Hosted free-tier requests may reach providers without a ZDR agreement, while paid and enterprise routes prefer providers that offer one. Bring-your-own-key on Desktop sidesteps the question entirely: your provider, your terms.
Troubleshooting a key
| Symptom | Cause | Fix |
|---|---|---|
401 on save | Key revoked, or wrong project key | Regenerate the key at the provider and re-enter it |
403 on the first prompt | Key lacks access to the selected model | Pick another model, or upgrade the provider tier |
429 mid-task | Provider rate limit | Wait for the window to reset, or switch model for that task |
| Requests time out | Corporate proxy or firewall blocking the provider domain | Allow the provider’s API hostname on your network |