Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cli-provider-subcommand.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": minor
---

Add `kimi provider` CLI subcommand with `add`, `remove`, `list`, and `catalog list` / `catalog add` actions, so providers from a custom registry (api.json) or the public models.dev catalog can be imported and managed without launching the TUI.
2 changes: 2 additions & 0 deletions apps/kimi-code/src/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { registerMigrateCommand } from '#/migration/index';

import type { CLIOptions } from './options';
import { registerExportCommand } from './sub/export';
import { registerProviderCommand } from './sub/provider';

export type MainCommandHandler = (opts: CLIOptions) => void;
export type MigrateCommandHandler = () => void;
Expand Down Expand Up @@ -74,6 +75,7 @@ export function createProgram(
.option('--plan', 'Start in plan mode.', false);

registerExportCommand(program);
registerProviderCommand(program);
registerMigrateCommand(program, onMigrate);

program
Expand Down
Loading
Loading