Skip to content

Add support for Kimi.com subscriptions #14684

@Th0rgal

Description

@Th0rgal

Summary

Add support for Kimi.com (https://www.kimi.com/) as an AI provider in addition to the current providers (OpenAI, Spark, ZAI, Builtin).

Context

Kimi is a Chinese AI assistant developed by Moonshot AI (月之暗面). It offers a subscription model and provides API access via https://api.moonshot.cn/v1

Requirements

  • Add Kimi as a new provider in the provider configuration
  • Support the subscription model (API key based authentication)
  • Include at least one model (e.g., Kimi K2)
  • Ensure custom routing works properly with the new provider
  • Test on dev deployment

Implementation Notes

  • API Base URL: https://api.moonshot.cn/v1
  • SDK: @ai-sdk/openai-compatible (same as other providers)
  • Environment variable for API key: KIMI_API_KEY

Testing

Please verify:

  1. Provider is recognized in opencode
  2. Custom routing works with the new provider
  3. Test on dev deployment before production release

This issue is for tracking the implementation of Kimi.com support.

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)needs:complianceThis means the issue will auto-close after 2 hours.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions