メモリやプロセスを保持したまま、チェックポイントの作成、一時停止、再開が可能なmicroVM上で、永続的なAI agentセッションを実行します。
別名 Keepstateai/cli, cli, @keepstateai/cli
- スター
- 1
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- 0.1.44
- 最終コミット
- 2026年11月14日
- ライセンス
- MIT
KeepState MCPとは
KeepStateはMCPサーバーです。 メモリやプロセスを保持したまま、チェックポイントの作成、一時停止、再開が可能なmicroVM上で、永続的なAI agentセッションを実行します。.
プロジェクトのREADMEから生成された概要
KeepState MCP server について
KeepStateは、microVM内で永続的なAI agentセッションを実行する方法を提供します。このシステムにより、開発者はagentセッションのチェックポイント作成、一時停止、再開が可能になり、メモリ、ファイル、実行中のプロセスを保持したまま運用できます。ユーザーはks CLIを通じてサービスを操作し、リモートのコントロールプレーンに接続します。ブラウザベースのログインを行った後、run、checkpoint、wakeなどのコマンドを使用して、フリート上のセッションを管理できます。
また、本プラットフォームは目標指向型のタスク向けに設計されたCruise jobシステムを備えています。Cruise jobは、モデルの階層を使用して目標達成を試み、pytest、npm test、go testなどのチェックを用いて各試行を検証します。検証器が結果を確認した場合にのみ、その候補が受理される仕組みになっています。ユーザーは、ステータス確認、ログの閲覧、検証済みアーティファクト(tarball)の取得などのコマンドを使用して、これらのジョブを管理できます。CLIには、デフォルトで50 MiBのワークスペース制限や、1試行あたり$2の支出上限などの安全制限が組み込まれています。
できること
- 1中断したagentセッションの再開実行中のagentを停止し、メモリやプロセスをすべて保持した状態で後から再起動できます。
- 2目標指向型のモデルテストの自動化Cruise jobを開始することで、モデルの階層に在庫テストのパスといった特定の目標達成を試行させることができます。
- 3検証済みワークスペースアーティファクトの取得ジョブが正常に完了し、検証が完了した後に、生成されたtarballをダウンロードできます。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
KeepState MCPのインストール方法
フォーマット検証日 2026年11月10日Claude CodeにKeepState MCPをインストール
$ claude mcp add cli -- npx -y @keepstateai/cliCursorにKeepState MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"cli": {
"command": "npx",
"args": [
"-y",
"@keepstateai/cli"
]
}
}
}VS CodeにKeepState MCPをインストール
.vscode/mcp.json
{
"servers": {
"cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@keepstateai/cli"
]
}
}
}Claude DesktopにKeepState MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"cli": {
"command": "npx",
"args": [
"-y",
"@keepstateai/cli"
]
}
}
}CodexにKeepState MCPをインストール
~/.codex/config.toml
[mcp_servers.cli] command = "npx" args = ["-y", "@keepstateai/cli"]
Gemini CLIにKeepState MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"cli": {
"command": "npx",
"args": [
"-y",
"@keepstateai/cli"
]
}
}
}自動チェック
実行日 2026年11月14日詳細レポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能keepstateai/cli is public and reachablegithub.com/keepstateai/cli ↗合格
- パッケージがこのリポジトリをソースとして示している@keepstateai/cli names keepstateai/cli as sourcenpmjs.com/package/@keepstateai/cli ↗合格
- ビルドの来歴(Sigstore 証明)Sigstore attestation for @keepstateai/clinpmjs.com/package/@keepstateai/cli/v/0.1.44#provenance ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-11-14github.com/keepstateai/cli ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from @keepstateai/cli合格
- パッケージと依存関係に重大なアドバイザリがないthe package checked; no critical advisoryosv.dev ↗合格
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモート endpoint が MCP ハンドシェイクに応答する未チェック
README
GitHubで見るks — 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.
KeepState MCPのよくある質問
KeepState MCPをClaude Codeに追加するには
ターミナルでclaude mcp add cli -- npx -y @keepstateai/cliを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
KeepState MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
セッションの開始方法は?
'ks run'コマンドを使用して、フリート上で永続的なセッションを開始できます。
一時停止したagentを再開できますか?
はい、チェックポイントとともにセッションを停止し、後で再開することで、ファイルやメモリの状態を維持したまま、中断した箇所から実行を継続できます。
Cruise jobとは何ですか?
Cruise jobは、モデルの階層(ladder of models)を使用してタスクの実行を試み、結果を検証してから確定させる、目標指向型のプロセスです。
接続状況とトークンの状態を確認するには?
'ks doctor'コマンドを使用して、接続性、トークン、およびバージョンを確認できます。