Jalankan sesi AI agent yang durable di dalam microVM yang dapat di-checkpoint, di-pause, dan di-resume dengan seluruh memori serta proses yang tetap utuh.
Juga dikenal sebagai Keepstateai/cli, cli, @keepstateai/cli
- Stars
- 1
- Tools
- —
- Unduhan, 30 hari
- —
- Versi terbaru
- 0.1.44
- Commit terakhir
- 14 Nov 2026
- Lisensi
- MIT
Apa itu KeepState MCP?
KeepState adalah MCP server. Jalankan sesi AI agent yang durable di dalam microVM yang dapat di-checkpoint, di-pause, dan di-resume dengan seluruh memori serta proses yang tetap utuh.
Ringkasan dibuat dari README proyek
Tentang KeepState MCP server
KeepState menyediakan cara untuk menjalankan sesi AI agent yang durable di dalam microVM. Sistem ini memungkinkan developer untuk melakukan checkpoint, pause, dan resume pada sesi agent sehingga memori, file, dan proses yang sedang berjalan tetap utuh. Pengguna berinteraksi dengan layanan ini melalui ks CLI, yang terhubung ke remote control plane. Setelah melakukan login berbasis browser, developer dapat menggunakan perintah seperti run, checkpoint, dan wake untuk mengelola sesi mereka pada fleet.
Platform ini juga memiliki sistem Cruise job yang dirancang untuk tugas-tugas berorientasi tujuan. Sebuah Cruise job menggunakan ladder of models untuk mencoba mencapai sebuah tujuan, serta memverifikasi setiap percobaan dengan check seperti pytest, npm test, atau go test. Sistem memastikan bahwa kandidat hanya akan diterima ketika verifier mengonfirmasi hasilnya. Pengguna dapat mengelola job ini dengan perintah untuk mengecek status, melihat log, atau mengambil tarball artifact yang telah terverifikasi. CLI ini menyertakan batasan keamanan, seperti limit workspace default sebesar 50 MiB dan batas pengeluaran $2 per percobaan.
Apa yang bisa Anda lakukan dengannya
- 1Resume sesi agent yang terinterupsiSeorang developer dapat menghentikan agent yang sedang berjalan dan menyalakannya kembali nanti dengan seluruh memori dan proses yang tetap terjaga.
- 2Otomatisasi pengujian model berorientasi tujuanAnda dapat memulai Cruise job agar ladder of models mencoba mencapai tujuan spesifik, seperti melewati inventory tests.
- 3Mengambil artifact workspace yang terverifikasiSetelah sebuah job berhasil diselesaikan dan diverifikasi, Anda dapat mengunduh tarball hasil akhirnya.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal KeepState MCP
Format diverifikasi 10 Nov 2026Instal KeepState MCP di Claude Code
$ claude mcp add cli -- npx -y @keepstateai/cliInstal KeepState MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"cli": {
"command": "npx",
"args": [
"-y",
"@keepstateai/cli"
]
}
}
}Instal KeepState MCP di VS Code
.vscode/mcp.json
{
"servers": {
"cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@keepstateai/cli"
]
}
}
}Instal KeepState MCP di Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"cli": {
"command": "npx",
"args": [
"-y",
"@keepstateai/cli"
]
}
}
}Instal KeepState MCP di Codex
~/.codex/config.toml
[mcp_servers.cli] command = "npx" args = ["-y", "@keepstateai/cli"]
Instal KeepState MCP di Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"cli": {
"command": "npx",
"args": [
"-y",
"@keepstateai/cli"
]
}
}
}Pengecekan otomatis
Berjalan 14 Nov 2026Laporan lengkap →Lolos checks otomatis kami. Ini bukan audit keamanan: baca kodenya dan berikan server akses paling terbatas yang dibutuhkannya. Cara kerja checks
- Source repository terhubung dan dapat dijangkaukeepstateai/cli is public and reachablegithub.com/keepstateai/cli ↗Lolos
- Paket menyebut repo ini sebagai sumbernya@keepstateai/cli names keepstateai/cli as sourcenpmjs.com/package/@keepstateai/cli ↗Lolos
- Provenance build (atestasi Sigstore)Sigstore attestation for @keepstateai/clinpmjs.com/package/@keepstateai/cli/v/0.1.44#provenance ↗Lolos
- Lisensi open source (OSI)MITspdx.org/licenses/MIT.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit or release 2026-11-14github.com/keepstateai/cli ↗Lolos
- OpenSSF ScorecardTidak diperiksa
- Nama package tidak mirip dengan package populerNo popular package one edit away from @keepstateai/cliLolos
- Tidak ada advisory kritis di paket maupun dependensinyathe package checked; no critical advisoryosv.dev ↗Lolos
- Tidak ada instruksi tersembunyi untuk model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersLolos
- Tools yang bersifat destruktif telah diberi labelTidak diperiksa
- Endpoint remote menjawab handshake MCPTidak diperiksa
README
Lihat di GitHubks — the KeepState CLI
Durable agent sessions: run an AI agent in a microVM, checkpoint it, kill it, wake it — and it resumes mid-sentence, files, memory, and running processes intact.
This is the thin client. Every verb terminates at the KeepState control plane; the client is a key, the building is keepstate.ai.
Install (any one of three)
curl -fsSL https://keepstate.ai/install.sh | sh
brew install keepstateai/tap/ks
npm install -g @keepstateai/cli
Every path downloads the same public-CI-built binary and verifies its
SHA256 against the release's SHA256SUMS before installing. Releases
carry GitHub build-provenance attestations.
Three commands to a session
ks login # browser device flow
ks run # a durable session on the fleet
ks checkpoint <id> --stop && ks wake <id> # the plug-pull, survived
ks doctor checks connectivity, token, and version. ks update
self-updates (checksum-verified; a mismatch is refused).
Cruise
A Cruise job is a goal, a check and a ladder of models. The fleet runs one attempt per rung from an exact save point, verifies the candidate in a verifier the agent cannot reach, and accepts only when the check passes. A failed rung escalates to the next one; after the last rung the job waits in your review queue. Nothing is accepted on a model's word.
ks cruise init --goal "make the inventory tests pass" # drafts .keepstate/cruise.json
ks cruise approve # locks it: .keepstate/cruise.lock
ks cruise run # uploads the workspace, starts the job
ks cruise status # rung, attempts, save points, spend, verdict
ks cruise artifact <job> # the accepted tarball, sha256-verified
ks cruise receipt <job> # the signed receipt, exactly as sealed
ks cruise verify receipt.json # the receipt's signature, checked offline
init reads the repository: the check is the test command it finds
(pytest, npm test, go test) or the one you name with --tests. A
goal with no check is not a job; init stops and says so. It makes no
request and never calls a model. approve records the manifest's digest;
run refuses a draft that is not approved, a test or workspace changed
since approve, and a workspace over 50 MiB (.git and .keepstate
excluded). Defaults: 1800 s per attempt and a $2 spend ceiling
(--spend); the ladder comes from the model table (ks cruise models,
--ladder family:model,...). ks cruise logs, cancel and resume
complete the set. Every --help makes no request.
ks cruise verify RECEIPT checks a receipt's Ed25519 signature against the
public key list KeepState publishes (--keys-url, or a saved copy with
--keys-file, which makes no request at all), with no sign-in and no service
key; the receipt is never sent anywhere. Exit 0: verified under a key that was
valid at the receipt's time. Exit 1: not verified (altered, another key, key
unknown, outside its window or revoked; --trust-before-revocation accepts a
receipt made before its key was revoked). Exit 3: the receipt has no Ed25519
signature, so only the service can check it. Exit 2: unreadable inputs.
Uninstall (one line)
rm -f $(command -v ks) && rm -rf ~/.config/keepstate
MIT licensed.
Pertanyaan tentang KeepState MCP
Bagaimana cara menambahkan KeepState MCP ke Claude Code?
Jalankan claude mcp add cli -- npx -y @keepstateai/cli di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan KeepState MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
Bagaimana cara memulai sesi?
Anda dapat memulai sesi yang durable pada fleet menggunakan perintah 'ks run'.
Apakah saya bisa me-resume agent yang sedang di-pause?
Ya, Anda dapat menghentikan sesi dengan sebuah checkpoint dan membangunkannya kembali nanti untuk melanjutkan sesi tepat di tengah proses dengan file dan memori yang tetap utuh.
Apa itu Cruise job?
Cruise job adalah proses berorientasi tujuan yang menggunakan ladder of models untuk mencoba sebuah tugas, lalu memverifikasi hasilnya dengan sebuah check sebelum menerimanya.
Bagaimana cara mengecek koneksi dan status token saya?
Gunakan perintah 'ks doctor' untuk mengecek konektivitas, token, dan versi.