Castari Proxy banner
castar-ventures castar-ventures

Castari Proxy

Development community intermediate

Description

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 re

Installation

Terminal
git clone https://github.com/castari/castari-proxy

README

Castari Proxy

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/`)

The `castari-proxy` npm package provides `queryCastari()`, a drop-in replacement for the SDK's `query()` function. It:

    undefined

2. Cloudflare Worker (`worker/`)

A stateless proxy that translates between API formats. It:

    undefined

3. Demo Application (`claude-agent-demo/`)

A full-stack Next.js reference implementation of the Claude Agent SDK featuring:

    undefined

...