Skip to content

Quick Start

You need:

  1. A desktop build of Clash for AI or a local development environment.
  2. At least one upstream provider or relay service.
  3. A tool that supports custom API endpoints.

After launching the desktop app, Clash for AI starts a local API gateway.

The default local endpoint is usually:

http://127.0.0.1:3456/v1

If the default port is occupied, the app may use another local port. Always use the connected api base shown in the app.

Clash for AI launch overview

Open the Providers page and fill in:

  1. Name
  2. Base URL
  3. API Key

For OpenAI-compatible relay services, the Base URL usually ends with /v1.

Provider form

If you have more than one provider configured, click Enable on the provider you want to use.

Only the active provider receives forwarded traffic.

Most OpenAI-compatible tools can use:

Base URL: http://127.0.0.1:3456/v1
API Key: dummy

The local key can usually be any non-empty string because the real upstream credential is stored and applied by Clash for AI.

After your tool is connected:

  1. Send a normal request.
  2. Open the Logs page in Clash for AI.
  3. Verify the request appears there.

If the request fails, start with the provider health check and then inspect the request log details.

Request Log