# KeepState

> KeepState is a paid MCP server for developer tools. Start, watch, message and pause durable KeepState agent sessions from an MCP client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** CLI, API
- **Website:** https://keepstate.ai/docs/herdr-and-mcp
- **Repository:** https://github.com/keepstateai/cli
- **MCP Registry name:** ai.keepstate/ks
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

The `ks mcp` command, part of the KeepState command-line client, hands a KeepState account to an MCP client as tools. The registry entry describes it as covering durable agent sessions: starting, watching, messaging and pausing agents, with approvals that ask a person rather than deciding on their own.

The docs page is mostly about how that fits into a terminal workflow. Agent status is written to the terminal as OSC 7501 in four states (working, blocked, done, error), a herdr plugin adds an agents pane and a receipts pane, and an agent can start and talk to child agents with the same commands a person uses.

It runs from the installed `ks` binary over stdio and uses that client's sign-in, so a KeepState account is required.

## Features

- **Durable agent sessions:** Start, watch, message and pause KeepState agents from an MCP client.
- **Approvals ask a person:** Permission requests and questions surface as a blocked state instead of being answered automatically.
- **Terminal status:** Agent status is written as OSC 7501 with four states: working, blocked, done and error.
- **herdr plugin:** Adds an agents pane and a receipts pane for Cruise jobs inside herdr.
- **Child agents:** An agent can hand work to child agents using the same ks commands a person would.
- **Cruise receipts:** Finished Cruise jobs show a receipt with commands such as ks cruise apply and ks cruise result.

## Good for

- Run long agent sessions that can be paused and resumed
- Watch several agents' status from a terminal or multiplexer
- Let an MCP client message a running agent
- Review Cruise job receipts and apply the resulting change
- Delegate sub-tasks from one agent to child agents

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## FAQ

### How does it connect to an MCP client?

It runs as `ks mcp` from the KeepState client over stdio; the npm package is @keepstateai/cli.

### Do I need an account?

Yes. The ks client must be signed in to your KeepState account.

### How is KeepState billed?

Active session time is $0.011 per minute and checkpoint storage is $0.09 per GB-month. Model calls use your own provider key at no KeepState fee, or KeepState's key at the provider's list price plus 4%.

### Which terminals show agent status?

Any terminal or multiplexer that reads OSC 7501, such as hc. herdr gets the same status through its own reporting command.

### Is KeepState free?

No. KeepState is a paid product.

### How do I add KeepState to Claude Code?

Run this command in your terminal: claude mcp add ks -- npx -y @keepstateai/cli

### What are the best alternatives to KeepState?

The closest alternatives to KeepState are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/keepstate
