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?

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

Quick Start

uv tool install chameleon-code
OPENROUTER_API_KEY="<YOUR_OPENROUTER_API_KEY>" cham

Or run standalone (it's single Python file, requires uv):

./cham.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 OPENROUTER_API_KEY env var)
--server                       Run server only, connect externally
--port PORT                    Port to bind to

Examples

# Use with OpenRouter (default)
OPENROUTER_API_KEY="sk-or-v1-..." cham --model deepseek/deepseek-chat

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

# Run server on custom port
OPENROUTER_API_KEY="sk-..." cham --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.5.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.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chameleon_code-0.1.5.tar.gz
Algorithm Hash digest
SHA256 436a05c845387d6db2cbbe9f8f6bf0ae59a1054b251d45e7be0ac3d79e7f7014
MD5 5e0c6aa1f0b027e13a1b82a2b156bdf6
BLAKE2b-256 db51a417219bf5f0454ef54104580318c4fc849295585255a40ec90f281eb1f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chameleon_code-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1030ef687d94055c1fc98750d9050c75b34c34b74cea638b8357f4d56b8d131c
MD5 3f4ab9a358bc376b0ab73c8977d00ac6
BLAKE2b-256 f1da098f27ba66f898d0c5edb3dc09676ed1ffc48e873a46dcee445aa4370a4a

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