MoonshotAI / MoonshotAI/kimi-code
`/login` fails after device OAuth
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
I would like to know if there is any discussion page for getting clarification. I tried
/logincommand after opening
kimi cli but after that I am seeing four options in which two are
- Kimi Code (kimi.com/code)
- Kimi Code (kimi.ai/code)
When I pressed the first or second I was redirected to website where I logged in with my google account after which it closes and then I see
✗ Login failed. Error: Login failed: The server had an error while processing your request Logged out from Kimi Code.I tried multiple times but facing the same issue. Also I am not receiving OTP's after entering my number.
Video:https://github.com/user-attachments/assets/c91c1578-79c4-4532-95cd-5e01a92d86de
Originally posted by @Beeram12 in #58
Steps to Reproduce:
- Steps:
/login→ pick Kimi Code (kimi.com or kimi.ai) → authorize in browser → browser closes → error
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the /login flow from the issue: choose each Kimi Code option, authorize in the browser, and observe the CLI result. The payload names no source files or tests, so trace the /login entry point and the device OAuth response handling. Done means the reported server error no longer causes login failure, with the OTP behavior investigated or separately scoped.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100