Skip to content

在claude code中配置了kimi-for-coding 对应信息提示401 #277

@ZacharyDigital

Description

@ZacharyDigital

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

hai
⎿  401 {"error":{"type":"authentication_error","message":"unauthenticated"},"type":"error"}
Retrying in 13 seconds… (attempt 10/10)

✢ 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 /login

What steps can reproduce the bug?

配置切换到 kimi-for-coding 查看 /status后的状态

Settings:  Status   Config   Usage   (tab to cycle)

 Version: 2.0.37
 Session ID: 141eea29-5b1f-4597-9585-e74214e4c83c
 cwd: C:\Users\zhenx
 Auth token: ANTHROPIC_AUTH_TOKEN
 API key: ANTHROPIC_API_KEY
 Anthropic base URL: https://api.kimi.com/coding/

 Model: kimi-for-coding
 MCP servers: context7 ✔,exa ✔,github ✔
 Memory:
 Setting sources: User settings, Shared project settings, Local, Command line arguments, Enterprise managed policies

 System Diagnostics
  ⚠ Installation config mismatch: running unknown but config says global
 Settings:  Status   Config   Usage   (tab to cycle)

 Configure Claude Code preferences

 ❯ Auto-compact                              true
   Show tips                                 true
   Rewind code (checkpoints)                 true
   Verbose output                            false
   Respect .gitignore in file picker         true
   Theme                                     Dark mode
   Notifications                             Auto
   Output style                              default
   Editor mode                               normal
   Model                                     kimi-for-coding
   Auto-connect to IDE (external terminal)   false
   Use custom API key: yMRLLEWrWzA5Ef7HbASO  true

What is the expected behavior?

安装文档进行配置的

$env:ANTHROPIC_BASE_URL="https://api.kimi.com/coding/";
$env:ANTHROPIC_AUTH_TOKEN="<你的 API Key>"  # 这里填在会员页面生成的 API Key
$env:ANTHROPIC_MODEL="kimi-for-coding"
$env:ANTHROPIC_SMALL_FAST_MODEL="kimi-for-coding"

claude

还是报错啊

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions