Last updated 2026-08-31
Cline and Roo Code are VS Code extensions that let a model read files, write code and run commands. Both ship an OpenAI-compatible provider, and both are configured the same way.
Every client needs the same three. Sign in and take them from the console.
An agent extension sends the whole file, plus a long system prompt, plus the running conversation, on every single step. One multi-step task can consume more than an hour of ordinary chat.
Watch the balance in the console during your first few runs before turning it loose on a large repository. If the balance runs out mid-task the extension will report a 402 and stop.
Ask it to do something trivial, such as reading a single file and describing it. If the task completes and the console shows the tokens consumed, the connection is working.
A 401 usually means the key was copied with a trailing space. A 404 means the base URL has /v1 twice or not at all — try it the other way. A 400 saying the model is not allowed means the tool sent its own default name instead of one of ours. The full table is on the clients page.
最后更新 2026-08-31
Cline 与 Roo Code 是两款 VS Code 扩展,可让模型读取文件、编写代码并执行命令。二者均支持 OpenAI 兼容接口,配置方式相同。
所有客户端要的都是这三个。登录后在控制台获取。
此类扩展在每一步都会发送完整文件、较长的系统提示词以及当前对话历史。一次多步骤任务的消耗可能超过一小时的普通对话。
在用于大型代码库之前,建议先观察前几次运行时控制台中的余额变化。若任务中途额度耗尽,扩展会报告 402 并停止。
让它执行一个简单任务,例如读取单个文件并进行描述。若任务顺利完成,且控制台显示了消耗的 token 数,即表示连接正常。
返回 401 通常是密钥复制时末尾带了空格;返回 404 是接口地址中 /v1 重复或缺失,改成另一种写法即可;返回 400 且提示模型不被允许,说明客户端发送的是它自带的默认模型名,需手动填写本站的名称。完整对照表见客户端总览。