Skip to content

Commit 03f5036

Browse files
committed
refactor: rename kimi coding surface to kimi
1 parent 763eff8 commit 03f5036

7 files changed

Lines changed: 26 additions & 23 deletions

File tree

‎extensions/kimi-coding/index.ts‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,40 @@ const PROVIDER_ID = "kimi-coding";
88

99
const kimiCodingPlugin = {
1010
id: PROVIDER_ID,
11-
name: "Kimi Coding Provider",
12-
description: "Bundled Kimi Coding provider plugin",
11+
name: "Kimi Provider",
12+
description: "Bundled Kimi provider plugin",
1313
configSchema: emptyPluginConfigSchema(),
1414
register(api: OpenClawPluginApi) {
1515
api.registerProvider({
1616
id: PROVIDER_ID,
17-
label: "Kimi Coding",
18-
aliases: ["kimi-code"],
17+
label: "Kimi",
18+
aliases: ["kimi", "kimi-code"],
1919
docsPath: "/providers/moonshot",
2020
envVars: ["KIMI_API_KEY", "KIMICODE_API_KEY"],
2121
auth: [
2222
createProviderApiKeyAuthMethod({
2323
providerId: PROVIDER_ID,
2424
methodId: "api-key",
25-
label: "Kimi Code API key (subscription)",
26-
hint: "Kimi K2.5 + Kimi Coding",
25+
label: "Kimi API key (subscription)",
26+
hint: "Kimi K2.5 + Kimi",
2727
optionKey: "kimiCodeApiKey",
2828
flagName: "--kimi-code-api-key",
2929
envVar: "KIMI_API_KEY",
30-
promptMessage: "Enter Kimi Coding API key",
30+
promptMessage: "Enter Kimi API key",
3131
defaultModel: KIMI_CODING_MODEL_REF,
32-
expectedProviders: ["kimi-code", "kimi-coding"],
32+
expectedProviders: ["kimi", "kimi-code", "kimi-coding"],
3333
applyConfig: (cfg) => applyKimiCodeConfig(cfg),
3434
noteMessage: [
35-
"Kimi Coding uses a dedicated endpoint and API key.",
35+
"Kimi uses a dedicated coding endpoint and API key.",
3636
"Get your API key at: https://www.kimi.com/code/en",
3737
].join("\n"),
38-
noteTitle: "Kimi Coding",
38+
noteTitle: "Kimi",
3939
wizard: {
4040
choiceId: "kimi-code-api-key",
41-
choiceLabel: "Kimi Code API key (subscription)",
41+
choiceLabel: "Kimi API key (subscription)",
4242
groupId: "moonshot",
4343
groupLabel: "Moonshot AI (Kimi K2.5)",
44-
groupHint: "Kimi K2.5 + Kimi Coding",
44+
groupHint: "Kimi K2.5 + Kimi",
4545
},
4646
}),
4747
],

‎extensions/kimi-coding/onboard.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function applyKimiCodeProviderConfig(cfg: OpenClawConfig): OpenClawConfig
1515
const models = { ...cfg.agents?.defaults?.models };
1616
models[KIMI_CODING_MODEL_REF] = {
1717
...models[KIMI_CODING_MODEL_REF],
18-
alias: models[KIMI_CODING_MODEL_REF]?.alias ?? "Kimi for Coding",
18+
alias: models[KIMI_CODING_MODEL_REF]?.alias ?? "Kimi",
1919
};
2020

2121
const defaultModel = buildKimiCodingProvider().models[0];

‎extensions/kimi-coding/openclaw.plugin.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"provider": "kimi-coding",
1010
"method": "api-key",
1111
"choiceId": "kimi-code-api-key",
12-
"choiceLabel": "Kimi Code API key (subscription)",
12+
"choiceLabel": "Kimi API key (subscription)",
1313
"groupId": "moonshot",
1414
"groupLabel": "Moonshot AI (Kimi K2.5)",
15-
"groupHint": "Kimi K2.5 + Kimi Coding",
15+
"groupHint": "Kimi K2.5 + Kimi",
1616
"optionKey": "kimiCodeApiKey",
1717
"cliFlag": "--kimi-code-api-key",
1818
"cliOption": "--kimi-code-api-key <key>",
19-
"cliDescription": "Kimi Coding API key"
19+
"cliDescription": "Kimi API key"
2020
}
2121
],
2222
"configSchema": {

‎extensions/kimi-coding/provider-catalog.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function buildKimiCodingProvider(): ModelProviderConfig {
2222
models: [
2323
{
2424
id: KIMI_CODING_DEFAULT_MODEL_ID,
25-
name: "Kimi for Coding",
25+
name: "Kimi",
2626
reasoning: true,
2727
input: ["text", "image"],
2828
cost: KIMI_CODING_DEFAULT_COST,

‎extensions/moonshot/index.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const moonshotPlugin = {
3535
providerId: PROVIDER_ID,
3636
methodId: "api-key",
3737
label: "Kimi API key (.ai)",
38-
hint: "Kimi K2.5 + Kimi Coding",
38+
hint: "Kimi K2.5 + Kimi",
3939
optionKey: "moonshotApiKey",
4040
flagName: "--moonshot-api-key",
4141
envVar: "MOONSHOT_API_KEY",
@@ -48,14 +48,14 @@ const moonshotPlugin = {
4848
choiceLabel: "Kimi API key (.ai)",
4949
groupId: "moonshot",
5050
groupLabel: "Moonshot AI (Kimi K2.5)",
51-
groupHint: "Kimi K2.5 + Kimi Coding",
51+
groupHint: "Kimi K2.5 + Kimi",
5252
},
5353
}),
5454
createProviderApiKeyAuthMethod({
5555
providerId: PROVIDER_ID,
5656
methodId: "api-key-cn",
5757
label: "Kimi API key (.cn)",
58-
hint: "Kimi K2.5 + Kimi Coding",
58+
hint: "Kimi K2.5 + Kimi",
5959
optionKey: "moonshotApiKey",
6060
flagName: "--moonshot-api-key",
6161
envVar: "MOONSHOT_API_KEY",
@@ -68,7 +68,7 @@ const moonshotPlugin = {
6868
choiceLabel: "Kimi API key (.cn)",
6969
groupId: "moonshot",
7070
groupLabel: "Moonshot AI (Kimi K2.5)",
71-
groupHint: "Kimi K2.5 + Kimi Coding",
71+
groupHint: "Kimi K2.5 + Kimi",
7272
},
7373
}),
7474
],

‎extensions/moonshot/openclaw.plugin.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"choiceLabel": "Kimi API key (.ai)",
1313
"groupId": "moonshot",
1414
"groupLabel": "Moonshot AI (Kimi K2.5)",
15-
"groupHint": "Kimi K2.5 + Kimi Coding",
15+
"groupHint": "Kimi K2.5 + Kimi",
1616
"optionKey": "moonshotApiKey",
1717
"cliFlag": "--moonshot-api-key",
1818
"cliOption": "--moonshot-api-key <key>",
@@ -25,7 +25,7 @@
2525
"choiceLabel": "Kimi API key (.cn)",
2626
"groupId": "moonshot",
2727
"groupLabel": "Moonshot AI (Kimi K2.5)",
28-
"groupHint": "Kimi K2.5 + Kimi Coding",
28+
"groupHint": "Kimi K2.5 + Kimi",
2929
"optionKey": "moonshotApiKey",
3030
"cliFlag": "--moonshot-api-key",
3131
"cliOption": "--moonshot-api-key <key>",

‎src/agents/provider-id.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export function normalizeProviderId(provider: string): string {
1515
if (normalized === "kimi-code") {
1616
return "kimi-coding";
1717
}
18+
if (normalized === "kimi") {
19+
return "kimi-coding";
20+
}
1821
if (normalized === "bedrock" || normalized === "aws-bedrock") {
1922
return "amazon-bedrock";
2023
}

0 commit comments

Comments
 (0)