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

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


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.0.tar.gz (12.1 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.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

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

Hashes for clodxy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8e21e2248d353f5aa10f16b3c18e91e25dde1be587397e9d55d2331cd5594756
MD5 fcd76298ae56ced1e20c01a43caac2fc
BLAKE2b-256 1ce10870f3b6e2647318a58d14dd33672bc05c845309e24faeede25fa8bb88f0

See more details on using hashes here.

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

Hashes for clodxy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b297ad5a28f2bdd51225a91c2048b022cd55e3a3d592b753948265db9af7a1c9
MD5 c6768d63d197bb7ded1446f41b4ff536
BLAKE2b-256 fbcaa032b73ca68ddcdf887e4d081ec6dcfd7d5b58aea09476ce2bf94852192a

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