← ClaudeAtlas

kimi-cli-runtimelisted

Internal helper contract for calling the polycli companion runtime for Kimi from Claude Code
bbingz/polycli · ★ 0 · Code & Development · score 68
Install: claude install-skill bbingz/polycli
# kimi-cli-runtime Internal contract for code invoking `scripts/polycli-companion.bundle.mjs`. Not user-facing. Claude uses this skill implicitly when dispatched via `/polycli:* --provider kimi` commands or the `polycli:polycli-provider-agent` subagent. > **Migrated to `kimi-code` v0.6.0 (2026-06-02).** This provider wraps the new `kimi-code` CLI, NOT the legacy Python `kimi-cli`. The contract below reflects `kimi-code` v0.6.0; the old `--print` / `--input-format` / `--yolo`-on-prompt / stderr-session-regex / `~/.kimi/` / `--max-steps-per-turn` / `-r` facts no longer apply. ## Runtime requirements - The `kimi` (kimi-code) binary on PATH — `kimi -V` reports e.g. `0.6.0`. The legacy Python `kimi-cli` install is migrated (marker `~/.kimi-code/.migrated-to-kimi-code`). - Auth is **CLI-managed** — the companion never injects `KIMI_API_KEY` or similar; the user runs `kimi login`. Rotating tokens is `kimi logout && kimi login`, no plugin work. - Default model + config live in `~/.kimi-code/config.toml`. - Node.js ≥ 18. Zero npm dependencies — plugin uses only Node built-ins. ## Companion script subcommands | Subcommand | Purpose | JSON shape | |---|---|---| | `setup --json` | Check install + auth + models | `{installed, version, authenticated, authDetail, model, configured_models[], installers}` | | `health --json` | End-to-end ping (uses `POLYCLI_HEALTH_OK` sentinel) | `{provider, healthy, detail, model}` | | `ask [options] "<prompt>"` | One-shot query (120s timeout) | stream