mercury-cc to launch Claude Code with Mercury 2.5. The launcher runs an isolated local bridge, so your regular claude command and Claude Code settings stay unchanged.
Prerequisites
- Claude Code
- macOS or Linux
- Python 3.11 or later
- An Inception API key
Setup
1
Install the local bridge
Set
PYTHON_BIN to a Python 3.11+ executable, then install the tested LiteLLM version in an isolated environment:2
Store your Inception API key
Enter your API key when prompted. The key stays in a user-only file and is only loaded by the local bridge.
3
Create the mercury-cc launcher
Create Make it executable and link it into
~/.mercury-cc/mercury-cc:~/.local/bin:If
~/.local/bin is not already on your PATH, link the launcher into another user-writable directory that is. This setup does not modify your shell configuration.4
Launch Claude Code with Mercury
Start an interactive session:Run
/status inside Claude Code to confirm that the API base URL is http://127.0.0.1:4000 and the model is mercury.Verify the integration
Run an end-to-end prompt:This request uses
max_tokens because it targets the Anthropic Messages interface exposed by the local bridge. Direct requests to Inception’s Chat Completions API use max_completion_tokens.Stop the bridge
Troubleshooting
Troubleshooting
- Bridge startup fails: Run
tail -n 50 ~/.mercury-cc/proxy.logand confirm that Python is version 3.11 or later. mercury-ccis not found: Run~/.mercury-cc/mercury-ccdirectly or link it into a directory already on yourPATH.- Claude Code logs
unrecognized_model: Claude Code may show this warning for the custommercuryalias. Requests still route to Mercury 2.5. - Regular Claude Code behavior: Launching
claudedirectly continues to use your existing Claude Code configuration.