StarSeaStarSea
Ready to build?Get an API key — 50% off online top-up →

Command Code with StarSea — custom endpoint setup

Custom endpoint parameters

Configuration

Fill in the custom endpoint / provider settings of Command Code:

先安装:npm i -g command-code。接入本站两种方式(任选其一):
① 交互式(推荐):进入会话后输入 /connect → 选 (BYOK) Add your own provider → id 填 starsea → wire 选 OpenAI-compatible → API root 填 https://starseaapi.com/v1(若粘贴了带路由后缀的完整地址,会自动裁剪到根路径并提示)→ 粘贴本站 Key(存入 ~/.commandcode/auth.json)→ 模型清单会自动从 /v1/models 拉取。
② 手改配置:编辑 ~/.commandcode/providers.json,在 provider 下新增一项:baseURL 填 https://starseaapi.com/v1、apiKey 填 "$STARSEA_API_KEY"、models 内列出站内模型 ID(建议同时写 contextWindow 与 maxOutput);改完即时生效。
注意:配置文件里的 apiKey 只接受变量引用(形如 "$环境变量名"),直接写明文 Key 会被官方拒绝 —— 想省事请走上面的 ①;另 Windows 下命令是 cmdc(cmd 是系统自带的命令解释器);该能力官方标注为 beta。

Get a key

Create a key and top up at the Key Desk — online top-up is 50% off.