The discussion is about a bug in Qoder where Moonshot open platform API keys (sk-xxx) fail to work under the "按量付费" option, and the user formatted the issue for reporting.

Issue Description
Qoder 和 Qoder CLI 目前不支持 Moonshot 开放平台的 API Key(格式为 sk-xxx),仅支持来自 KimiCode 订阅的 API Key(格式为 sk-kimi-xxx)。虽然工具中提供了"Coding Plan"和"按量付费"两种类型选项,但实际选择"按量付费"并输入 Moonshot sk-xxx 密钥时无法正常使用,导致用户无法通过 Moonshot 开放平台接入该工具。

Steps to Reproduce

  1. 打开 Qoder,进入模型配置或设置页面。

  2. 添加 Kimi 模型,在"类型"或"计费模式"中选择**“按量付费”**。

  3. 输入从 Moonshot 开放平台获取的 API Key(格式为 sk-xxx)。

  4. 点击保存或测试连接。

Expected Behavior
选择"按量付费"并填入正确的 Moonshot API Key 后,应能成功保存,并正常调用 Kimi API 进行对话或代码补全。

Actual Behavior
保存失败或连接测试直接报错,提示密钥无效、鉴权失败等错误,无法使用该 Key 访问 Kimi 服务。

Screenshots / Screen Recordings

Operating System

image

Current Qoder Version (Menu → About Qoder → Copy)

版本: 1.1.1

VSCode 版本: 1.106.3

提交: 906917c0c0ae838621914a016b11aee1da157778

日期: 2026-05-19T00:07:49.155Z (1 天前)

Electron: 37.7.0

Chromium: 138.0.7204.251

Node.js: 22.20.0

V8: 13.8.258.32-electron.0

OS: Darwin arm64 24.3.0