MoonshotAI / MoonshotAI/kimi-code

`/login` fails after device OAuth

Open
#3,363 0 comments 0 reactions 0 assignees View on GitHub

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 /login command after opening
kimi cli but after that I am seeing four options in which two are

  1. Kimi Code (kimi.com/code)
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.