Claude Code

Claude Code speaks the Anthropic Messages protocol; the Cura gateway is OpenAI-compatible. CLIProxyAPI is a small local proxy that bridges the two — Claude Code talks Anthropic to the proxy, the proxy talks Chat Completions to Cura 1T.

Cura 1T is a research model, not a medical service, and not a substitute for a clinician. Benchmark scores do not establish safety for unsupervised clinical use.

Step 1: Install CLIProxyAPI

Install CLIProxyAPI with the install script, or run the container image:

Shell
# Linux / macOS installercurl -fsSL https://raw.githubusercontent.com/router-for-me/cliproxyapi-installer/refs/heads/master/cliproxyapi-installer | bash # or run it in Dockerdocker run --rm -p 8317:8317 \  -v "$PWD/config.yaml":/CLIProxyAPI/config.yaml \  eceasy/cli-proxy-api:latest

Step 2: Connect it to Cura

Register the Cura gateway as an OpenAI-compatible provider in config.yaml, then start the proxy. It listens on 127.0.0.1:8317 by default:

YAML
# config.yamlport: 8317 openai-compatibility:  - name: "cura"    base-url: "https://inference.actava.ai/v1"    api-key-entries:      - api-key: "YOUR_ACTAVA_API_KEY"    models:      - name: "actava/cura-soar"        alias: "cura-soar"

Step 3: Define the alias

One shell alias points Claude Code at the proxy and pins both the main and subagent models to Cura 1T. Run claudex for a Cura-backed session; plain claude keeps its normal behavior.

Shell
# ~/.zshrc (or ~/.bashrc)alias claudex='ANTHROPIC_BASE_URL=http://127.0.0.1:8317 \ANTHROPIC_AUTH_TOKEN=sk-dummy \CLAUDE_CODE_SUBAGENT_MODEL=cura-soar \CLAUDE_CODE_ALWAYS_ENABLE_EFFORT=1 \CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY=3 \ENABLE_TOOL_SEARCH=false \claude --model cura-soar'

Notes

  • Why a proxy: the Cura gateway exposes the Chat Completions API at /v1 only. CLIProxyAPI translates Claude Code's Anthropic-protocol requests into Chat Completions calls locally — nothing extra leaves your machine.
  • Keys stay in the proxy config. Your ACTAVA API key lives in config.yaml; ANTHROPIC_AUTH_TOKEN can be a dummy value. If you set api-keys in the proxy config, pass one of those instead.
  • The tuning flags are deliberate: MAX_TOOL_USE_CONCURRENCY=3 and ENABLE_TOOL_SEARCH=false keep the request shape conservative for a non-Anthropic backend, and CLAUDE_CODE_SUBAGENT_MODEL keeps subagents on Cura too.
  • Agents loop; set budgets. A coding agent can call the model many times per task — watch usage on long sessions.
  • Claude Code's and CLIProxyAPI's flags can change between versions; their own documentation is the source of truth for the client side.