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).

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

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.2.tar.gz (16.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.2-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clodxy-0.1.2.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

Hashes for clodxy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 14ff86285504ad2af16728b5e3c8ac85c250e086fcf683449618ff6cb14d179f
MD5 9c952cd1b3523f86127d3ac4d6dda18a
BLAKE2b-256 0fe56c9a969a9d2df35f30a1ea05a1ad07c9a38f6834fbb6c133b0177fa0371d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clodxy-0.1.2-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

Hashes for clodxy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3f13847c9e9cb593eb5d2f7041f69a359c93b825f1fe24128348f260314ff34
MD5 6e2c8e01a1cf87bd029eae84286d22d8
BLAKE2b-256 1ae6dc06876e46be18307b2248ac5e1879b85dd92c1ff93a5f7efc3fece77685

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