UniGateway is a lightweight, high-performance LLM gateway designed for developers who use multiple AI tools (Cursor, Zed, Claude Code, etc.) and multiple providers (OpenAI, Anthropic, DeepSeek, Groq, etc.).
📦 Install
|
Or via Homebrew / Cargo:
🛠️ Usage
1. Quick Start
Run the interactive wizard to set up your first provider and generate a default configuration:
2. Managing the Server
UniGateway runs in the background. Use these commands to manage it:
3. Managing Modes
UniGateway organizes providers into Modes. Use the CLI to manage them:
3. Tool Integrations
Get ready-to-use configuration snippets for your favorite AI tools:
4. Diagnostics & Testing
Understand routing and verify connectivity:
🔌 AI Integrations
UniGateway is designed for the modern AI ecosystem.
Popular Tool Configs
🦞 OpenClaw
Connect OpenClaw to UniGateway as a unified local OpenAI-compatible entry point. See OpenClaw Integration Example for full details.
Add to ~/.openclaw/openclaw.json:
🛠️ Claude Code
Configure Claude Code to use UniGateway as its OpenAI endpoint:
MCP (Model Context Protocol)
Manage your gateway through natural language in Cursor or Claude Desktop:
AI Agent Skills
Ships with a Skill file and OpenAPI spec to help AI agents automate your LLM infrastructure.
🚀 Key Features
- Unified Interface: OpenAI-compatible API for all providers, including Anthropic and local models.
- Mode-Based Routing: Group providers into semantic "modes" (e.g.,
fast,strong,backup) for easy switching. - Pre-configured Integrations: Get instant setup snippets for Cursor, Zed, Claude Code, and more.
- Failover & Stability: Built-in fallback strategies to ensure your AI tools keep working even if a provider goes down.
- Deep Visibility: Use
ug route explainandug doctorto understand exactly how requests are routed and debug connection issues. - MCP Server: Built-in Model Context Protocol server for AI assistants to manage the gateway.
📄 License
MIT. See LICENSE.