Skip to content

feat: Add Alibaba Coding Plan Provider#239

Open
MrRolie wants to merge 5 commits intocharmbracelet:mainfrom
MrRolie:feat/alibaba-coding-plan-provider
Open

feat: Add Alibaba Coding Plan Provider#239
MrRolie wants to merge 5 commits intocharmbracelet:mainfrom
MrRolie:feat/alibaba-coding-plan-provider

Conversation

@MrRolie
Copy link
Copy Markdown

@MrRolie MrRolie commented Apr 1, 2026

feat: Add Alibaba Coding Plan Provider

Summary

This PR adds support for Alibaba Cloud's Coding Plan as an inference provider, enabling users to access Qwen, Kimi, GLM, and MiniMax models through Alibaba's DashScope API.

Changes

Added

  • Provider Configuration (internal/providers/configs/alibaba-coding-plan.json)
    • Provider ID: alibaba-coding-plan
    • API Endpoint: https://dashscope-intl.aliyuncs.com/compatible-mode/v1
    • Environment Variable: ALIBABA_CODING_PLAN_API_KEY
    • 8 coding-optimized models with detailed metadata

Models Included

  1. Qwen3.5 Plus - 1M context window, reasoning enabled
  2. Qwen3 Coder Next - 262K context, optimized for coding
  3. Kimi K2.5 - 262K context, supports attachments
  4. MiniMax-M2.5 - 196K context, reasoning enabled
  5. GLM-5 - 202K context, reasoning enabled
  6. Qwen3 Coder Plus - 1M context window
  7. GLM-4.7 - 202K context, reasoning enabled
  8. Qwen3 Max - 262K context window

Technical Details

  • Uses OpenAI-compatible API format (openai-compat type)
  • Follows existing provider pattern (similar to MiniMax)
  • All models have zero-cost metadata for subscription-based access
  • Properly integrated into embedded providers registry

Testing

  • ✅ Provider loads correctly from embedded providers
  • ✅ All 8 models validate with required fields
  • ✅ API endpoint tested and verified working
  • ✅ Compatible with international Alibaba Cloud accounts

API Key Format

Documentation

Provider follows the same pattern as other providers in the registry:

  • JSON configuration with complete model metadata
  • Embedded in providers.go registry
  • No code changes required in consuming applications

Related

  • Compatible with Crush AI assistant integration
  • Supports all OpenAI-compatible tools and features
  • International endpoint (dashscope-intl) for non-China users

Checklist:

  • Provider configuration added
  • Models properly configured with metadata
  • Embedded providers registry updated
  • Tested with real API keys
  • Follows existing provider patterns

MrRolie added 4 commits April 1, 2026 03:32
- Add alibaba.json provider configuration with Qwen models
- Register alibaba provider in providers.go
- Support for Qwen-Max, Qwen-Plus, Qwen-Turbo, and Qwen-Long models
- Uses OpenAI-compatible API endpoint at dashscope.aliyuncs.com

Provider supports subscription-based access via Alibaba Cloud Coding Plan.
- Add alibaba-coding-plan provider configuration with 8 models
- Use dedicated coding plan API endpoint (coding-intl.dashscope.aliyuncs.com)
- Include Qwen, Kimi, MiniMax, and GLM models optimized for coding
- Support for subscription-based access via Alibaba Cloud Coding Plan

Provider follows opencode pattern with detailed model metadata.
- Update endpoint to coding.dashscope.aliyuncs.com (official endpoint)
- Matches official Alibaba Cloud Model Studio documentation
- Endpoint: dashscope-intl.aliyuncs.com/compatible-mode/v1
- Verified working with standard sk- API keys
- Compatible with international (non-China) Alibaba Cloud accounts
@MrRolie MrRolie requested a review from a team as a code owner April 1, 2026 08:41
@MrRolie MrRolie requested review from andreynering and meowgorithm and removed request for a team April 1, 2026 08:41
@MrRolie
Copy link
Copy Markdown
Author

MrRolie commented Apr 1, 2026

I have read the Contributor License Agreement (CLA) and hereby sign the CLA.

"default_large_model_id": "qwen3.5-plus",
"default_small_model_id": "qwen3-coder-next",
"models": [
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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