Skip to content

fix: recognize the namespaced Kimi Code OAuth key for quota lookup - #37

Open
edgexyz wants to merge 1 commit into
Fei2411:mainfrom
edgexyz:main
Open

edgexyz wants to merge 1 commit into
Fei2411:mainfrom
edgexyz:main

Conversation

@edgexyz

@edgexyz edgexyz commented Oct 14, 2026

Copy link
Copy Markdown

Kimi Code 2.1.1 uses storage = "file" and key = "oauth/kimi-code" for its default OAuth provider. Agent Bridge currently accepts only "kimi-code", so it rejects this configuration before quota lookup and reports:

quota lookup is unsupported for a non-default Kimi OAuth credential slot

This change accepts both "kimi-code" and "oauth/kimi-code" using exact matching. It preserves compatibility with the previously accepted key while continuing to reject other credentials and non-file storage.

Upstream reference:
https://github.com/MoonshotAI/kimi-cli/blob/main/src/kimi_cli/auth/oauth.py
(KIMI_CODE_OAUTH_KEY = "oauth/kimi-code")

Validation:

  • Confirmed the affected configuration locally with Kimi Code 2.1.1.
  • Reproduced the existing rejection through Agent Bridge's list_agents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant