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).
Requirements
- Python 3.12+
- Claude Code CLI must be installed
Installation
uvx pip install clodxy
Or clone and run with uv:
git clone https://github.com/yourusername/clodxy.git
cd clodxy
./clodxy.sh
Configuration
Create a config file at ~/.config/clodxy/config.json. 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 with any arguments forwarded to the Claude CLI:
clodxy
clodxy --help
clodxy /path/to/project
The proxy starts on http://127.0.0.1:8000 and automatically configures the environment for Claude Code.
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.0.tar.gz.
File metadata
- Download URL: clodxy-0.1.0.tar.gz
- Upload date:
- Size: 12.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 |
8e21e2248d353f5aa10f16b3c18e91e25dde1be587397e9d55d2331cd5594756
|
|
| MD5 |
fcd76298ae56ced1e20c01a43caac2fc
|
|
| BLAKE2b-256 |
1ce10870f3b6e2647318a58d14dd33672bc05c845309e24faeede25fa8bb88f0
|
File details
Details for the file clodxy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: clodxy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.9 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 |
b297ad5a28f2bdd51225a91c2048b022cd55e3a3d592b753948265db9af7a1c9
|
|
| MD5 |
c6768d63d197bb7ded1446f41b4ff536
|
|
| BLAKE2b-256 |
fbcaa032b73ca68ddcdf887e4d081ec6dcfd7d5b58aea09476ce2bf94852192a
|