Kimi

May 31, 2026View on GitHub

Drive Kimi (kimi.com) from the terminal through your existing browser session.

Mode: 馃攼 Browser 路 Domain: kimi.com

Commands

CommandDescriptionAccess
opencli kimi statusCheck page connection, login state, and current URLread
opencli kimi accountRead sidebar account labelsread
opencli kimi historyList visible sidebar conversationsread
opencli kimi detail <id>Open a chat by ID or trusted /chat/<id> URL and read messagesread
opencli kimi readRead messages in the current or selected chatread
opencli kimi send <prompt>Send a prompt without waiting for the assistant replywrite
opencli kimi ask <prompt>Send a prompt and wait for the assistant replywrite
opencli kimi newStart a new chatwrite
opencli kimi modelRead, list, or switch the active modelwrite
opencli kimi mode [name]List or navigate to a Kimi work modewrite
opencli kimi copy-messageCopy or return the last assistant messagewrite
opencli kimi reactLike or dislike the last assistant messagewrite
opencli kimi regenerateRegenerate the last assistant messagewrite
opencli kimi shareOpen the share dialog for the last assistant messagewrite
opencli kimi history-rename --yesRename a chat from the history pagewrite
opencli kimi sidebar-toggleToggle the sidebarwrite
opencli kimi view-all-historyNavigate to the full history pagewrite
opencli kimi settingsOpen settingswrite
opencli kimi sign-out --yesSign out from settingswrite
opencli kimi upgradeOpen the membership/upgrade entry pointwrite
opencli kimi dismiss-bannerClose a visible sidebar bannerwrite
opencli kimi templatesList template cards on a mode pageread
opencli kimi storage-keysList localStorage or sessionStorage keysread
opencli kimi storage-get <key>Read one storage valueread
opencli kimi cookiesList JavaScript-visible cookiesread
opencli kimi idb-listList IndexedDB databasesread

Usage Examples

# Check the current Kimi tab
opencli kimi status

# Start a new chat and ask a question
opencli kimi new
opencli kimi ask "Summarize this plan in three bullets"

# Continue the current chat without waiting for a reply
opencli kimi send "Now expand the second bullet"

# List and read conversations
opencli kimi history --limit 10
opencli kimi detail https://kimi.com/chat/<chat-id>
opencli kimi read --conv /chat/<chat-id>

# Inspect or switch model
opencli kimi model
opencli kimi model --list true
opencli kimi model --set "K2"

# Rename a chat only after explicit confirmation
opencli kimi history-rename <chat-id> "New title" --yes true

Options

OptionDescription
promptPrompt to send for ask / send
--convChat id, exact /chat/<id> path, or trusted https://kimi.com/chat/<id> URL for commands that target a chat
--timeoutMax seconds for ask to wait for a reply
--limitMax rows for history, read, detail, or storage listings
--setModel name to switch to; exact match is preferred, otherwise only a unique partial match is allowed
--listOpen the model menu and list model options
--yesRequired for destructive or account-changing commands such as history-rename and sign-out

Behavior

  • Kimi commands use a persistent browser site session and operate on the live kimi.com UI.
  • Chat ids accept bare ids, exact relative /chat/<id> paths, or https://kimi.com/chat/<id> / https://www.kimi.com/chat/<id> URLs only.
  • send / ask verify that a new user turn containing the prompt appears after clicking Send.
  • ask waits for an assistant turn to appear and stabilize; timeout is reported as a typed timeout instead of a successful row.
  • Model switching rejects ambiguous partial matches before clicking and verifies the selected model by reading the UI back.
  • copy-message --click-button writes to the local clipboard, so the command is marked as write access.

Prerequisites

Caveats

  • This adapter targets the Kimi web UI and can break when Kimi changes DOM structure, labels, or SVG names.
  • Sidebar/history commands only see conversations that the current UI has rendered.
  • Cookie output is limited to cookies visible to JavaScript; httpOnly cookies are intentionally not exposed.