Claude Code to OpenAI-compatible API proxy
Project description
clodxy
A simple custom proxy for Claude Code -> Any (OpenAI-compatible) Backend.
Supports the bare minimum necessary (messages, streaming, tools, vision).
Security Warning
NEVER expose this proxy to the public internet. This proxy is designed for local-only use and has no authentication or authorization mechanisms. The moment you bind this to a public-facing interface, you're inviting anyone on the internet to use your API keys and backend credentials. That's a skill issue waiting to happen. Keep it local.
Requirements
- Python 3.12+
- Claude Code CLI must be installed
- uv (for running from source)
Installation
No installation needed - run directly via uvx:
uvx clodxy
Configuration
Create a config file at ~/.config/clodxy/config.json (or set CLODXY_CONFIG to customize the path).
See config.example.json for reference:
{
"backends": {
"openai": {
"api_base": "https://api.openai.com/v1",
"api_key": "sk-your-api-key-here",
"models": {
"gpt-4o": {
"context_size": 128000,
"reasoning": false,
"vision": true
}
}
}
},
"default": {
"backend": "openai",
"model": "gpt-4o"
}
}
Usage
Run clodxy - it will start the proxy and launch Claude Code:
clodxy
clodxy /path/to/project
CLI Options
clodxy --help # Show help
clodxy --version # Show version
clodxy --list # List available backends and models
clodxy --validate-config # Validate configuration
clodxy --port 9000 # Custom port (default: auto-assign)
clodxy --host 0.0.0.0 # Custom host
Passthrough
Use -- to separate clodxy options from claude options:
clodxy --port 9000 -- --prompt "help me debug"
Logs
Logs are written to ~/.cache/clodxy/:
clodxy.log- Application logsuvicorn.log- Server logs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clodxy-0.1.3.tar.gz.
File metadata
- Download URL: clodxy-0.1.3.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1f479087f28f3100ccc6427d938c1a35586ee36075a2f7872e2bbad747158d5
|
|
| MD5 |
ae04f86acf8059bf1b543705defd363a
|
|
| BLAKE2b-256 |
11806da5d64532b7d4639b68949d70afb4dfe75162fbe7b05bb9003387cc54ad
|
File details
Details for the file clodxy-0.1.3-py3-none-any.whl.
File metadata
- Download URL: clodxy-0.1.3-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c76be932810ca4b53b94765148fe2efe79a03c78bfbe3846731a9a4521737610
|
|
| MD5 |
fdbf30d187fe7db570ec06310413a8c6
|
|
| BLAKE2b-256 |
ef9fe2af167aa50ee5e2c377d14308ff6de4888a0443a04505c9ee7ae74bfc87
|