Skip to main content
Advanced Setup - This integration requires running a local proxy. For simpler setups, consider Aider or OpenCode.
Claude Code is Anthropic’s official CLI for AI-assisted coding. While it’s designed for Claude models, you can route requests to Infercom using ccproxy, a LiteLLM-based proxy.

How It Works

ccproxy intercepts Claude Code’s API calls and routes them to your configured provider (Infercom). This allows you to use Claude Code’s interface while running inference on EU sovereign infrastructure.

Prerequisites

Installation

Step 1: Install ccproxy

Step 2: Create Configuration

Create ~/.ccproxy/config.yaml:
Create ~/.ccproxy/ccproxy.yaml for routing rules:
drop_params: true is required because MiniMax doesn’t support all Claude parameters like reasoning_effort.
Map multiple Claude model names to ensure compatibility with different Claude Code versions.

Step 3: Start ccproxy

You should see:
Keep this terminal open while using Claude Code.

Usage

Configure Claude Code

In a new terminal, set the API endpoint:

Run Claude Code

Switch Models

Use the /model command in Claude Code to select a model. The model name will show as “Claude” but requests are routed to MiniMax-M2.7.

Running ccproxy as a Service

macOS (launchd)

Create ~/Library/LaunchAgents/com.ccproxy.plist:
Load the service:

Linux (systemd)

Create ~/.config/systemd/user/ccproxy.service:
Enable and start:

Limitations

Known Limitations:
  • Model name displays as “Claude” in the interface even when using Infercom
  • Some Claude-specific features may not work (vision, computer use)
  • Requires keeping proxy running
  • VS Code extension is less reliable than CLI

Troubleshooting

Connection Refused

Ensure ccproxy is running:

Authentication Errors

Verify your Infercom API key in ccproxy.yaml:

Model Not Found

Check that your ccproxy.yaml maps the correct Claude model names:

Slow Responses

ccproxy adds minimal latency. If responses are slow, check:
  1. Your network connection to api.infercom.ai
  2. Model load times (first request may be slower)

Security Considerations

  • ccproxy runs locally and doesn’t expose your API key to external services
  • All traffic to Infercom is encrypted (HTTPS)
  • Your code stays within the EU infrastructure

Alternative: Direct API

For simpler setups without the proxy overhead, consider:

Next Steps