Integrate Portkey with Claude Code for enterprise-grade AI coding assistance with observability and governance
Create an Integration
Configure Models
Copy the Provider Slug
@anthropic-claude-code/claude-4-sonnet-latest
)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. Create one here.@your-provider-slug/your-model-name
Create Default Config
Configure Portkey API Key
settings.json
file for configuration. You’ll need to modify the environment variables to route requests through Portkey.
~/.claude/settings.json
for global or .claude/settings.json
in your project):
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
~/.claude/settings.json
to use Portkey with max plan or anthropic oauth: