BYOAIK — Bring Your Own AI Key: a directory of AI tools that run on your own API key.
OpenCode
Open-source, provider-agnostic AI coding agent built for the terminal.
- Category:
- Coding Assistants
- Pricing:
- Open Source
- Open source:
- Yes (MIT)
- Self-hostable:
- Yes
- Local-first:
- Yes
- Platforms:
- CLI, Desktop, Self-hosted, Docker
- AI providers (bring your own key):
- Anthropic, OpenAI, Google Gemini, Azure OpenAI, OpenRouter, Groq, DeepSeek, xAI Grok, Together AI, Fireworks, Hugging Face, Ollama, Custom / OpenAI-compatible
- API key storage:
- Stored locally on device
- Key risk level:
- LOW
- Trust score:
- 96/100
OpenCode is an open-source (MIT) AI coding agent built primarily as a terminal UI (TUI), with a beta desktop app. It is fully BYOK and provider-agnostic: via the AI SDK and Models.dev it supports 75+ LLM providers, and users add their own API keys with the `/connect` command, stored locally in `~/.local/share/opencode/auth.json`. Any provider's `baseURL` can be customized for proxies, custom endpoints, or local models (Ollama, LM Studio, llama.cpp). It is one of the most popular open-source coding agents, with ~176.6k GitHub stars and active daily development by the SST team.
How your API key is handled
Your API key is stored locally on your device. Requests are sent directly to the AI provider. Because it can be self-hosted, your key never has to touch a third-party backend.
Setup
Open settings, paste your provider API key, choose a model, and start — the key stays on your device.