- 1600+ LLMs — Use any model, not just Copilot’s defaults
- Observability — Track costs, tokens, latency
- Governance — Budget limits, rate limits, RBAC
- Guardrails — PII detection, content filtering
Experimental integration. Only GitHub Copilot Chat works with Portkey. Advanced Copilot features are not available yet.
1. Setup Portkey
1
Add Provider
Go to Model Catalog → Add Provider.

2
Configure Credentials
Select your provider (OpenAI, Anthropic, etc.), enter your API key, and create a slug like 
openai-prod.
3
Copy Model Slug
Go to Model Catalog → Models → Copy the slug (e.g., 
@openai-prod/gpt-4o).
4
Create Config
5
Get Portkey API Key
Go to API Keys → Create new key → Attach your config → Save.

2. Configure GitHub Copilot
1
Open Manage Models
In Copilot chat, click the model dropdown → Manage Models.



2
Add Custom Model via Azure
- Select Azure → Click gear icon → Configure models → Add a new model
- Fill in:
- Identifier:
portkey-model - Display name:
Custom Portkey Model - API endpoint URL:
https://api.portkey.ai/v1/chat/completions - Capabilities: Enable Tools, Vision, Thinking as needed
- Token limits: Set based on your model
- Identifier:

3
Add API Key
- From Manage Models → Select Azure → Select your model
- In API Keys, paste your Portkey API Key
- Save

Features
Observability
Track 40+ metrics: cost, tokens, latency, performance.
Logs
Complete request/response tracking with metadata and cost attribution.
Reliability
Fallbacks
Auto-switch on failure
Load Balancing
Distribute across providers
Caching
Reduce costs and latency
Retries
Exponential backoff
Conditional Routing
Route by conditions
Budget Limits
Control spending
Guardrails
Protect code with real-time checks:- Prevent API key leaks
- PII detection in generated code
- Content filtering
- Custom security rules
Guardrails
Configure input/output protection
FAQs
What endpoint should I use?
What endpoint should I use?
Use
https://api.portkey.ai/v1/chat/completions for chat completions.How do I enforce a fixed model?
How do I enforce a fixed model?
Attach a default config to the API key and optionally disable overrides. See Enforcing Default Configs.
How do I track costs per team?
How do I track costs per team?
Issue separate API keys or use metadata. Monitor in the analytics dashboard.


