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

# 龙虾配置

> 在龙虾客户端中使用免费 AI 或配置 Xcompute。

龙虾的菜单名称和 Provider 支持以当前版本为准。先选择客户端自带的免费 AI，确认基础功能正常，再添加 Xcompute。

## Xcompute 参数

* 协议：`OpenAI Compatible`
* Base URL：`https://xcompute.us/v1`
* 连接信息：打开 [API 密钥管理页面](https://xcompute.us/keys)，点击“使用令牌”获取；API Key 粘贴到客户端安全字段
* 模型：通过 `GET /v1/models` 获取，不要手工猜测
* 上下文长度：`1000000`

如果龙虾支持 AI 自动配置，可以发送：

```text theme={null}
请使用下面的连接信息配置 Xcompute OpenAI 兼容 Provider：
- Provider：Xcompute
- Base URL：{{XCOMPUTE_BASE_URL}}
- API Key：{{XCOMPUTE_API_KEY}}
- Models endpoint：{{XCOMPUTE_MODELS_ENDPOINT}}
- Context length：{{XCOMPUTE_CONTEXT_LENGTH}}

请通过 Models endpoint 自动读取模型，不要手工猜测模型名。{{XCOMPUTE_API_KEY}} 只表示客户端安全密钥字段，真实 Key 由我从 API 密钥管理页面复制后直接填写，不要在聊天记录、项目文件或日志中保存。
配置完成后先展示 Provider、请求地址、模型列表和上下文设置，等待我确认后再保存。
```

免费 AI 适合简单任务；复杂任务再使用 Xcompute。配置失败时，先确认客户端是否支持 OpenAI 兼容 Provider，再检查 Base URL 是否包含 `/v1`。
