@openclaw/kimi-provider 2026.9.3 → 2026.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -11,6 +11,14 @@ openclaw gateway restart
|
|
|
11
11
|
|
|
12
12
|
See <https://docs.openclaw.ai/providers/moonshot> for setup and configuration.
|
|
13
13
|
|
|
14
|
+
## Quota errors
|
|
15
|
+
|
|
16
|
+
Kimi can return HTTP 403 when a weekly usage limit is exhausted. OpenClaw treats
|
|
17
|
+
explicit weekly, seven-day, or quota-reset errors as rate limits. Wait for the
|
|
18
|
+
provider's quota window to reset or use another configured provider; replacing a
|
|
19
|
+
valid API key does not restore quota. Invalid keys and access restrictions keep
|
|
20
|
+
their authentication error handling.
|
|
21
|
+
|
|
14
22
|
## Catalog notes
|
|
15
23
|
|
|
16
24
|
Model rows live in `openclaw.plugin.json` under `modelCatalog.providers.kimi`.
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as normalizeKimiCodingModelId, i as buildKimiCodingProvider, n as KIMI_CODING_DEFAULT_MODEL_ID, r as KIMI_CODING_LEGACY_MODEL_IDS, t as KIMI_CODING_BASE_URL } from "./provider-catalog-
|
|
1
|
+
import { a as normalizeKimiCodingModelId, i as buildKimiCodingProvider, n as KIMI_CODING_DEFAULT_MODEL_ID, r as KIMI_CODING_LEGACY_MODEL_IDS, t as KIMI_CODING_BASE_URL } from "./provider-catalog-Dlm8Jmp0.js";
|
|
2
2
|
import { KIMI_CODING_MODEL_REF, KIMI_MODEL_REF } from "./onboard.js";
|
|
3
3
|
export { KIMI_CODING_BASE_URL, KIMI_CODING_DEFAULT_MODEL_ID, KIMI_CODING_LEGACY_MODEL_IDS, KIMI_CODING_MODEL_REF, KIMI_MODEL_REF, buildKimiCodingProvider, normalizeKimiCodingModelId };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as normalizeKimiCodingModelId, i as buildKimiCodingProvider, o as openclaw_plugin_default } from "./provider-catalog-
|
|
1
|
+
import { a as normalizeKimiCodingModelId, i as buildKimiCodingProvider, o as openclaw_plugin_default } from "./provider-catalog-Dlm8Jmp0.js";
|
|
2
2
|
import { KIMI_CODING_MODEL_REF, applyKimiCodeConfig } from "./onboard.js";
|
|
3
3
|
import { isKimiK3ModelId, resolveThinkingProfile } from "./provider-policy-api.js";
|
|
4
4
|
import { KIMI_REPLAY_POLICY } from "./replay-policy.js";
|
|
@@ -9,6 +9,7 @@ import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-co
|
|
|
9
9
|
//#region extensions/kimi-coding/index.ts
|
|
10
10
|
const PLUGIN_ID = "kimi";
|
|
11
11
|
const PROVIDER_ID = "kimi";
|
|
12
|
+
const PROVIDER_ALIASES = ["kimi-code", "kimi-coding"];
|
|
12
13
|
function findExplicitProviderConfig(providers, providerId) {
|
|
13
14
|
if (!providers) return;
|
|
14
15
|
const normalizedProviderId = normalizeProviderId(providerId);
|
|
@@ -23,7 +24,7 @@ var kimi_coding_default = defineSingleProviderPluginEntry({
|
|
|
23
24
|
provider: {
|
|
24
25
|
id: PROVIDER_ID,
|
|
25
26
|
label: "Kimi",
|
|
26
|
-
aliases:
|
|
27
|
+
aliases: PROVIDER_ALIASES,
|
|
27
28
|
docsPath: "/providers/moonshot",
|
|
28
29
|
envVars: ["KIMI_API_KEY", "KIMICODE_API_KEY"],
|
|
29
30
|
manifestAuth: {
|
|
@@ -58,6 +59,12 @@ var kimi_coding_default = defineSingleProviderPluginEntry({
|
|
|
58
59
|
} };
|
|
59
60
|
}
|
|
60
61
|
},
|
|
62
|
+
classifyFailoverReason: ({ provider, status, errorMessage }) => {
|
|
63
|
+
if (!provider || status !== 403) return;
|
|
64
|
+
const providerId = normalizeProviderId(provider);
|
|
65
|
+
if (providerId !== PROVIDER_ID && !PROVIDER_ALIASES.includes(providerId)) return;
|
|
66
|
+
return /\b(?:weekly(?:\s+\(7-day\))?|(?:7|seven)[ -]day)\s+(?:usage\s+)?limit\b/i.test(errorMessage) || /\bquota\s+will\s+reset\b/i.test(errorMessage) ? "rate_limit" : void 0;
|
|
67
|
+
},
|
|
61
68
|
buildReplayPolicy: () => KIMI_REPLAY_POLICY,
|
|
62
69
|
normalizeResolvedModel: ({ model }) => {
|
|
63
70
|
const normalizedId = normalizeKimiCodingModelId(model.id);
|
package/dist/onboard.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as buildKimiCodingProvider, n as KIMI_CODING_DEFAULT_MODEL_ID, t as KIMI_CODING_BASE_URL } from "./provider-catalog-
|
|
1
|
+
import { i as buildKimiCodingProvider, n as KIMI_CODING_DEFAULT_MODEL_ID, t as KIMI_CODING_BASE_URL } from "./provider-catalog-Dlm8Jmp0.js";
|
|
2
2
|
import { createDefaultModelsPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
3
|
//#region extensions/kimi-coding/onboard.ts
|
|
4
4
|
const KIMI_MODEL_REF = `kimi/${KIMI_CODING_DEFAULT_MODEL_ID}`;
|
|
@@ -2,9 +2,14 @@ import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-c
|
|
|
2
2
|
//#region extensions/kimi-coding/openclaw.plugin.json
|
|
3
3
|
var openclaw_plugin_default = {
|
|
4
4
|
id: "kimi",
|
|
5
|
+
categories: ["models"],
|
|
5
6
|
activation: { "onStartup": false },
|
|
6
7
|
enabledByDefault: true,
|
|
7
|
-
providers: [
|
|
8
|
+
providers: [
|
|
9
|
+
"kimi",
|
|
10
|
+
"kimi-code",
|
|
11
|
+
"kimi-coding"
|
|
12
|
+
],
|
|
8
13
|
providerRequest: { "providers": {
|
|
9
14
|
"kimi": {
|
|
10
15
|
"family": "moonshot",
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as normalizeKimiCodingModelId, i as buildKimiCodingProvider, n as KIMI_CODING_DEFAULT_MODEL_ID, r as KIMI_CODING_LEGACY_MODEL_IDS, t as KIMI_CODING_BASE_URL } from "./provider-catalog-
|
|
1
|
+
import { a as normalizeKimiCodingModelId, i as buildKimiCodingProvider, n as KIMI_CODING_DEFAULT_MODEL_ID, r as KIMI_CODING_LEGACY_MODEL_IDS, t as KIMI_CODING_BASE_URL } from "./provider-catalog-Dlm8Jmp0.js";
|
|
2
2
|
export { KIMI_CODING_BASE_URL, KIMI_CODING_DEFAULT_MODEL_ID, KIMI_CODING_LEGACY_MODEL_IDS, buildKimiCodingProvider, normalizeKimiCodingModelId };
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "kimi",
|
|
3
|
+
"categories": ["models"],
|
|
3
4
|
"activation": {
|
|
4
5
|
"onStartup": false
|
|
5
6
|
},
|
|
6
7
|
"enabledByDefault": true,
|
|
7
|
-
"providers": ["kimi", "kimi-coding"],
|
|
8
|
+
"providers": ["kimi", "kimi-code", "kimi-coding"],
|
|
8
9
|
"providerRequest": {
|
|
9
10
|
"providers": {
|
|
10
11
|
"kimi": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/kimi-provider",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.4",
|
|
4
4
|
"description": "OpenClaw Kimi provider plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.6.8"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.9.
|
|
21
|
+
"pluginApi": ">=2026.9.4"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.9.
|
|
24
|
+
"openclawVersion": "2026.9.4",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"openclaw": ">=2026.9.
|
|
41
|
+
"openclaw": ">=2026.9.4"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|