Skip to content

feat: add support for coding plan providers (glm, kimi, minimax)#13

Open
ZerGo0 wants to merge 3 commits intospacedriveapp:mainfrom
ZerGo0:feat/coding-plan-support
Open

feat: add support for coding plan providers (glm, kimi, minimax)#13
ZerGo0 wants to merge 3 commits intospacedriveapp:mainfrom
ZerGo0:feat/coding-plan-support

Conversation

@ZerGo0
Copy link

@ZerGo0 ZerGo0 commented Feb 17, 2026

This pr adds full support for GLM, Kimi, and MiniMax coding-plan.

Tested:

  • GLM coding plan
  • Kimi coding plan
  • Minimax coding plan (I don't have coding plan anymore, but the implantation is based on their docs)

@nmb4
Copy link

nmb4 commented Feb 17, 2026

how did you get the kimi coding plan to work? i tried to use it in codex last week i think and it errors saying only the claude code and kimi tools are allowed to call it's api.

@nmb4
Copy link

nmb4 commented Feb 17, 2026

i just tried to look at the code to figure it out myself and saw that you also ran formatting, maybe you could tell your agent to split the commit into two, with one having all the formatting and a second that just contains the actual changes that implement the coding plan integrations?

@ZerGo0
Copy link
Author

ZerGo0 commented Feb 17, 2026

@nmb4 Good catch, I didn't test that, but I fixed it in: 285d12a

image

Openclaw uses pi for this stuff I think and they seem to use Anthropic/JS 0.73.0, but yea, the current user-agent works just fine.

@ZerGo0 ZerGo0 force-pushed the feat/coding-plan-support branch 2 times, most recently from 209bc9d to 1b452cc Compare February 17, 2026 18:06
Reapply functional changes on top of isolated formatting commit while preserving the exact pre-rewrite tree state.
@ZerGo0 ZerGo0 force-pushed the feat/coding-plan-support branch from 1b452cc to 7124faf Compare February 17, 2026 18:10
ZerGo0 and others added 2 commits February 17, 2026 19:14
- Adjusted the build process to copy the spacebot binary from the build target to the final image.
- Ensured the binary is built and copied correctly by modifying the build command.
Map `glm-coding`, `kimi-coding`, and `minimax-coding` to provider
icons in `providerIcons.tsx`, using dedicated icons for Kimi and
MiniMax from `@lobehub/icons`.

Closes spacedriveapp#13

ZerGo0 Bot
@hotzen hotzen mentioned this pull request Feb 17, 2026
@hotzen
Copy link

hotzen commented Feb 17, 2026

Thanks for the PR, will test MiniMax in a second

@hotzen
Copy link

hotzen commented Feb 17, 2026

works like a charm, thanks!

[llm]
minimax_key = "env:MINIMAX_API_KEY"

[defaults.routing]
channel = "minimax-coding/MiniMax-M2.5"
worker = "minimax-coding/MiniMax-M2.5"

@ricorna
Copy link
Contributor

ricorna commented Feb 18, 2026

Hold off a min. I think i have a more elegant solution worked out. I'm testing it all currently.

this root issue is for many of these providers the API key is generic, you can use it to hit the paid API endpoint or the Coding subscription endpoint. no way to tell which is which by key itself though.

i'm normalizing the base urls used across the providers setup. This then allows you to always set a custom base URL in your provider settings, including in the UI for future proofing and maximum compatibility, and adding default options for the ones I can find and test. Z.ai and kimi code so far.

@ricorna
Copy link
Contributor

ricorna commented Feb 18, 2026

Update: the alternative approach I mentioned is ready. Submitted as three PRs:

All three coding plans (Z.ai, Kimi, MiniMax) tested and verified with real subscriptions. The base_url approach covers everything your PR aimed to solve — plus proxies, Azure, self-hosted, regional endpoints, and any future tier variations — without multiplying provider entries.

Your research on the coding plan endpoints was genuinely helpful in getting this done — wouldn't have known the right URLs without your work here. Thanks @ZerGo0.

@RenderCoder
Copy link

I hope to be able to customize the model supplier URL.

@sneycampos
Copy link

Any updates for this PR or any chance to be merged? 🙏🏻

@thesammykins
Copy link
Contributor

Hey! I've added the Z.AI coding plan and it's been merged #67

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.

7 participants

Comments