BYOAIK (Bring Your Own AI Key) is a directory of AI tools that run on your own API key.

OpenCode

Open-source, provider-agnostic AI coding agent built for the terminal.

Website Source code

Category:
Coding Assistants
Maintenance:
Actively developed (last commit today)
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:
82/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.

Why this trust score (82/100)

Trust measures how the tool treats your API key and how much of that has been verified. It contains no popularity signal.

  • Key Safety 23/25: The key is held on your own device.
  • Request Routing 17/20: Requests go straight from you to the AI provider.
  • Transparency 20/20: Source is public under MIT, so anyone can check how the key is handled.
  • Privacy 11/15: Local-first: it works without sending your data anywhere. Can be self-hosted, so the data path stays inside infrastructure you control. Analytics or error-reporting libraries are present; what they send was not established.
  • Maintenance 10/10: Actively developed: commits within the last three months.
  • Verification Confidence 1/10: Compiled from public documentation by an AI-assisted pass, not independently confirmed.

What was checked

Verification tier RESEARCH_ASSISTED, derived from the evidence below and not set by hand.

  • [REPORTED · RESEARCH] This listing was compiled by an AI-assisted research pass over the tool's public website, README and documentation. No person independently confirmed it.
  • [REPORTED · SOURCE_SCAN] References Sentry, so some analytics or error reporting is present. This scan cannot tell whether it is opt-in or what it sends. source
  • [CONFIRMED · SOURCE_SCAN] Most recent commit 2026-08-14, about 0 month(s) ago. source

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.