GitHub Copilot Integration
GitHub Copilot is an AI pair programmer that integrates into popular IDEs. It provides real-time code suggestions, chat-based assistance, and agent capabilities powered by large language models from multiple providers.
GitHub Copilot supports bring-your-own-key configurations through GitHub Models, letting you use your own API keys for supported providers.
Prerequisites
- An LLM API account with an API key
- GitHub Copilot installed or accessible
Setup
Get Your LLM API Key
- Log in to your LLM API dashboard
- Click Create Key to Start
- Copy your new API key immediately — it will only be shown once
- Store the key securely (e.g., in a password manager or
.env file)
INFO
LLM API is an OpenAI-compatible gateway that gives you access to dozens of AI models through a
single API key and endpoint.
Use Custom API Keys with GitHub Copilot
- Navigate to github.com/settings/copilot.
- Under "Model provider keys," click "Add key".
- Select the provider and enter:
- API Key: paste the key you copied from app.llmapi.ai/dashboard/api-keys
- Configure the endpoint if prompted:
- Click "Save" to store the key.
- Select the model in your IDE's Copilot settings.
Test the Integration
Verify that GitHub Copilot can successfully communicate with LLM API by sending a test request. All requests will now be routed through LLM API.
Benefits of Using LLM API with GitHub Copilot
- Multi-Provider Access: Use models from OpenAI, Anthropic, Google, and more through a single API
- Cost Control: Track and limit your AI spending with detailed usage analytics
- Unified Billing: One account for all providers instead of managing multiple API keys
- Caching: Reduce costs with response caching for repeated requests
INFO
View all available models on the models page.