Learn how to integrate Portkey’s enterprise features with Zed for enhanced observability, reliability and governance.
Create an Integration
Configure Models
Copy the Provider Slug
@openai-dev/gpt-4o
)Run Test Request
button on this step to verify your integration. If you see the error: You do not have enough permissions to execute this request
, you’ll need to create a User API Key for this step to work properly.You can create one here. You should be able to see simple chat request output on this step.@your-provider-slug/your-model-name
Create Default Config
Configure Portkey API Key
Settings.json
in Zed using Command Palette (cmd-shift-p / ctrl-shift-p) and run zed: open settings
Add the following configuration to your settings.json
file:
This configuration will allow you to use Portkey’s GPT-4o model in Zed. You can change the model according to your virtual key setup in step 1.ll power of GPT-4o.
Configure Zed
Update your settings.json
in Zed:
Step 1: Implement Budget Controls & Rate Limits
Step 2: Define Model Access Rules
Step 4: Set Routing Configuration
Step 4: Implement Access Controls
Step 5: Deploy & Monitor
virtual key
in your default config
object.
How do I update my Virtual Key limits after creation?
Can I use multiple LLM providers with the same API key?
How do I track costs for different teams?
What happens if a team exceeds their budget limit?