Repository navigation
Add verified Kimi Code subscription provider preset - #87
Merged
Merged
Conversation
Adds a 'kimi' coding-plan preset pointing at the Anthropic-native https://api.kimi.com/coding surface (KIMI_API_KEY as ANTHROPIC_AUTH_TOKEN, model kimi-for-coding), smoke-tested end-to-end against agent-micro. Clarifies the existing 'moonshot' preset as pay-as-you-go (metered) so the subscription and metered Kimi surfaces aren't confused — the metered one 429s 'account suspended' on a coding subscription. Refs #85.
Contributor
Author
|
Bumped v0.0.19 → v0.0.20 on the branch — "agents run on the Kimi Code subscription" — following the per-feature PR is complete as a self-contained deliverable: preset + disambiguation + tests + version bump. Nothing else needed here. Deferred to #85 (intentionally out of scope): runtime/per-agent provider switching, key rotation/failover, OAuth-only variants (minimax-portal, qwen-oauth). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #86. First concrete deliverable of #85.
What
Adds a
kimicoding-plan preset and disambiguates the existingmoonshotone.kimi(new)https://api.kimi.com/codingKIMI_API_KEY(authToken)moonshot(clarified)https://api.moonshot.ai/anthropicMOONSHOT_API_KEYModel:
kimi-for-coding.Why
The metered
moonshotendpoint 429s "account suspended due to insufficient balance" on a coding subscription — wrong surface. The subscription has its own Anthropic-native endpoint and its ownsk-kimi-…keys.Verified
Smoke-tested end-to-end by driving agent-micro's
runner.jsagainst a real agent workspace withproviderEnv={ANTHROPIC_BASE_URL: https://api.kimi.com/coding, ANTHROPIC_AUTH_TOKEN: sk-kimi-…}+model: kimi-for-coding→status: success, real reply,usage: 1730 in / 27 out.Probes that pinned it down:
POST .../coding/v1/messages(Anthropic) → 200/chat/completions→ 403 "only available for Coding Agents such as Kimi CLI, Claude Code, Roo Code, Kilo Code" — jsclaw's harness (Claude Code) is explicitly allowed.Scope
Preset + note + tests only. The wizard already enumerates
PROVIDERS, sokimiappears as a menu choice automatically. Runtime/per-agent switching and key rotation remain in #85.Tests
test/providers.test.jsextended (kimi preset well-formed; onboarding builds the right${KIMI_API_KEY}config). Full suite green (166/166), lint clean.