/model command.
Steps to integrate Claude Code with Pioneer:
- Download and set up Claude Code.
- Open
~/.zshrc(or~/.bashrcif you use bash) and add these two lines at the bottom to point Claude Code to Pioneer: - Open a new terminal, or run
source ~/.zshrc(orsource ~/.bashrc) in existing ones to apply the changes. - Start Claude Code
- To integrate Claude Code with our router, access the model picker
- Select pioneer/auto and press Enter to set it as your default for future sessions.
Both claude.ai and ANTHROPIC_API_KEY set · auth may not work as expected, Claude Code is still authenticating with your claude.ai login instead of your Pioneer API key.
- Run
/logoutinside Claude Code to sign out of claude.ai. (If the warning persists after relaunching, exit Claude Code and runclaude /logoutfrom your terminal instead. - Relaunch with
claude. If prompted to log in to claude.ai, decline — when asked to use theANTHROPIC_API_KEYfrom your environment, accept. - Verify with
/status:- Auth token should show
none - API key should show
ANTHROPIC_API_KEY - Anthropic base URL should show
https://api.pioneer.ai.
- Auth token should show
Prompt caching works automatically. Claude Code talks to Pioneer over the Anthropic Messages API and sends
cache_control markers itself, so prompt caching is applied on Claude models with no extra setup. See Prompt Caching.