在claude code中配置了kimi-for-coding 对应信息提示401 #314
Replies: 11 comments 3 replies
-
|
使用Kimi For Coding 是 Kimi 会员权益中的一项服务, 获得了key 在Claude code 总是报错 |
Beta Was this translation helpful? Give feedback.
-
|
使用开放平台的API _
_ 就没问题 Use open platform APIs _
_ That's no problem |
Beta Was this translation helpful? Give feedback.
-
|
确定 key 是从 https://www.kimi.com/membership/pricing 获得的,而且是 sk-kimi- 开头的 key 吗? ANTHROPIC_API_KEY='' ANTHROPIC_BASE_URL=https://api.kimi.com/coding/ ANTHROPIC_AUTH_TOKEN=sk-kimi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx claude这样能用吗? Are you sure the key is obtained from https://www.kimi.com/membership/pricing and is it a key starting with sk-kimi-? ANTHROPIC_API_KEY='' ANTHROPIC_BASE_URL=https://api.kimi.com/coding/ ANTHROPIC_AUTH_TOKEN=sk-kimi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx claudeCan this be used? |
Beta Was this translation helpful? Give feedback.
-
|
已解决 !
1、把claude code配置文件的删除一下,重新启动即可。大概率是配置的MCP导致的 |
Beta Was this translation helpful? Give feedback.
-
解决方法 #277 (comment) |
Beta Was this translation helpful? Give feedback.
-
解决方法 #277 (comment) |
Beta Was this translation helpful? Give feedback.
-
|
没用,macos下仍然提示401 It doesn’t work. It still prompts 401 under macos. |
Beta Was this translation helpful? Give feedback.
-
|
最近kimi的 api 总是改来改去的,让人摸不着头脑,最好就是把两个api key 都配置了比较靠谱 Recently, Kimi's API has been constantly changing, which makes people confused. It is best to configure both API keys to be more reliable. |
Beta Was this translation helpful? Give feedback.
-
还是不可可以 |
Beta Was this translation helpful? Give feedback.
-
|
使用 ANTHROPIC_API_KEY 环境变量试试。 Try using the ANTHROPIC_API_KEY environment variable. |
Beta Was this translation helpful? Give feedback.
-
|
不要看网上的解决方案,只看官网的教程就好。 从会员权益页点进去看解决方案,不要谷歌搜索以防走错页面。 Don't look at the solutions online, just look at the tutorials on the official website. Click on the member rights page to see the solution. Do not search on Google to avoid landing on the wrong page. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
What version of Kimi CLI is running?
kimi-for-coding
Which open platform/subscription were you using?
kimi-for-coding
Which model were you using?
No response
What platform is your computer?
No response
What issue are you seeing?
`> /model
⎿ Set model to kimi-for-coding
✢ Nucleating… (esc to interrupt · 2m 51s · ↑ 0 tokens)
⎿ Tip: Use git worktrees to run multiple Claude sessions in parallel.`
> hai ⎿ API Error: 401 {"error":{"type":"authentication_error","message":"unauthenticated"},"type":"error"} · Please run /loginWhat steps can reproduce the bug?
配置切换到 kimi-for-coding 查看 /status后的状态
What is the expected behavior?
安装文档进行配置的
claude
还是报错啊
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions