Metadata-Version: 2.4
Name: clodxy
Version: 0.1.0
Summary: Claude Code to OpenAI-compatible API proxy
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: dacite>=1.9.2
Requires-Dist: fastapi>=0.128.0
Requires-Dist: httpx>=0.28.1
Requires-Dist: uvicorn>=0.40.0
Provides-Extra: dev
Requires-Dist: ruff>=0.14.11; extra == "dev"
Dynamic: license-file

# 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](https://github.com/anthropics/claude-code) must be installed

## Installation

```bash
uvx pip install clodxy
```

Or clone and run with uv:

```bash
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.

```json
{
  "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:

```bash
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.
