Check Kimi readiness (free)
kimi_statusVerify the Kimi CLI is installed, authenticated, and supported; fetch live quota to decide when to spend Kimi calls. Run before paid calls or on setup errors.
Instructions
Check that the kimi CLI is installed, authenticated, and a supported
version, and report the resolved defaults. Free — no model call. Run it before
your first paid call in a session to confirm setup, and again whenever a run
fails with a setup error.
Also reports a rate_limit block — how much of the Kimi quota windows remains,
fetched LIVE from kimi app-server (a read-only call with no model spend). primary
is the shorter/rolling window, secondary the longer one; the account reports only the
windows that currently bind it, so either may be null. Use it to decide whether to spend:
available is deliberately conservative (only when every reported window is healthy);
when limited/exhausted, prefer to defer non-urgent Kimi calls (urgent ones may still
proceed); unknown means the live read couldn't complete just now (retry) or only a stale
cache was available; unavailable means this kimi/account exposes no quota data — none
of these means anything is wrong.
blocked is different: the backend reports a SPEND control (spend_control_reached: true),
so paid calls will fail and waiting for a quota reset will NOT clear it — don't defer, and
surface it to the user. spend_control_reached is null when this kimi/backend didn't report
that state (then available covers the quota windows only, and note says so).
is_stale/as_of show freshness; home_unverified flags a snapshot from a different
KIMI_CODE_HOME.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |