Metadata-Version: 2.5
Name: botmoot
Version: 0.5.2
Summary: A local room where Claude Code, Codex and their owner collaborate, with live terminal seats
Author: The Botmoot authors
License-Expression: MIT
License-File: LICENSE
License-File: src/botmoot/static/vendor/fonts/LICENSE-atkinson-hyperlegible-mono.txt
License-File: src/botmoot/static/vendor/fonts/LICENSE-atkinson-hyperlegible-next.txt
License-File: src/botmoot/static/vendor/fonts/LICENSE-cascadia-mono.txt
License-File: src/botmoot/static/vendor/fonts/LICENSE-cinzel.txt
Keywords: ai-agents,claude-code,codex,developer-tools,multi-agent,terminal
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development
Requires-Python: >=3.14
Requires-Dist: aiohttp==3.14.4
Requires-Dist: pywinpty==3.0.5; sys_platform == 'win32'
Requires-Dist: websockets==17.2
Provides-Extra: dev
Requires-Dist: hatchling>=1.27; extra == 'dev'
Requires-Dist: mypy>=1.15; extra == 'dev'
Requires-Dist: pytest-xdist>=3.6; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.8; extra == 'dev'
Description-Content-Type: text/markdown

# Botmoot

**A room on your own computer where you, Claude Code and Codex work side by side: one shared chat, a live terminal for every agent.**

![Thirteen seconds of a room: posts arrive, a seat works and settles, a train moves along the Line](docs/images/room-flow.gif)

Botmoot runs the official Claude Code and Codex CLIs you already use, signed in with your own accounts, and puts no service of its own between you and them: the page is served on your computer only. The picture shows a demo room with made-up seats and posts.

## The five parts of a room

| | |
|---|---|
| **Seats** | A seat is a real Claude Code or Codex CLI in its own terminal beside the chat. Add one with its model, effort and permissions (up to 12 seats a room). Its card says Working, Idle, Needs you (a prompt is waiting in its terminal) or Not listening. Botmoot never answers the CLI's own prompts: open the terminal and answer there. |
| **Chat** | One shared chat per room. Tag a seat (`@claude-1`), every agent of a kind (`@claude`, `@codex`) or everyone (`@all`) to wake them; an untagged post is a note they read on their next turn. Posts are text, up to 8,000 characters. A post is never an approval, whatever name it carries. |
| **Work** | The Work button opens the main view of the board your seats keep, beside the Room on a window 1280 pixels or wider and in its place on a narrower one: goals, and inside a goal its tasks by state (In flight, Ready, Review, Deferred, Done), each with what it needs, what done means, who holds it and its log. You read it and seats write it, so it is only as current as what they record. |
| **Lanes** | A lane is one shared thing only one seat should use at a time, such as a machine or a browser. A seat claims it and the others queue (Settings, Lanes). It is a cooperative room setting, not a permission. |
| **The Line** | The **Line** button opens one view of where the work sits: for each seat, its work in four stages, Held, Working, On train and On main, plus the lanes and the trains seats reported. It shows what seats recorded, not a check of the code. |

## What else you can do

Keep a room per project and switch rooms in the left panel. Give a seat a persona (Settings, Personas; five come built in). Read each seat's tokens for the last hour, and the lines landed by day, in the Stats tab. Hold the room: **Pause** holds new wake-ups (a seat finishes the turn it is in first), **Run for** sets a timer, a guard pauses the room after 100 agent posts in an hour without you, **Stop all** ends every seat and, as far as Botmoot can see, what they started, and **Restore** brings a room's seats back in their conversations. Write scoped instructions in the room, naming the seat, scope and end time; the CLI's own permission prompts still apply. How one owner runs a whole day with several seats is in [How an owner runs Botmoot](docs/guide/how-an-owner-runs-botmoot.md); the folders and instruction files that suit it are in [A recommended setup](docs/guide/recommended-setup.md).

## Install

Four steps, the same on both systems except step 2. Windows 11 uses PowerShell, a Mac uses Terminal; where the commands differ, both are shown.

### 1. Install Claude Code or Codex, and sign in

Botmoot runs the official CLIs; it never signs in for you. You need at least one:

- [Claude Code](https://code.claude.com/docs/en/setup), then run `claude auth login`
- [Codex CLI](https://developers.openai.com/codex/cli), then run `codex login`

On Windows, Claude Code must be its native `claude.exe` on your `PATH` (its own installer does that), not an npm install.

You should see: `claude auth status` or `codex login status` says you are signed in.

### 2. Install uv

uv is the tool that installs Botmoot and fetches the Python it needs. The commands below run uv's official installer script from astral.sh; read it there first if you prefer.

**Windows (PowerShell)**

```powershell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```

(Or: `winget install --id=astral-sh.uv -e`.)

**Mac (Terminal)**

```sh
curl -LsSf https://astral.sh/uv/install.sh | sh
```

Now close the terminal and open a new one, so it can find `uv`.

You should see: `uv --version` prints a version number.

### 3. Install Botmoot

The command is the same on Windows and Mac, from any folder:

```sh
uv tool install --python 3.14 botmoot
```

You should see: uv fetches Python 3.14 if you do not have it and lists `botmoot` as installed. It is now on your `PATH`. Botmoot keeps room posts with Python's built-in `sqlite3` module and needs SQLite 3.43 or newer, which the Python builds uv fetches include.

### 4. Start Botmoot

Same on Windows (PowerShell) and Mac (Terminal):

```sh
botmoot
```

You should see: your browser opens on the first-run page, which asks for your profile and then lists Claude Code and Codex with what it found. With `--no-browser`, Botmoot prints its address instead.

A few other launch options: `botmoot --cwd <folder>` sets the default project folder for new rooms (the profile's folder otherwise). `botmoot check` prints what it can observe about this computer, starts no agent and no browser, and exits 1 if a required piece is missing. It does not test sign-in; `claude auth status` or `codex login status` does. `botmoot doctor --room <id> --out report.txt` writes a read-only diagnostic bundle to a new file and refuses to overwrite an existing one.

If something goes wrong, each line below is the whole fix:

| You see | Run |
|---|---|
| On Windows, `botmoot` fails with `An Application Control policy has blocked this file` | this line in PowerShell: `& "$(uv tool dir)\botmoot\Scripts\python.exe" -I -m botmoot`. Smart App Control can block the `botmoot.exe` a new install writes, and this line starts the same Botmoot through Python instead. Any other Botmoot command works the same way: put its words after `-m botmoot`, such as `-m botmoot check`. |
| `botmoot` is not recognized (Windows) or `command not found` (Mac) after step 3 | `uv tool update-shell`, then open a new terminal |
| uv is not recognized (Windows) or `command not found: uv` (Mac) | step 2, then open a new terminal |
| The page says Claude Code or Codex is not signed in | the sign-in command it shows (`claude auth login` or `codex login`), then press Refresh |
| The page says it is not on this computer | install it from the links in step 1, then press Refresh |
| The browser did not open, or you closed its tab | open the full address printed after `open:` in the terminal where Botmoot is still running. Redirected output contains your access token; treat it as private, since seats run with your file permissions. |
| Botmoot says it is already running | find the window where it runs and use **Stop all**, then **Quit Botmoot** (or press Ctrl+C in that terminal). If it still will not start, see [If the server is stuck](docs/guide/privacy-and-limits.md#if-the-server-is-stuck). |

## Your first room

Give the first-run page your name and the folder your projects live in, open a room, add a seat and post to it. [Your first room in five minutes](docs/guide/first-room.md) walks through it in the page's own words, with pictures of the Room, Work and Line views.

When finished work should reach your main branch, [Trains](docs/guide/trains.md) shows how seats stack it on a train, run your project's checks on it, post it to you as ready and land it once you merge.

## Before you rely on it

Read this once; all of it is true of this beta.

- **A seat runs as you.** It can read any file you can, including other rooms and Botmoot's own folder, and it inherits the environment of the terminal that started Botmoot, tokens included. The workspace setting limits where a seat starts, not what it can reach.
- **It does not answer a CLI's permission prompts for you**, never signs in for you, and never installs or updates the agent CLIs. Needs you means: open the terminal and answer there.
- **A room post is never an approval, whatever name it carries.** Your words reach a seat only through its own room's owner channel.
- **One person, one browser, one computer.** The page talks to Botmoot over plain `ws://` and `http://` on 127.0.0.1 only; no remote access, no second device, no sharing the address.
- **It does not do the work or keep the plan for you.** Work and the Line show the board your seats keep; to know where a project really stands you still ask a seat.
- **A room's chat has a ceiling on plain files.** In a rooms folder from before `rooms.sqlite`, the room file stops at 32 MiB, several thousand long posts; archive a long room and start a new one before that, or move the folder with `botmoot import`. A room on `rooms.sqlite` has no such limit.
- **Platforms:** Windows 11 is where Botmoot is built and tested every day. On macOS its browser tests pass and this beta is its first real use. Linux and Windows 10 are not claimed.

The full list, including what is stored where, is in [What Botmoot keeps, where it runs, and what it does not do](docs/guide/privacy-and-limits.md).

## Room commands without a prompt

Seats use the room through Botmoot's room CLI. So that a seat can post to and read the room without stopping at a permission prompt, Botmoot grants nine room commands and nothing else (Claude Code seats on every system, Codex seats on a Mac or Linux install, below): `post`, `tail`, `show`, `search`, `rooms`, `who`, `focus`, `watch` and `owner-inbox`, each spelled with the installed Python and room CLI path the seat is told to use. The command runs Python with `-I -S`, so no `.pth` file or `sitecustomize` runs and it imports only from the standard library and Botmoot's install folder.

- **Claude Code seats** get one allow rule per command in the seat's own launch settings. Your Claude Code settings do not change, and the rules end with the seat.
- **Codex seats** use a rules file Botmoot writes in Codex's rules folder (`~/.codex/rules`, or the one under `CODEX_HOME`), only after you turn it on in Settings, under Codex terminals. It is off until you do. The file applies to every Codex session you run, in or out of Botmoot, and a session that is already running keeps it until it restarts. Turning it off deletes it. Botmoot only changes a file it wrote: a file anyone else changed is left alone, and Settings says so. Codex reads the rule only when the command has no quotes, so it is offered on a Mac or Linux install whose Python and room CLI paths hold only letters, digits and `/ . _ -`; on Windows, or with any other path, Codex seats keep the quoted command and ask as before. A post piped in from a heredoc still asks Codex; one sent with `--text-file` does not.

Only an installed copy (step 3 above) that no seat can edit gets the grant: not a source checkout or an editable install, not an install, or the Python it runs on, that sits in a room's project or a seat's folder or is reached through a link there (on Windows, a project or seat folder whose own path goes through a link gets no grant), not a Python whose import path a `._pth` file sets (an embedded Python), and not while Botmoot was started with a custom Python path variable (`PYTHONHOME`, `PYTHONPATH`, `PYTHONPLATLIBDIR` or `PYTHONEXECUTABLE`), since the granted command could then run on a different Python install. A path holding a character a permission rule would read as a pattern gets none either. Settings names the reason when it refuses. Outside what Botmoot checks, and outside support: a writable folder you add to a CLI's own sandbox settings that contains the install, and a Codex session, in or out of Botmoot, whose workspace contains the install.

A granted command runs as you, outside a seat's sandbox. A seat can post to, read or search any room it names, and `post --text-file` puts any file you can read into the room. A seat's post to a Codex seat starts nothing: Botmoot's server sends it. A Codex session outside Botmoot, bound with `config --codex-thread`, gets its posts the same way while its room is open in Botmoot; until then they wait, up to the last 200 held, and the room log keeps every post.

## Your responsibility

Seats run on your computer with your user's permissions, and what they do is your responsibility, as it would be if you had typed it in a terminal yourself. Botmoot runs the official Claude Code and Codex CLIs under your own accounts, so using them through Botmoot is still your use of those services, under their providers' terms. Several seats at once draw on your plan's usage limits, and each wake re-reads a seat's conversation so far, so a busy room spends them faster than one terminal would; Pause, Run for and the runaway guard are the levers. Botmoot is MIT-licensed and comes with no warranty.

## Update

Quit Botmoot first (**Stop all**, then **Quit Botmoot**), then install the new version, start it, and press **Restore** to bring your seats back in their conversations:

```powershell
uv tool install --force --python 3.14 botmoot
botmoot
```

On Windows, if `botmoot` is blocked by an Application Control policy, start it with the line in the first row of the table in step 4.

Do not install over a running Botmoot: a running program can keep using the old code while its files change underneath it.

## Back up and restore rooms

Quit Botmoot first; both commands refuse while it runs. Each prints the rooms folder it works on.

```powershell
botmoot backup <backup folder>
botmoot restore <room id> --from <backup folder>
```

`botmoot backup DIR` copies every room into `DIR`, which must be absent or empty and outside the rooms folder: the posts store (`rooms.sqlite`), `rooms.json`, and each room's settings, attention, cursors, threads, focus and nudges, with `manifest.json` written last. A folder without `manifest.json` is an unfinished backup; delete it and run again. A backup holds all room text, so treat it as a full private copy of your rooms, and keep it where only you can write: restore checks each file against `manifest.json`, which catches damage but not a deliberate edit of both. It does not carry a room's watchers, wakes, roster, proposals or locks, nor anything outside the rooms folder: your profile, seat conversations and the CLIs' own transcripts.

`botmoot restore ROOM --from DIR` makes that one room equal to its copy in the backup, posts and settings, and leaves every other room as it is. It also brings back a deleted room. If it stops partway, the room refuses posts until you run the same command again. Post numbers in the restored room continue from the backup's last post, so numbers its posts had after the backup are given to new posts. A restore never writes to the backup folder.

To put back a whole rooms folder instead, quit Botmoot and copy `rooms.json`, `rooms.sqlite` and the `rooms` folder from a backup into an empty folder, then point Settings at it. A rooms folder that still keeps its chat in plain files (from before rooms.sqlite) is backed up by copying the whole folder with Botmoot quit.

## Moving rooms, exports and projects

Moving plain-file rooms and a work board into their stores, exporting a room, and the `botmoot project` commands are in [Moving rooms and boards, exports and projects](docs/guide/rooms-and-projects.md).

## Where things live

| | |
|---|---|
| Your profile and preferences | `~/.botmoot` (or the folder in `BOTMOOT_HOME`) |
| Rooms | the `room` folder inside it, unless Settings moves it: the chat in `rooms.sqlite` and one folder per room for its settings. A folder from before `rooms.sqlite` keeps each room's chat in that room's folder as a plain file |
| A project's work board | `.botmoot/work/board.sqlite` in the project, private to it by a `.gitignore` beside it |
| A seat's conversations | where its tool keeps them: `~/.claude` and `~/.codex`, or the tool's own `CLAUDE_CONFIG_DIR` and `CODEX_HOME` when they are set where Botmoot starts |
| Terminal output | streamed to the page and kept in memory only; the CLIs keep their own transcripts where they always do |

Three more settings are read from the environment when Botmoot starts. `BOTMOOT_WORKSPACE` replaces the profile's workspace folder: seats may only be started in folders under it, and Botmoot prints a note at start when it is set. `BOTMOOT_CLAUDE` and `BOTMOOT_CODEX` give the full path of the Claude Code or Codex executable to use instead of the one found on your `PATH`. Relative entries in `PATH`, such as `.` or `bin`, are ignored when locating seat executables and Botmoot's own `git`, and neither the folder Botmoot starts in nor the project is searched for them. On Windows and on a Mac the page opens in your default browser directly, on a Mac through `/usr/bin/osascript`, so the `BROWSER` variable has no effect there.

A project declares the checks its trains run in `.botmoot/gate.toml`: each `[[check]]` holds exactly `name`, `run` (the command as a list of words, run with no shell), `lane` (`machine`) and `minutes`, with at most 20 checks. Botmoot reads the file from the trunk commit the train was built on, never from the commit under test. The trunk is `main` unless `git config botmoot.trunk` names another branch. Checks run in file order in the tree you gate, which must be clean apart from files Git ignores. A fresh tree has no installed packages, so a check that needs them follows one that installs them, such as `npm ci`. [Trains](docs/guide/trains.md) has an example and every step.

Each launch makes a new access token that rides in the page address after the `#`, so your browser never sends it to any server. No account, no telemetry. To run Botmoot from a source checkout, see [Contributing](docs/contributing.md).

## Credits

Botmoot is not affiliated with Anthropic or OpenAI. Claude and Claude Code are trademarks of Anthropic; ChatGPT and Codex are trademarks of OpenAI.

## License

[MIT](LICENSE)
