Tài liệu

Claude Desktop

Configure Claude Desktop with a local config file to route requests to EasyAPI and access every supported model.

Prerequisites

  • Claude Desktop client installed
  • An EasyAPI API token created in the console

Step 1: Locate the Config File

Claude Desktop extends its capabilities through a local config file. The macOS path is ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows it is %APPDATA%\Claude\claude_desktop_config.json.

Step 2: Edit the Config File

Write your EasyAPI token and API base into the config. If you use MCP or a custom proxy bridge, make sure requests ultimately point to the EasyAPI Anthropic-compatible endpoint.

{
  "mcpServers": {
    "easyapi": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-fetch"
      ],
      "env": {
        "EASYAPI_API_KEY": "sk-your-easyapi-token",
        "EASYAPI_BASE_URL": "https://token.easyapi.com"
      }
    }
  }
}

Step 3: Restart Claude Desktop

After saving, fully quit and reopen Claude Desktop so the new config takes effect.

Verification

  • After restart, the client launches with no config parse errors
  • When requests go through the integrated proxy or extension, matching entries appear in EasyAPI usage records