bitrouter-api
GitHub repository: bitrouter/bitrouter
Reusable HTTP API surface for BitRouter.
This crate provides Warp filters and shared API helpers for serving
provider-compatible endpoints. It focuses on HTTP request handling and delegates
model resolution and execution to the routing contracts from bitrouter-core.
Includes
- OpenAI-compatible routes
- Anthropic-compatible routes
- Google-compatible routes
- MCP-compatible routes
- A2A-compatible routes
- Shared API error and utility helpers
Feature flags
openai,anthropic,googleenable provider-compatible HTTP surfaces.mcpenables the MCP routing surface and pulls inbitrouter-mcp.a2aenables the A2A routing surface and pulls inbitrouter-a2a.
Default features keep the current API surface enabled:
openai, anthropic, google, mcp, and a2a.