Skip to main content
Use mercury-cc to launch Claude Code with Mercury 3. The launcher runs an isolated local bridge, so your regular claude command and Claude Code settings stay unchanged.
This integration uses LiteLLM as a third-party bridge between Claude Code’s Anthropic Messages API and Inception’s OpenAI-compatible API. Anthropic does not support routing Claude Code to non-Claude models. Review LiteLLM before using it with sensitive code or credentials.
Mercury 3 supports parallel tool calls, allowing Claude Code to request multiple independent tools in the same turn.

Prerequisites

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 ~/.mercury-cc/mercury-cc:
Make it executable and link it into ~/.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:
You can also call the bridge’s Anthropic-compatible endpoint directly:
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

  • Bridge startup fails: Run tail -n 50 ~/.mercury-cc/proxy.log and confirm that Python is version 3.11 or later.
  • mercury-cc is not found: Run ~/.mercury-cc/mercury-cc directly or link it into a directory already on your PATH.
  • Claude Code logs unrecognized_model: Claude Code may show this warning for the custom mercury alias. Requests still route to Mercury 3.
  • Regular Claude Code behavior: Launching claude directly continues to use your existing Claude Code configuration.
Claude Code gateway documentation · LiteLLM Inception provider