API Providers
Connect directly to AI providers using API keys. This gives you full control over model selection and usage.
IDE Mode only (Classic Edition): API key providers power Chat, Context Builder, Oracle, and Pro Edit. Agent Mode requires a CLI harness — RepoPrompt supports six compatible CLIs including Codex, Claude Code, Gemini, OpenCode, and Cursor.
GPT-5.5 is not an API model: GPT-5.5 Low/Medium/High are available only through Codex CLI, and GPT-5.5 Pro is ChatGPT Pro web only. The OpenAI API and Azure OpenAI continue to serve the GPT-5.4 family. Use Codex CLI (under Agent Providers) to access GPT-5.5.
Supported Providers
RepoPrompt supports direct API connections to these providers:
| Provider | Models | Context |
|---|---|---|
| Anthropic | Claude Opus 4.6, Sonnet 4.5, Haiku 4.5 | 200K |
| OpenAI | GPT-5.4 family | 1M+ |
| Gemini 2.5 Pro, Gemini 2.5 Flash | 1M+ | |
| DeepSeek | DeepSeek V3, DeepSeek R1 | 128K |
| xAI | Grok 4 | 128K |
| Groq | Llama, Mixtral (fast inference) | Varies |
| Fireworks AI | Qwen3, Kimi K2, DeepSeek | Up to 32K |
| Z.AI | GLM 4.6, GLM 4.7, GLM 5 | 200K |
| Azure OpenAI | Your Azure deployments | Varies |
Adding API Keys
- Open Settings (
⌘+,) - Go to API Settings → API Providers
- Find your provider and enter your API key
- Click Validate & Save
- A green checkmark confirms the key is valid
Getting API Keys
Anthropic (Claude)
- Go to console.anthropic.com
- Create an account or sign in
- Navigate to Settings → API Keys
- Create a new key and copy it
OpenAI (GPT)
- Go to platform.openai.com
- Create an account or sign in
- Navigate to API Keys
- Create a new secret key and copy it
Google (Gemini)
- Go to aistudio.google.com
- Sign in with your Google account
- Get your API key from the console
Key Security
Your API keys are stored securely in the macOS Keychain - they never leave your machine and are encrypted at rest.
Custom Models
For providers that support it, you can add custom model names:
- After validating your API key, look for the "Custom Model" field
- Enter the model identifier (e.g.,
claude-3-5-sonnet-latest) - Click "Save Model"
- The model appears in your model selection dropdown
For OpenAI custom models using the Responses API, you can also configure reasoning effort levels (low, medium, high) to control how much thinking the model does before responding.
GitHub Models (Free)
GitHub provides free access to select models with an 8K context limit:
- Go to Settings → API Providers
- Click "Sign in with GitHub"
- Authorize RepoPrompt
- GitHub models appear in your model list
Note: GitHub models are limited to 8K tokens context, which may be too small for many coding tasks. Consider using other providers for larger contexts.
Local Models (Ollama)
Run models locally with Ollama:
- Install Ollama from ollama.com
- Pull a model:
ollama pull llama3.1 - In Settings → API Providers, find "Local Model Settings"
- The default URL is
http://localhost:11434 - Click "Validate" to fetch available models
- Select your model from the dropdown