Skip to content
/ cli Public

The Portkey CLI — manage AI gateway integrations for Claude Code, and more.

License

Notifications You must be signed in to change notification settings

Portkey-AI/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portkey CLI

Route Claude Code through Portkey for logging, caching, and guardrails.

Quick Start

npx portkey setup

That's it! The wizard will:

  1. Ask for your Portkey API key
  2. Let you pick a provider from your Model Catalog
  3. Write the config to your shell

Then run source ~/.zshrc (or open a new terminal) and start using Claude Code.

Commands

npx portkey setup       # Configure Claude Code → Portkey
npx portkey discover    # See where config is set
npx portkey verify      # Test the connection
npx portkey uninstall   # Remove Portkey config

Options

For CI or scripting:

npx portkey setup --portkey-key pk-xxx --provider ant --yes
Flag Description
--portkey-key Portkey API key
--provider Provider slug from Model Catalog (e.g., ant)
--config Use a Portkey Config instead of provider
--gateway Custom gateway URL
--location Where to save: env, global, project-local, project-shared
--advanced Show all options (model, location, gateway)
--yes Skip confirmations

Bedrock / Vertex AI

For Bedrock or Vertex providers, the wizard will ask you to select model names since they differ from Anthropic's naming.

Requirements

About

The Portkey CLI — manage AI gateway integrations for Claude Code, and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •