Claude Desktop
Claude Desktop 通常通过 Anthropic 协议或 MCP/代理配置接入。Enodot 的 Anthropic Base URL 是:
text
https://ai.enodot.shop不要手动写成 https://ai.enodot.shop/v1,Anthropic 客户端会自己请求 /v1/messages。
适用场景
- Claude Desktop 版本支持自定义 Anthropic Base URL。
- 你使用的 Claude Desktop 插件或代理支持设置 Anthropic API Key 和 Base URL。
- 你希望 Claude Desktop 使用 Enodot 的 Anthropic 兼容分组。
如果你的 Claude Desktop 版本只能使用官方登录账号,不能填写自定义 API 地址,则不能直接接入 Enodot。可以改用 Claude Code、Claude Code Router / CCS,或支持 Anthropic Compatible 的桌面客户端。
填写内容
| 字段 | 填写 |
|---|---|
| Provider | Anthropic / Anthropic Compatible |
| API Key | 你的 Enodot API Key |
| Base URL | https://ai.enodot.shop |
| Model | claude-opus-4-7 或 claude-sonnet-4-6 |
环境变量方式
有些启动方式会读取环境变量:
bash
export ANTHROPIC_API_KEY="你的 Enodot API Key"
export ANTHROPIC_BASE_URL="https://ai.enodot.shop"然后从同一个终端启动 Claude Desktop。macOS 上如果从 Dock 启动,通常读不到终端里的临时环境变量,需要在应用设置或启动脚本里配置。
curl 自测
bash
curl https://ai.enodot.shop/v1/messages \
-H "x-api-key: 你的 Enodot API Key" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-4-7",
"max_tokens": 64,
"messages": [{"role": "user", "content": "只回复 ok"}]
}'curl 成功后,再把同一个 Key 和 Base URL 写入 Claude Desktop。
常见问题
401 invalid x-api-key
Key 填错,或填成了官方 Anthropic Key。这里要填 Enodot 控制台生成的 Key。
404
Base URL 写成了 https://ai.enodot.shop/v1,导致客户端拼出重复路径。Anthropic 模式使用 https://ai.enodot.shop。
count_tokens 失败
部分渠道不支持 token counting。只要 /v1/messages 正常,对话通常不受影响。