> ## Documentation Index
> Fetch the complete documentation index at: https://docs.a2agent.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Use A2Agent Models with Claude Desktop (CC Switch Setup Guide)

> Claude Desktop has no custom-endpoint field, so use CC Switch to register A2Agent as a provider, then run DeepSeek, Kimi and GLM in the desktop app.

Claude Desktop has no field for a custom model endpoint, so this guide uses CC Switch to register A2Agent as a provider. Once it's added and routing is enabled, the desktop app can run DeepSeek, Kimi and GLM through your A2Agent key.

You'll configure three things in CC Switch - the provider name, your A2Agent API key, and the base URL [https://api.a2agent.me](https://api.a2agent.me) - then pick a model inside Claude Desktop.

## Prerequisites

* **Claude Desktop** installed — follow the [claude-code download](https://claude.com/product/claude-code)
* **CC Switch** is installed. [Download CC Switch](https://ccswitch.io/zh/download)
* An A2Agent API key — [sign up at a2agent.me/register](https://a2agent.me/register) to get one

## Setup

<Steps>
  <Step title="Add a Provider">
    Open CC Switch, switch to the **Claude Desktop**  tab at the top, and click the orange **「+」** in the top-right corner.On the **Add New Provider** page, keep **Claude** as the provider and click **Custom Configuration** in the top-left corner.

    <img src="https://mintcdn.com/a2agent/uuKnhYzsikgWVhW1/images/image.png?fit=max&auto=format&n=uuKnhYzsikgWVhW1&q=85&s=6f7348b234f58353d261b4554d80740a" alt="Image" width="1092" height="101" data-path="images/image.png" />
  </Step>

  <Step title="Fill in the Provider Information">
    * Provider Name：Custom, e.g. `A2Agent-Claude.`
    * API Key：Your A2Agent API key.
    * API Base URL:[https://api.a2agent.me](https://api.a2agent.me)
          <img src="https://mintcdn.com/a2agent/uuKnhYzsikgWVhW1/images/image-1.png?fit=max&auto=format&n=uuKnhYzsikgWVhW1&q=85&s=e007546d34c7b07f1efb0e3f1d802163" alt="Image" width="1040" height="341" data-path="images/image-1.png" />
  </Step>

  <Step title="Model Configuration">
    Choose **Model Mapping** as the connection method. After fetching the model list, select the model you want to map

    <img src="https://mintcdn.com/a2agent/uuKnhYzsikgWVhW1/images/image-2.png?fit=max&auto=format&n=uuKnhYzsikgWVhW1&q=85&s=94bb31e747cb9cbaf530793749998e70" alt="Image" width="1047" height="519" data-path="images/image-2.png" />
  </Step>

  <Step title="Enable Routing">
    * Click **Settings** in the top-left corner → **Routing** → **Local Routing**.
    * Turn on **Show the local routing switch on the main page**.
    * Turn on the **Routing master switch**.
          <img src="https://mintcdn.com/a2agent/uuKnhYzsikgWVhW1/images/image-4.png?fit=max&auto=format&n=uuKnhYzsikgWVhW1&q=85&s=7048c003dbb56e8d449c867ca953b2d4" alt="Image" width="1064" height="534" data-path="images/image-4.png" />
  </Step>

  <Step title="Enable the Provider Channel">
    * Return to the provider list and click Enable on the A2Agent-Claude card.
    * When the button shows In Use, the provider has been enabled.
  </Step>
</Steps>

After finishing the configuration, restart **CC Switch** and **Claude Desktop**, and you can start using A2Agent models.
