Skip to content

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:

  1. Configure one stable local endpoint in your tools.
  2. Manage upstream providers from the desktop app.
  3. Switch providers without rewriting every tool configuration.

Clash for AI mainly addresses two problems:

  1. Relay providers can be unstable, so you may need to switch between different gateways frequently.
  2. If you use multiple coding tools, chat clients, or SDK scripts, changing providers often means repeatedly updating configuration in each tool.

Instead of connecting every tool directly to a remote provider, your tools connect to one local endpoint:

http://127.0.0.1:3456/v1

The desktop app then forwards requests to the currently active upstream provider.