castari/castari-proxy

89 stars · Last commit 2025-11-16

Use Claude Agent SDK and Claude Code with other providers/models

README preview

# Castari Proxy

![Claude Code using an OpenRouter model through Castari Proxy](docs/images/header.png)

Castari Proxy lets you run the Claude Agent SDK against any model—including OpenRouter catalog models—without changing your agent logic. Install the `castari-proxy` wrapper, point it at the **hosted Castari Worker**, and keep using the same SDK APIs. The worker translates Anthropic-style Messages requests to whichever upstream (Anthropic or OpenRouter) matches the model string you provide.

```
Claude Agent SDK ── queryCastari ──► Castari Worker (hosted)
                                       ├─► Anthropic Messages API
                                       ├─► OpenRouter Chat Completions
                                       └─► *more coming soon*
```

> Don't want to hit the hosted worker? See [Self-Hosting the Worker](#self-hosting-the-worker) for instructions to deploy your own copy.

## Repo Overview

This repository contains three main components that work together to enable multi-provider support for the Claude Agent SDK:

### 1. Wrapper Package (`src/`)

View full repository on GitHub →