Skip to content

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

Closed
ZerGo0 wants to merge 3 commits into
spacedriveapp:mainfrom
ZerGo0:feat/coding-plan-support
Closed

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

Conversation

@ZerGo0

@ZerGo0 ZerGo0 commented Feb 17, 2026

Copy link
Copy Markdown

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

nmb4 commented Feb 17, 2026

Copy link
Copy Markdown

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

nmb4 commented Feb 17, 2026

Copy link
Copy Markdown

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

ZerGo0 commented Feb 17, 2026

Copy link
Copy Markdown
Author

@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

hotzen commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Thanks for the PR, will test MiniMax in a second

@hotzen

hotzen commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

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

ricorna commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

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

ricorna commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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

@sneycampos

Copy link
Copy Markdown

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

@thesammykins

Copy link
Copy Markdown
Contributor

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

@ZerGo0 ZerGo0 closed this Feb 20, 2026
slvnlrt added a commit to slvnlrt/spacebot that referenced this pull request Jun 25, 2026
- README: cutover-wired status, current code map (trait, deleted dup modules)
- handoff: what's done (trait/cutover/runtime-validated), Plan C = what's left,
  decisions A(settled)/B(documented)/C(open), known landmines
- followups: spacedriveapp#3 + spacedriveapp#4 RESOLVED; spacedriveapp#7 partly (384-dim runs, recall benchmark TODO);
  added spacedriveapp#13 build_channel_context landmine, spacedriveapp#14 cfg-split dup, spacedriveapp#15 migrate unwired
- design.md: banner marking it as original intent; points to README/handoff/followups
slvnlrt added a commit to slvnlrt/spacebot that referenced this pull request Jun 25, 2026
slvnlrt added a commit to slvnlrt/spacebot that referenced this pull request Jun 25, 2026
…ckend)

build_channel_context had no callers (confirmed: grep -rnE
"build_channel_context" src/ tests/ returns only its definition).
It took &MemoryStore (concrete type) which would bypass the
MemoryBackend abstraction if ever wired in (followups spacedriveapp#13).

Removed the function and its two exclusive imports (StatusBlock,
MemoryStore). Left a tombstone comment pointing to Arc<dyn MemoryBackend>.
build_branch_context / build_worker_context are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L4YiSsKqD5hx9ETS148EwL
slvnlrt added a commit to slvnlrt/spacebot that referenced this pull request Jun 25, 2026
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