BYOAIK — Bring Your Own AI Key: a directory of AI tools that run on your own API key.
gptme
Open-source terminal AI agent that writes code, runs shell/Python, and browses the web with your own provider keys.
- Category:
- Developer Infrastructure
- Pricing:
- Open Source
- Open source:
- Yes (MIT)
- Self-hostable:
- Yes
- Local-first:
- Yes
- Platforms:
- CLI, Self-hosted, Library/SDK, Docker
- AI providers (bring your own key):
- OpenAI, Anthropic, Google Gemini, Azure OpenAI, OpenRouter, Groq, DeepSeek, xAI Grok, Ollama, Custom / OpenAI-compatible
- API key storage:
- Configured by environment variable
- Key risk level:
- LOW
- Trust score:
- 84/100
gptme is a free, open-source (MIT) personal AI agent that runs in any terminal — laptop, SSH session, tmux, headless server, or CI pipeline. It executes shell commands and Python, reads/writes/patches files, browses the web via Playwright, and analyzes images. It is fully provider-agnostic and bring-your-own-key: the end user supplies their own LLM API credentials via environment variables (OPENAI_API_KEY, ANTHROPIC_API_KEY, OPENROUTER_API_KEY, GEMINI_API_KEY, XAI_API_KEY, GROQ_API_KEY, DEEPSEEK_API_KEY), a config file (~/.config/gptme/config.toml), or an interactive /account setup command. No built-in or hosted key is required (an optional gptme.ai gateway is "coming soon"). Supports OpenAI, Anthropic, Google Gemini, xAI Grok, DeepSeek, Groq, OpenRouter, Azure OpenAI, and any OpenAI-compatible server including Ollama and llama.cpp for fully local use. One of the earliest agent CLIs (launched spring 2023) and still actively maintained.
How your API key is handled
Your API key is supplied via an environment variable or local config file. 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
Install the tool, set your provider API key as an environment variable (or in its config file), and pick a model.