Claude Code model router

Workbuddy2api

A lightweight API proxy for domestic and international CodeBuddy backends, providing OpenAI, Anthropic, and Responses-compatible APIs with native support for Claude Code, Codex CLI, and DeepSeek Harness.

Install

From source
git clone https://github.com/hawklithm/workbuddy2api.git

From the README

CodeBuddy API Proxy
A lightweight API proxy service that converts CodeBuddy's underlying interface into standard OpenAI, Anthropic, and Responses protocol formats.
中文版文档见 README_zh.md.

For unexplained Windows process exits, use the independent process monitor to collect uv/Python exit codes, lifecycle, memory, health, and available Windows events without restarting the proxy.

✨ Core Features

- Protocol conversion - Supports three standard formats: OpenAI Chat Completions, Anthropic Messages API, and Responses
- Desensitization - Built-in smart desensitization module that automatically filters sensitive information (accounts, passwords, keys, brand terms, paths, etc.) to mitigate review-based false blocks
- Message compression - Intelligently compresses historical messages to dramatically reduce token usage (ideal for long-context scenarios such as Codex CLI)
- Tool call support - Full support for function calling and tool use, with automatic filtering of invalid tool definitions
- DSML parsing - Automatically detects and converts DeepSeek Markup Language (DSML) tool calls
- Streaming responses - SSE streaming output, returning generated content in real time, with built-in 60-second timeout protection
- Domestic and international backends - Uses domestic CodeBuddy by default and switches to the international CodeBuddy service with --global, with isolated sessions and model catalogs
- Multi-account management - Link domestic and Global accounts, switch the active account, and remove non-active accounts from the local admin page
- Model-level 429 handling - Track cooldowns per account and model, with optional same-region failover
- Daily check-in - Check in manually or enable background checks for all linked accounts

Installation

Recommended to run from PyPI using…
Read the full README on GitHub

Details

Language
Python
License
MIT
Last updated
25 October 2026
Topics
anthropic-compatibleapi-proxyclaude-codecodebuddy-clicodex-clicoding-agentdeepseek-harnessgrok-clillm-proxyompopenai-compatiblepi-cli

FAQ

What is Workbuddy2api?

A lightweight API proxy for domestic and international CodeBuddy backends, providing OpenAI, Anthropic, and Responses-compatible APIs with native support for Claude Code, Codex CLI, and DeepSeek Harness. It is a model router for Claude Code, from hawklithm/workbuddy2api on GitHub.

How do I install Workbuddy2api?

Clone hawklithm/workbuddy2api from GitHub and follow the setup steps in its README.

Is Workbuddy2api popular?

hawklithm/workbuddy2api has 25 GitHub stars and 8 forks. It was last updated on 25 October 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.