Source: https://aiprimetech.io/zh/docs/guides/cline/ [首页](/zh/) / [文档](/zh/docs/) / Cline # Cline 配置 Cline VS Code 扩展,使其连接到 Anthropic 格式端点。 复制页面 [ 以 Markdown 查看](/zh/docs/guides/cline.md) [ 向 ChatGPT 提问](https://chatgpt.com/?q=Read%20https%3A//aiprimetech.io/docs/guides/cline.md%20and%20answer%20questions%20about%20it.%20Start%20with%20a%20short%20summary.) [ 在 Claude 中提问](https://claude.ai/new?q=Read%20https%3A//aiprimetech.io/docs/guides/cline.md%20and%20answer%20questions%20about%20it.%20Start%20with%20a%20short%20summary.) Cline 原生支持 Anthropic Messages 格式,因此它使用 /v1/messages ,基础 URL 使用 否 /v1 后缀。 ## 设置 - 从 VS Code 扩展市场安装 Cline,并打开其设置面板。 - 设置 API 提供商 变为 Anthropic. - 将你的 sk- 密钥粘贴到 API 密钥字段中。 - 启用自定义基础 URL 选项,并将其设置为 https://aiprimetech.io. - 选择一个模型 ID,例如 claude-sonnet-4-6. 提供商Anthropic 基础 URLhttps://aiprimetech.io — 不带 /v1 使用的端点/v1/messages 如果 Cline 的设置中提供的是兼容 OpenAI 的提供商,该方式也可以使用 — 但此时基础 URL 应为 https://aiprimetech.io/v1。选择其中一种,并使用与之匹配的后缀。 ## 成本说明 Cline 是一个智能体:它读取文件、运行命令,并将结果作为上下文反馈。其成本规律与 [Claude Code](/zh/docs/guides/claude-code/) 相同 — 输出 token 占据主要成本,工具结果也会不断累积。应开启新任务,而不是持续使用同一个长会话。 [消息 APICline 使用的格式](/zh/docs/api-reference/messages/)[费用控制控制智能体运行成本](/zh/docs/guides/cost-control/) [上一页Cursor](/zh/docs/guides/cursor/)[下一页Aider](/zh/docs/guides/aider/)