v2.0.1 is now available

AIGateway

Local AI Model Management & Traffic Gateway

Unified management of multiple AI providers, save Token, automatic failover

macOS · Windows · Linux

Common Problems

Separate configs per tool

ChatGPT, Claude Code, OpenClaw each need their own API Key

Token usage is a black box

Unclear how much each model costs, no way to optimize

Provider rate limiting

429 errors or quota exhaustion interrupt your workflow

Large price differences

Hard to find the best value among different providers

Core Features

Save Tokens

Track usage and cost by provider and model

Auto Failover

Virtual model groups + priority Failover

One-Click Takeover

ChatGPT, Claude Code and other mainstream tools

Local Security

API Keys stored in local SQLite, no third party

AIGateway Token Usage Statistics

How It Works

All AI tools point to the local gateway, which handles routing, tracking, and failover

AIGateway system workflow
01

Tools send requests

AI tools point to the local gateway

02

Gateway routes

Keys, formats, and logs stay local

03

Route to providers

Select model channels by priority and availability

04

Track token cost

Tokens, requests, and costs are recorded automatically

UI Preview

Virtual Model Groups · One-Click Takeover

Virtual model groups aggregate multi-provider channels with priority-based auto failover; the Apps page takes over mainstream AI tools in one click

AIGateway Unified Gateway UI
AIGateway · Unified Gateway

One Base URL · OpenAI Compatible · Auto-match providers · Real-time routing logs

Keywords: local gateway / OpenAI compatible / routing logs

AIGateway Virtual Model Groups
AIGateway · Virtual Model Groups

Multi-channel aggregation · Drag to set priority · Real-time status monitoring

Keywords: priority / auto failover / model groups

AIGateway Apps One-click Takeover
AIGateway · App Takeover

ChatGPT · Claude Code · OpenClaw · Harness — take over in one click

Keywords: one-click takeover / multi-tool config / local entry

AIGateway Providers Management UI
AIGateway · Providers

Unified multi-provider management · One-click add from preset library · Seamless OpenAI-compatible integration

Keywords: provider presets / API Key / custom Base URL

AIGateway Token Usage Statistics
AIGateway · Token Usage

By model / provider / date / request · Make every token visible

Keywords: usage stats / cost tracking / request details

Supported AI Providers

One-click add from preset library, just enter your API Key. Also supports any OpenAI-compatible provider

DS
DeepSeek
深度求索
SF
SiliconFlow
硅基流动
QW
Qwen
通义千问
+
More
OpenAI 兼容
Token Relay Service
We've gathered Token providers worldwide to bring you the biggest discounts
View Relay Providers
MIT License

Fully Open Source · Free to Use

Open source under MIT license. Free for commercial use, modification, and distribution. All code is on GitHub.

LICENSE
MIT License
Actively Maintained
Copyright (c) 2026 Mars Waller
Permission is hereby granted, free of charge,
to any person obtaining a copy of this software...
Commercial use Modification Distribution
Feedback