{"id":47998138,"url":"https://github.com/bitrouter/bitrouter","last_synced_at":"2026-04-04T12:07:00.801Z","repository":{"id":342851652,"uuid":"1174756063","full_name":"bitrouter/bitrouter","owner":"bitrouter","description":"The agentic proxy for modern agent runtimes. Smart, safe, agent-controlled routing across LLMs, tools, and agents.","archived":false,"fork":false,"pushed_at":"2026-03-30T06:06:56.000Z","size":1222,"stargazers_count":36,"open_issues_count":13,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-30T06:09:46.572Z","etag":null,"topics":["a2a","agent-guardrails","agent-harness","agent-observability","agent-runtime","ai-agent","ai-agents","api-gateway","bittensor","claude-code","llm-gateway","llm-router","mcp","openai-compatible","openclaw","opencode","rust","skills","solana","x402"],"latest_commit_sha":null,"homepage":"https://bitrouter.ai","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitrouter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-06T20:04:01.000Z","updated_at":"2026-03-30T04:54:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bitrouter/bitrouter","commit_stats":null,"previous_names":["aimoverse/bitrouter"],"tags_count":100,"template":false,"template_full_name":null,"purl":"pkg:github/bitrouter/bitrouter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrouter%2Fbitrouter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrouter%2Fbitrouter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrouter%2Fbitrouter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrouter%2Fbitrouter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitrouter","download_url":"https://codeload.github.com/bitrouter/bitrouter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrouter%2Fbitrouter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31397056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["a2a","agent-guardrails","agent-harness","agent-observability","agent-runtime","ai-agent","ai-agents","api-gateway","bittensor","claude-code","llm-gateway","llm-router","mcp","openai-compatible","openclaw","opencode","rust","skills","solana","x402"],"created_at":"2026-04-04T12:06:59.113Z","updated_at":"2026-04-04T12:07:00.543Z","avatar_url":"https://github.com/bitrouter.png","language":"Rust","readme":"# BitRouter - Open Intelligence Router for LLM Agents\n\n\u003e The agentic proxy for modern agent runtimes. Smart, safe, agent-controlled routing across LLMs, tools, and agents.\n\n[![Build status](https://github.com/bitrouter/bitrouter/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/bitrouter/bitrouter/actions)\n[![Crates.io](https://img.shields.io/crates/v/bitrouter)](https://crates.io/crates/bitrouter)\n[![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)\n[![Twitter](https://img.shields.io/badge/Twitter-black?logo=x\u0026logoColor=white)](https://x.com/BitRouterAI)\n[![Discord](https://img.shields.io/badge/Discord-5865F2?logo=discord\u0026logoColor=white)](https://discord.gg/G3zVrZDa5C)\n[![Docs](https://img.shields.io/badge/Docs-bitrouter.ai-green)](https://bitrouter.ai)\n\n## Overview\n\nAs LLM agents grow more autonomous, humans can no longer hand-pick the best model, tool, or sub-agent for every runtime decision. BitRouter is a proxy layer purpose-built for LLM agents (OpenClaw, OpenCode, etc.) to discover and route to LLMs, tools, and other agents autonomously — with agent-native control, guardrails, and observability via CLI + TUI, backed by a high-performance Rust proxy that optimizes for performance, cost, and safety during runtime.\n\n## Features\n\n- **Multi-provider routing** — unified access to OpenAI, Anthropic, Google, and custom providers with cost/performance-aware routing ([`core`](bitrouter-core/) · [`providers`](bitrouter-providers/) · [`config`](bitrouter-config/))\n- **Tools as a service** — discover, aggregate, and route tool calls across MCP servers and REST APIs with the same config-driven routing used for models ([`core`](bitrouter-core/) · [`providers`](bitrouter-providers/) · [`config`](bitrouter-config/))\n- **Streaming \u0026 non-streaming** — first-class support for both modes across all providers\n- **Agent firewall** — inspect, warn, redact, or block risky content at the proxy layer ([`guardrails`](bitrouter-guardrails/))\n- **MCP gateway** — proxy for MCP servers, agents discover and call tools across hosts ([`providers`](bitrouter-providers/) · [`api`](bitrouter-api/))\n- **Skills registry** — track and expose agent skills following the [agentskills.io](https://agentskills.io) standard ([`providers`](bitrouter-providers/))\n- **Agentic payment** — 402/MPP payment handling for LLMs, tools, and APIs ([`api`](bitrouter-api/) · [`accounts`](bitrouter-accounts/))\n- **Observability** — per-request spend tracking, metrics, and cost calculation ([`observe`](bitrouter-observe/))\n- **CLI + TUI** — monitor and control agent sessions in real time ([`cli`](bitrouter/))\n\n## Documentation\n\n- [`DEVELOPMENT.md`](DEVELOPMENT.md) — workspace architecture and server composition details\n- [`CONTRIBUTING.md`](CONTRIBUTING.md) — contribution workflow, issue reporting, and provider updates\n- [`CLAUDE.md`](CLAUDE.md) — guidance for AI coding agents working in this repository\n\n## Quick Start\n\n### Install\n\n```bash\ncargo install bitrouter\n```\n\n### Default (setup wizard)\n\n```bash\nbitrouter\n```\n\nOn first launch, BitRouter runs an interactive setup wizard with two modes:\n\n- **Cloud** — connect to BitRouter Cloud with x402/Solana wallet payments\n- **BYOK** — bring your own API keys for OpenAI, Anthropic, Google, or custom providers\n\nAfter setup, the TUI and API server start at `http://localhost:8787`.\n\nYou can re-run the wizard at any time with `bitrouter init`.\n\n### BYOK (bring your own keys)\n\nIf you already have provider API keys in your environment, BitRouter auto-detects them — no config file needed:\n\n```bash\nexport OPENAI_API_KEY=sk-...\nbitrouter\n# Routes to \"openai:gpt-4o\" at http://localhost:8787\n```\n\nFor a foreground server without the TUI, use `bitrouter serve`.\n\n### Agent Skills\n\nInstall [Agent Skills](https://github.com/bitrouter/agent-skills) to give your AI agent the knowledge to register on the BitRouter network, configure services, and start serving requests:\n\n```bash\n# Any agent (Claude Code, Copilot, Cursor, Codex, etc.)\nnpx skills add BitRouterAI/agent-skills\n```\n\n## Supported Providers\n\n| Provider   | Status | Notes                            |\n| ---------- | ------ | -------------------------------- |\n| OpenAI     | ✅     | Chat Completions + Responses API |\n| Anthropic  | ✅     | Messages API                     |\n| Google     | ✅     | Generative AI API                |\n| OpenRouter | ✅     | Chat Completions + Responses API |\n\nWant to see another provider supported? [Open an issue](https://github.com/AIMOverse/bitrouter/issues) or submit a PR — contributions are welcome. If you're a provider interested in first-party integration, reach out on [Discord](https://discord.gg/G3zVrZDa5C).\n\n## Supported Agent Runtimes\n\nBitRouter works as a drop-in proxy for agent runtimes that support custom API base URLs. Point your runtime at `http://localhost:8787` and route to any configured provider.\n\n| Runtime                                                  | Integration                                                      |\n| -------------------------------------------------------- | ---------------------------------------------------------------- |\n| [OpenClaw](https://github.com/openclaw/openclaw)         | [Native plugin](https://github.com/bitrouter/bitrouter-openclaw) |\n| [Claude Code](https://github.com/anthropics/claude-code) | CLI + Skills                                                     |\n| [ZeroClaw](https://github.com/zeroclaw-labs/zeroclaw)    | CLI + Skills                                                     |\n| [Codex CLI](https://github.com/openai/codex)             | CLI + Skills                                                     |\n| [OpenCode](https://github.com/opencode-ai/opencode)      | CLI + Skills                                                     |\n| [Kilo Code](https://github.com/Kilo-Org/kilocode)        | CLI + Skills                                                     |\n\nAny agent runtime that can target a custom OpenAI or Anthropic base URL works with BitRouter out of the box. **Building an agent runtime or framework?** We partner with teams to build native BitRouter integrations — reach out on [Discord](https://discord.gg/G3zVrZDa5C) or [open an issue](https://github.com/AIMOverse/bitrouter/issues).\n\n## Comparison\n\n| | **BitRouter** | **OpenRouter** | **LiteLLM** |\n| --- | --- | --- | --- |\n| **Architecture** | Local-first proxy + optional cloud | Cloud-only SaaS | Local proxy (Python) |\n| **Language** | Rust | Closed-source | Python |\n| **Self-hosted** | Yes | No | Yes |\n| **Agent-native** | Yes — built for autonomous agent runtimes | No — human-facing API gateway | Partial — SDK-oriented |\n| **Agent protocols** | MCP + Skills | No | MCP |\n| **Agent firewall** | Built-in guardrails (inspect, redact, block) | Yes | Yes |\n| **Cross-protocol routing** | Yes (e.g. OpenAI format → Anthropic provider) | Provider-specific | Yes (unified interface) |\n| **Agentic payments** | Stablecoin (402/MPP) + Fiat| Credit-based billing | No |\n| **Observability** | CLI + TUI + per-request cost tracking | Web dashboard | Logging + callbacks + WebUI |\n| **Extensibility** | Trait-based SDK — import and compose crates | API only | Python middleware |\n| **Performance** | ~10ms | ~30ms (cloud) | ~500ms |\n| **License** | Apache 2.0 | Proprietary | Apache 2.0 |\n\n**TL;DR** — OpenRouter is a cloud API marketplace for humans picking models. LiteLLM is a Python proxy for unifying provider SDKs. BitRouter is a Rust-native proxy purpose-built for autonomous agents — with unified model and tool routing, agent protocols (MCP, Skills), guardrails, and agentic payments out of the box.\n\n## Roadmap\n\n- [x] Core routing engine and provider abstractions\n- [x] OpenAI, Anthropic, and Google adapters\n- [x] Interactive setup wizard (`bitrouter init`) with auto-detection\n- [x] Custom provider support (OpenAI-compatible / Anthropic-compatible)\n- [x] Cross-protocol routing (e.g. OpenAI format → Anthropic provider)\n- [x] MCP \u0026 Skills protocol support\n- [x] Tools as a service — config-driven tool routing across MCP and REST providers\n- [ ] TUI observability dashboard\n- [ ] Telemetry and usage analytics\n- [ ] Provider \u0026 model routing policy customization\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=bitrouter/bitrouter\u0026type=Date)](https://star-history.com/#bitrouter/bitrouter\u0026Date)\n\n## License\n\nLicensed under the [Apache License 2.0](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitrouter%2Fbitrouter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitrouter%2Fbitrouter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitrouter%2Fbitrouter/lists"}