Skip to main content

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

Installation

Clone and run with uv:

git clone https://github.com/lyssieth/clodxy.git
cd clodxy
./clodxy.sh

Or install via pip/uv:

pip install 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 logs
  • uvicorn.log - Server logs

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

clodxy-0.1.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

clodxy-0.1.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file clodxy-0.1.1.tar.gz.

File metadata

  • Download URL: clodxy-0.1.1.tar.gz
  • Upload date:
  • Size: 15.7 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

Hashes for clodxy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ef36fa5a252d979cdd6a86d1eab297a27a6da3b694d07d3af0cbc67c6ce53fb3
MD5 df34790d72f65d49bc20341cee70b943
BLAKE2b-256 cb318ed91f9198b1264c769b550b06e3f59623a68416be217c33b98c324e7ef6

See more details on using hashes here.

File details

Details for the file clodxy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: clodxy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.8 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

Hashes for clodxy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27e0f4485036eb75bcbd8565df0d284186303644e949935e87fe4c3a68d89d49
MD5 75627afc16a9414dda6d03fb0b8ed6b4
BLAKE2b-256 dfd2c1ea052edcb14161c73e31d47971f4d23e6987677fe73d65215c06f11122

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