AI Gateway - Connect to Claude, OpenAI, and Gemini
Use this key to connect Claude, OpenAI clients, or any OpenAI-compatible tool to Pantheon.
Configure Cursor IDE to route AI requests through Pantheon. Official docs
Open Cursor Settings > Models > Model Names. Under "OpenAI API Key", enter your key and set the base URL:
Add to ~/.zshrc (or ~/.bashrc):
Then reload: source ~/.zshrc
Add to Cursor's settings.json:
Note: HTTP/2 requests may not go through proxy. Change HTTP Compatibility Mode to 1.1 if needed.
Open Cursor Settings > Models > Model Names. Under "OpenAI API Key", enter your key and set the base URL:
Add to ~/.bashrc (or ~/.zshrc):
Then reload: source ~/.bashrc
Add to Cursor's settings.json:
Note: HTTP/2 requests may not go through proxy. Change HTTP Compatibility Mode to 1.1 if needed.
Open Cursor Settings > Models > Model Names. Under "OpenAI API Key", enter your key and set the base URL:
Run in PowerShell to set permanently:
Then restart Cursor.
Add to Cursor's settings.json:
Note: HTTP/2 requests may not go through proxy. Change HTTP Compatibility Mode to 1.1 if needed.
Configure OpenCode to use Pantheon as your API provider. Official docs
Create or edit ~/.config/opencode/opencode.json (or opencode.json in your project):
Add to ~/.zshrc (or ~/.bashrc):
Then reload: source ~/.zshrc
Start OpenCode in your project directory:
opencode
Create or edit ~/.config/opencode/opencode.json (or opencode.json in your project):
Add to ~/.bashrc (or ~/.zshrc):
Then reload: source ~/.bashrc
Start OpenCode in your project directory:
opencode
Create or edit %APPDATA%\opencode\opencode.json (or opencode.json in your project):
Run in PowerShell to set permanently:
Then restart your terminal.
Start OpenCode in your project directory:
opencode
Configure Claude Code CLI to use Pantheon as your API gateway.
Add these lines to ~/.zshrc (or ~/.bashrc if using bash):
Apply the changes:
source ~/.zshrc
You're all set! Just run:
claude
Add these lines to ~/.bashrc (or ~/.zshrc if using zsh):
Apply the changes:
source ~/.bashrc
You're all set! Just run:
claude
Run this in PowerShell to set permanently:
1. Press Win + R, type sysdm.cpl, press Enter
2. Go to "Advanced" tab → "Environment Variables"
3. Under "User variables", click "New" and add:
Close and reopen PowerShell or Command Prompt.
You're all set! Just run:
claude
Pass the environment variables to your container:
Add to your docker-compose.yml:
Or create a .env file:
After setting up, run this command to verify everything is working: