Skip to main content

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

Metadata

Release files for chameleon-code 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chameleon-code 0.1.5
File Size Uploaded Provenance Actions
chameleon_code-0.1.5.tar.gz 4.0 kB Without provenance Details for chameleon_code-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chameleon-code 0.1.5
File Interpreter ABI Platform Actions
chameleon_code-0.1.5-py3-none-any.whl Python 3 none any Details for chameleon_code-0.1.5-py3-none-any.whl

Total release size: 8.6 kB

Release files / chameleon_code-0.1.5.tar.gz

Download URL chameleon_code-0.1.5.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
436a05c845387d6db2cbbe9f8f6bf0ae59a1054b251d45e7be0ac3d79e7f7014
BLAKE2b-256 checksum
How to use checksums
db51a417219bf5f0454ef54104580318c4fc849295585255a40ec90f281eb1f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.23

Release files / chameleon_code-0.1.5-py3-none-any.whl

Download URL chameleon_code-0.1.5-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1030ef687d94055c1fc98750d9050c75b34c34b74cea638b8357f4d56b8d131c
BLAKE2b-256 checksum
How to use checksums
f1da098f27ba66f898d0c5edb3dc09676ed1ffc48e873a46dcee445aa4370a4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.23

Security for chameleon-code 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page