castar-ventures

Castari Proxy — Development agent for Claude Code

Development community intermediate

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

How to install Castari Proxy

This entry records only its repository, not the path inside it, so there is no exact command to give. Open castari/castari-proxy and copy the folder into ~/.claude/agents/.

What Castari Proxy does

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

Alternatives in Development

  • Startup Financial Modeling — Build comprehensive 3-5 year financial models with revenue projections, cost structures, cash flow a... - wsho 31.9k ★
  • Agentica Agent — You are a specialized agent for building Python agents using the Agentica SDK 3.6k ★
  • Gemini Skills — Skills for the Gemini API, SDK and model/agent interactions 2.3k ★

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:

  • Resolves which provider to use based on the model string (e.g., or:gpt-5-mini → OpenRouter)
  • Intercepts SDK network calls via a global fetch hook
  • Injects routing headers and metadata into outgoing requests
  • Handles subagent model inheritance for the Task tool

2. Cloudflare Worker (`worker/`)

A stateless proxy that translates between API formats. It:

  • Routes requests to Anthropic (passthrough) or OpenRouter (with translation)
  • Converts Anthropic Messages API ↔ OpenRouter Chat Completions format
  • Handles streaming (SSE) translation with tool call assembly
  • Enforces server tool policies (MCP, web search, etc.)

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

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

  • 12-model selection UI (3 Claude + 9 OpenRouter models)
  • Streaming chat with real-time tool execution visualization

...