Introduction
Clash for AI is a local desktop gateway for people who switch between multiple AI gateways or API relay providers.
It is designed for a simple workflow:
- Configure one stable local endpoint in your tools.
- Manage upstream providers from the desktop app.
- Switch providers without rewriting every tool configuration.
What it solves
Section titled “What it solves”Clash for AI mainly addresses two problems:
- Relay providers can be unstable, so you may need to switch between different gateways frequently.
- If you use multiple coding tools, chat clients, or SDK scripts, changing providers often means repeatedly updating configuration in each tool.
Core idea
Section titled “Core idea”Instead of connecting every tool directly to a remote provider, your tools connect to one local endpoint:
http://127.0.0.1:3456/v1The desktop app then forwards requests to the currently active upstream provider.