[BUG] can't use openai api compatible moonshot ai api for kimi-k2.6

Resolved 💬 1 comment Opened Apr 23, 2026 by ahmed-raza-ur-rehman Closed May 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude Code v2.1.118
i am using moonshot ai
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.moonshot.ai/v1",
"ANTHROPIC_AUTH_TOKEN": "sk-....9c",
"ANTHROPIC_CUSTOM_MODEL_OPTION": "kimi-k2.6"
}
}

What Should Happen?

it should have worked normally

Error Messages/Logs

There's an issue with the selected model (kimi-k2.6). It may not exist or you may not have access to it. Run --model to pick a different model.
 ⚠Auth conflict: Both a token (ANTHROPIC_AUTH_TOKEN) and an API key (/login managed key) are set. This may lead to unexpected behavior.
    · Trying to use ANTHROPIC_AUTH_TOKEN? claude /logout
    · Trying to use /login managed key? Unset the ANTHROPIC_AUTH_TOKEN environment variable.

Steps to Reproduce

1.create moonshot api key
2.create .claude/settings.json

  1. paste

``{
"env": {
"ANTHROPIC_BASE_URL": "https://api.moonshot.ai/v1",
"ANTHROPIC_AUTH_TOKEN": "sk-....9c",
"ANTHROPIC_CUSTOM_MODEL_OPTION": "kimi-k2.6"
}
}
``

  1. insert your api key in anthropic auth token

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.118

Platform

Other

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗