MoonshotAI / MoonshotAI/kimi-cli
[Feature Request] Remote Control / Multi-Device Session Handoff
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 11.4k
- Forks
- 1.3k
- Avg merge
- 9h 47m
- Merged PRs (30d)
- 2
Description
Summary
Add the ability to start a Kimi CLI session on one device and seamlessly continue or remotely control it from another device (laptop, web, or mobile). This would be a major workflow improvement for users who work across multiple environments.
Motivation
Currently, Kimi sessions are tied to the local terminal process. If I close the terminal or switch machines, the session context is lost unless I manually export/import it, which breaks the conversational flow.
Common pain points:
- Stepping away while the agent is working — can't approve critical tool calls or steer direction from another machine.
- Switching devices mid-session — e.g., start a task on desktop, continue on laptop elsewhere.
- Monitoring background work without keeping a terminal window pinned to one machine.
Proposed Feature
Two possible implementation levels:
Level 1: Session Persistence + Remote Attach (MVP)
- Sessions optionally run as a background daemon/service on the host machine.
- Users can "detach" from a session (close terminal) without killing it.
- Users can "attach" to an existing session from another terminal via authentication.
- Authentication via existing Kimi account OAuth or local token.
Level 2: Multi-Device Push Notifications
- When a running remote session needs user input (approval, plan mode decision, etc.), send a push notification to connected devices.
- Allow approving/rejecting tool calls from a lightweight mobile or web interface without needing a full CLI.
- Session state syncs in real-time across all connected clients.
Use Cases
| Scenario | Current Pain | With Remote Control |
|---|---|---|
| Long-running data pipeline | Must keep terminal open | Detach, check later from anywhere |
| Plan mode on large refactor | Need to be present for every approval | Get notified on phone, approve on the go |
| Cross-device work day | Export/import context manually | Seamless handoff between devices |
| CI/CD agent integration | No way to monitor/intervene remotely | Attach to running CI session when needed |
Technical Considerations
- Security: All remote communication should be end-to-end encrypted. Session tokens should be short-lived and revocable.
- State Sync: The existing context compaction and session export mechanisms could be leveraged for lightweight state serialization.
- CLI vs. Web: Even a minimal web dashboard for approvals (without full CLI replication) would unlock 80% of the value.
- Privacy: Users should be able to disable remote control entirely via config (
kimi config set remote_control false).
Prior Art
Claude Code implements this as "remote control" — sessions are bridge-backed, allowing multi-device attach and mobile push notifications. The UX sets a strong baseline for what developers expect from an agent CLI in 2026.
Conclusion
Remote control would transform Kimi CLI from a "terminal-only" tool into a truly ambient AI partner that persists across a developer's entire toolchain. Given Kimi's strengths in subagents, MCP, and long context, adding multi-device session management would close a major UX gap vs. competitors.
Happy to elaborate on specific workflows or beta-test early implementations.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests, so start by locating the existing context-compaction and session-export mechanisms and the CLI configuration handling for the proposed remote_control setting. Narrow the request to a concrete MVP before implementation; done should include agreed session, authentication, attach/detach, and acceptance boundaries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication, backend, cli, distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100