Open-source AI gateway on Cloudflare Workers, in TypeScript: OpenAI/Anthropic-compatible chat with SSE streaming, provider routing with circuit breaking and failover, virtual API keys, per-tenant D1 isolation, quotas/wallets/budgets, guardrails, response cache, MCP server, durable metering, contract-driven Admin API.
View on GitHub →
🔍 Audit Wallet Slippage →
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Claude Desktop
Claude Code
Cursor
Add to claude_desktop_config.json:
{
"mcpServers": {
"ferrogate": {
"command": "npx",
"args": [
"-y",
"lianluo-esign/ferrogate"
]
}
}
}
📋 Copy
Run in terminal:
claude mcp add ferrogate npx -y lianluo-esign/ferrogate
📋 Copy
Add to .cursor/mcp.json:
{
"mcpServers": {
"ferrogate": {
"command": "npx",
"args": [
"-y",
"lianluo-esign/ferrogate"
]
}
}
}
📋 Copy
README Excerpt
<!-- Token4AI Cloud Attribution Developed by the commercial cloud service company represented by https://token4ai.cloud. Author: jamesduan (X: https://x.com/JamesDuanL) Created: 2026-06-11 description: Token4AI Cloud, FerroGate AI Gateway, TypeScript on Cloudflare Workers, agent-native AI traffic infrastructure.
Tools (15)
billing cloudflare config core guardrails identity observability payments policy providers routing schemas secrets sso storage
Topics
agentic-gateway ai ai-agent ai-gateway ai-tools aigateway api-gateway cloudflare-workers durable-objects hono infrastructure mcp-gateway reverse-proxy serverless typescript