Skip to main content

Chameleon Code - Use any AI model with Claude Code

Project description

Chameleon Code - Use any AI model with Claude Code

Use any AI model with Claude Code.

What is this?

Claude Chameleon is a proxy that translates Claude Code requests to any AI model. Uses OpenRouter by default.

Quick Start

CAM_API_KEY="<YOUR_OPENROUTER_API_KEY>" ./cam.py

Options

--model, -m MODEL              Model to use
--small-model SMALL_MODEL      Small model for haiku/subagent tasks (defaults to --model)
--max-tokens MAX_TOKENS        Maximum tokens per request
--url URL                      API URL to route to (defaults to OpenRouter)
--api-key API_KEY              API key (or set CAM_API_KEY env var)
--server                       Run server only, connect externally
--port PORT                    Port to bind to

Examples

# Use with OpenRouter (default)
CAM_API_KEY="sk-or-v1-..." ./cam.py --model deepseek/deepseek-chat

# Use with different API
CAM_API_KEY="sk-..." ./cam.py --url https://api.openai.com/v1 --model gpt-4

# Run server on custom port
CAM_API_KEY="sk-..." ./cam.py --server --port 8080

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chameleon_code-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chameleon_code-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file chameleon_code-0.1.0.tar.gz.

File metadata

  • Download URL: chameleon_code-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for chameleon_code-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4d4f68244bcf9227a405be98e15c2b5aee6db3a0c84cade45c47427237095a41
MD5 889039dfdf482add08fe858aa2e4a96e
BLAKE2b-256 5250cd234dbe43cfa82127b0ccb15cc192c9b0b7658bfa16383aa045d8126e92

See more details on using hashes here.

File details

Details for the file chameleon_code-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for chameleon_code-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cad69b612e6c27a9a944b1a7e487a8d48e39accf6d686e2a26f4e9d4e30ca03d
MD5 c89feb8f537040652d89556a136656b7
BLAKE2b-256 8d55982aff37d48aa135cf7d47d5ea1bbeaee4878cfd1ba4a54dac1d988be72f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page