Skip to content

Add Moonshot provider#325

Open
TheRAWagent wants to merge 4 commits into
charmbracelet:mainfrom
TheRAWagent:main
Open

Add Moonshot provider#325
TheRAWagent wants to merge 4 commits into
charmbracelet:mainfrom
TheRAWagent:main

Conversation

@TheRAWagent

Copy link
Copy Markdown

Summary

  • Add Moonshot AI (moonshot.ai) as a dedicated provider with their OpenAI-compatible API endpoint.
  • Include Kimi K2.6, 2.5, Moonshot V1, vision and preview models.

Test plan

  • go build ./... passes
  • go vet ./... passes

💘 Generated with Crush

Comment on lines +2 to +5
"name": "Moonshot",
"id": "moonshot",
"api_key": "$MOONSHOT_API_KEY",
"api_endpoint": "https://api.moonshot.cn/v1",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the Chinese version, we should reflect that in the ID and name:

Suggested change
"name": "Moonshot",
"id": "moonshot",
"api_key": "$MOONSHOT_API_KEY",
"api_endpoint": "https://api.moonshot.cn/v1",
"name": "Moonshot (China)",
"id": "moonshot-china",
"api_key": "$MOONSHOT_CHINA_API_KEY",
"api_endpoint": "https://api.moonshot.cn/v1",

The same apply to all code references (consts, function names, etc.)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated it.

It was a typo, The provider is for moonshot global

@TheRAWagent TheRAWagent requested a review from andreynering June 5, 2026 17:55
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.

2 participants