# KeepState MCP server

> Run durable AI agent sessions in microVMs that can be checkpointed, paused, and resumed with all memory and processes intact.

- Repository: https://github.com/Keepstateai/cli
- Page: https://hostedmcp.org/servers/keepstateai/cli
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.1.44

## Install

### Claude Code

```sh
claude mcp add cli -- npx -y @keepstateai/cli
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "cli": {
      "command": "npx",
      "args": [
        "-y",
        "@keepstateai/cli"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "cli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@keepstateai/cli"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "cli": {
      "command": "npx",
      "args": [
        "-y",
        "@keepstateai/cli"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.cli]
command = "npx"
args = ["-y", "@keepstateai/cli"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "cli": {
      "command": "npx",
      "args": [
        "-y",
        "@keepstateai/cli"
      ]
    }
  }
}
```

## FAQ

### How do I start a session?

You can start a durable session on the fleet using the 'ks run' command.

### Can I resume a paused agent?

Yes, you can stop a session with a checkpoint and wake it later to resume mid-sentence with files and memory intact.

### What is a Cruise job?

A Cruise job is a goal-oriented process that uses a ladder of models to attempt a task, verifying results with a check before accepting them.

### How do I check my connection and token status?

Use the 'ks doctor' command to check connectivity, token, and version.
