Claude Desktop 接入
透過 EasyAPI 中轉站為 Claude Desktop 設定本地設定檔,即可使用平台支援的各類模型。
前置條件
- 已安裝 Claude Desktop 用戶端
- 已在 EasyAPI 控制台建立 API 權杖
Step 1: 找到設定檔
Claude Desktop 透過本地設定檔擴充能力。macOS 路徑為 ~/Library/Application Support/Claude/claude_desktop_config.json;Windows 為 %APPDATA%\Claude\claude_desktop_config.json。
Step 2: 編輯設定檔
在設定中寫入 EasyAPI 權杖與 API 基址。若使用 MCP 或自訂代理橋接,請確保請求最終指向 EasyAPI 的 Anthropic 相容端點。
{
"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: 重啟 Claude Desktop
儲存設定後完全退出並重新開啟 Claude Desktop,使新設定生效。
驗證
- 重啟後用戶端可正常啟動且無設定解析錯誤
- 透過集成的代理或擴充發起請求時,EasyAPI 使用紀錄中有對應項目