# Codeman MCP server

> Start, prompt, and read AI coding agent sessions across Claude Code, Codex, Gemini CLI, and other CLIs from one dashboard.

- Repository: https://github.com/Ark0N/Codeman
- Page: https://hostedmcp.org/servers/ark0n/codeman
- Transport: stdio
- Stars: 839
- License: MIT
- Latest version: 1.51.0

## Install

### Claude Code

```sh
claude mcp add --env CODEMAN_API_URL=<CODEMAN_API_URL> --env CODEMAN_PASSWORD=<YOUR_CODEMAN_PASSWORD> codeman -- npx -y aicodeman
```

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

```json
{
  "mcpServers": {
    "codeman": {
      "command": "npx",
      "args": [
        "-y",
        "aicodeman"
      ],
      "env": {
        "CODEMAN_API_URL": "<CODEMAN_API_URL>",
        "CODEMAN_PASSWORD": "<YOUR_CODEMAN_PASSWORD>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "codeman": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "aicodeman"
      ],
      "env": {
        "CODEMAN_API_URL": "<CODEMAN_API_URL>",
        "CODEMAN_PASSWORD": "<YOUR_CODEMAN_PASSWORD>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "codeman": {
      "command": "npx",
      "args": [
        "-y",
        "aicodeman"
      ],
      "env": {
        "CODEMAN_API_URL": "<CODEMAN_API_URL>",
        "CODEMAN_PASSWORD": "<YOUR_CODEMAN_PASSWORD>"
      }
    }
  }
}
```

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

```toml
[mcp_servers.codeman]
command = "npx"
args = ["-y", "aicodeman"]

[mcp_servers.codeman.env]
CODEMAN_API_URL = "<CODEMAN_API_URL>"
CODEMAN_PASSWORD = "<YOUR_CODEMAN_PASSWORD>"
```

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

```json
{
  "mcpServers": {
    "codeman": {
      "command": "npx",
      "args": [
        "-y",
        "aicodeman"
      ],
      "env": {
        "CODEMAN_API_URL": "<CODEMAN_API_URL>",
        "CODEMAN_PASSWORD": "<YOUR_CODEMAN_PASSWORD>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CODEMAN_API_URL` | yes | no | Where your Codeman server runs, for example https://127.0.0.1:3000. Never guessed. |
| `CODEMAN_PASSWORD` | no | yes | Codeman's HTTP Basic password, when the server has one. |

## Tools (7)

- `list_sessions`
- `start_session`
- `send_prompt`
- `wait_for_session`
- `read_output`
- `interrupt_session`
- `delete_session`

## FAQ

### Which AI coding CLIs can Codeman run?

Codeman runs Claude Code, OpenCode, Codex, Antigravity, Gemini, Pi, Grok, DeepSeek Harness, OMP, or GitHub Copilot CLI per session, plus a plain shell.

### Is Codeman self-hosted and private?

Yes. It binds to loopback by default, sends no telemetry, and runs entirely on your own machine under the MIT license.

### Can Codeman keep agents working when I am away?

Yes. It detects idle sessions and re-prompts, cycles respawns, and auto-resumes when a subscription usage limit resets, supporting 24+ hour unattended runs.

### Does Codeman have an MCP server?

Yes, the Codeman MCP server lets any MCP client start workers in any CLI, prompt them, wait for results, and collect their answers.
