Metadata-Version: 2.4
Name: captain-claw
Version: 0.9.0
Summary: Self-hosted framework for orchestrating fleets of specialist AI agents — ensemble reasoning and a full agentic coding pipeline, model-agnostic and local-friendly
Author-email: Stevica Kuharski <kstevica@gmail.com>
License-Expression: MIT
Keywords: ai,agent,cli,terminal,llm
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENCE
Requires-Dist: litellm[mcp]>=1.40.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: pydantic-settings>=2.0.0
Requires-Dist: aiosqlite>=0.19.0
Requires-Dist: tiktoken>=0.5.0
Requires-Dist: httpx>=0.25.0
Requires-Dist: jsonschema>=4.0
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: pypdf>=4.0.0
Requires-Dist: aiofiles>=23.0.0
Requires-Dist: structlog>=23.0.0
Requires-Dist: pyyaml>=6.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: blessed>=1.20.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: tenacity>=8.0.0
Requires-Dist: aiohttp>=3.9.0
Requires-Dist: playwright>=1.40.0
Requires-Dist: weasyprint>=60.0
Requires-Dist: python-docx>=1.0.0
Requires-Dist: python-pptx>=1.0.0
Requires-Dist: openpyxl>=3.1.0
Requires-Dist: Pillow>=10.0.0
Requires-Dist: numpy>=1.24.0
Requires-Dist: scikit-learn>=1.3.0
Requires-Dist: model2vec>=0.3.0
Requires-Dist: fastapi>=0.115
Requires-Dist: uvicorn>=0.34
Requires-Dist: docker>=7.0
Requires-Dist: websockets>=13.0
Requires-Dist: PyJWT>=2.8.0
Requires-Dist: bcrypt>=4.0.0
Requires-Dist: cryptography>=42.0
Requires-Dist: python-multipart>=0.0.7
Requires-Dist: pypdfium2>=4; sys_platform != "darwin"
Requires-Dist: pypdfium2<5.1,>=4; sys_platform == "darwin"
Requires-Dist: rapidocr>=3.4; platform_machine != "armv7l" and platform_machine != "armv6l" and (sys_platform != "win32" or platform_machine != "ARM64")
Requires-Dist: onnxruntime>=1.17; sys_platform != "darwin" and platform_machine != "armv7l" and platform_machine != "armv6l" and (sys_platform != "win32" or platform_machine != "ARM64")
Requires-Dist: onnxruntime<1.20,>=1.17; sys_platform == "darwin"
Requires-Dist: opencv-python-headless<4.11,>=4.5; sys_platform == "darwin"
Provides-Extra: tts
Requires-Dist: pocket-tts>=1.0.3; extra == "tts"
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"
Provides-Extra: vector
Requires-Dist: numpy>=1.24.0; extra == "vector"
Requires-Dist: scikit-learn>=1.3.0; extra == "vector"
Provides-Extra: vision
Requires-Dist: Pillow>=10.0.0; extra == "vision"
Provides-Extra: pdf
Requires-Dist: pymupdf4llm>=0.3; extra == "pdf"
Provides-Extra: ocr
Provides-Extra: cv
Requires-Dist: opencv-python-headless>=5.0; extra == "cv"
Requires-Dist: numpy>=1.24.0; extra == "cv"
Provides-Extra: payments
Requires-Dist: segno<2,>=1.6; extra == "payments"
Requires-Dist: pdf417gen<0.9,>=0.8; extra == "payments"
Requires-Dist: zxing-cpp<4,>=3.1; extra == "payments"
Requires-Dist: pypdfium2>=4; extra == "payments"
Requires-Dist: cryptography>=42; extra == "payments"
Provides-Extra: browser
Requires-Dist: playwright>=1.40.0; extra == "browser"
Provides-Extra: screen
Requires-Dist: mss>=9.0.0; extra == "screen"
Requires-Dist: pynput>=1.7.0; extra == "screen"
Requires-Dist: pyautogui>=0.9.54; extra == "screen"
Requires-Dist: sounddevice>=0.4.0; extra == "screen"
Requires-Dist: numpy>=1.24.0; extra == "screen"
Requires-Dist: soniox>=0.1.0; extra == "screen"
Provides-Extra: faces
Requires-Dist: insightface>=0.7.3; extra == "faces"
Requires-Dist: onnxruntime>=1.17.0; extra == "faces"
Requires-Dist: sqlite-vec>=0.1.6; extra == "faces"
Requires-Dist: opencv-python-headless>=4.9.0; extra == "faces"
Provides-Extra: whatsapp-web
Requires-Dist: neonize==0.5.2; extra == "whatsapp-web"
Provides-Extra: build
Requires-Dist: pyinstaller>=6.0.0; extra == "build"
Dynamic: license-file

# Captain Claw

### Command a fleet of AI agents — on every deck, every desk, every wrist

[![Python](https://img.shields.io/badge/python-3.11%2B-blue)](https://www.python.org/)
[![License](https://img.shields.io/badge/license-MIT-green)](LICENCE)
[![Version](https://img.shields.io/badge/version-0.9.0-purple)](release-notes/RELEASE_NOTES_0.9.0.md)
[![Interface](https://img.shields.io/badge/interface-terminal%20%7C%20web%20UI%20%7C%20desktop-black)](docs/guide/getting-started.md)
[![Models](https://img.shields.io/badge/models-OpenAI%20%7C%20Claude%20%7C%20Gemini%20%7C%20DeepSeek%20%7C%20Ollama%20%7C%20OpenRouter-orange)](docs/guide/agents.md#multi-model-support)

<p align="center">
  <a href="docs/guide/whats-new.md#whats-new-in-082"><img src="docs/screenshots/hero-0.8.2.webp" width="100%" alt="Captain Claw 0.8.2: the BotPort hub's live network map, the kiosk's Share on network dialog on a phone, a StopWatch speaking an answer and a PaperColor e-paper dashboard"></a>
</p>

> Most AI tools give you one agent in a chat box. Captain Claw **Flight Deck** is a multi-agent command center: spawn specialist teams, run **seven orchestration modes**, ship software with **Code** (plan → build → independent review), and compose deterministic **Flows**. Self-hosted, MIT licensed, and it works with every major LLM provider, or 100% local with Ollama. Since **0.8.2** your Flight Decks **work together**: a planner on your VPS asks a researcher on the Raspberry Pi at home, and you watch the request cross a live map. Your team works from a **kiosk**; you can just talk to a **watch**. Since **0.8.4** you can **teach an agent your work and test it**, and see every task on one **Taskboard**. Since **0.8.5** your agents run **Claude Code, Codex, OpenCode, Crush and Pi as their crew**, and you can **say what you need and get a whole team**, with its schedules and its software. Since **0.8.6** everything they do on their own is on **one Line**, **Captain Swarm** makes them measurably better at your real work, and **Captain** for your desktop is a 75 MB download that updates itself. Since **0.8.8** they see what you see: **Captain for Chrome** sends the page you're on, and **Captain for Mac** sends what's on your screen from any app.

**[🌐 Website](https://captain-claw.com)** · **[🚀 Live Demo](https://cohort001.captain-claw.com/)** · **[📖 Docs](https://captain-claw.com/docs)** · **[▶️ YouTube](https://www.youtube.com/@captain--ai-agents)** · **[📦 PyPI](https://pypi.org/project/captain-claw/)** · **[🧭 Guides](docs/guide/README.md)** · **[📝 What's new](docs/guide/whats-new.md)**

**New in 0.9.0 — Shipyard:** tools of your own, built by Crew and run by Flight Deck in a sandbox; agents in one `.captain` file to back up, move or hand on; agents that hand each other work, answer email meant for them, read any IMAP inbox, learn from corrections you approve and know the goals their work is for. **[Release notes](release-notes/RELEASE_NOTES_0.9.0.md)** · **0.8.11 — Hold:** a message written while the agent is busy waits and goes when it's free. **[Release notes](release-notes/RELEASE_NOTES_0.8.11.md)** · **0.8.10 — Provisions:** pick a provider, paste its key, and every model tier is set; scans read by a local OCR engine with no model; a working turn no longer stops at 40 steps. **[Release notes](release-notes/RELEASE_NOTES_0.8.10.md)** · **0.8.8 — Spyglass:** Captain for Chrome sends the page you're on to one of your agents, Captain for Mac sends what's on your screen from any app (hold fn, or click), and a round of fixes from watching real users. **[Release notes](release-notes/RELEASE_NOTES_0.8.8.md)** · **0.8.9** makes agents work in the Windows desktop app, and a downloaded Mac app no longer "damaged": **[notes](release-notes/RELEASE_NOTES_0.8.9.md)** · Earlier: **[0.8.7](release-notes/RELEASE_NOTES_0.8.7.md)** · **[0.8.6 — Ship's Log](release-notes/RELEASE_NOTES_0.8.6.md)**

<p align="center"><strong>Flight Decks that work together</strong> &nbsp;·&nbsp; <strong>Captain for Chrome and for Mac</strong> &nbsp;·&nbsp; <strong>custom tools Crew builds for your agents</strong> &nbsp;·&nbsp; <strong>7 orchestration modes</strong> &nbsp;·&nbsp; <strong>79 built-in tools</strong> per agent &nbsp;·&nbsp; <strong>6 shared memory layers</strong> &nbsp;·&nbsp; <strong>131 ready-made archetypes</strong> &nbsp;·&nbsp; <strong>a full coding pipeline</strong> &nbsp;·&nbsp; <strong>Claude Code, Codex, OpenCode, Crush and Pi as your crew</strong> &nbsp;·&nbsp; <strong>a team-safe deck and kiosk</strong> &nbsp;·&nbsp; <strong>voice devices from M5Stack and Waveshare</strong> &nbsp;·&nbsp; <strong>living beings you raise</strong> &nbsp;·&nbsp; <strong>small models that do real work</strong></p>

## Why Captain Claw

- **🛸 A fleet, not a chatbot.** Spawn specialists from 131 ready-made archetypes (31 generalists and 100 specialists, for your industry or your own life) plus the ones your admin generates for your company, describe a goal and let **Agent Forge** design the whole team, or say what you need in your own words and **Forge agents** plans a standing team with its schedules and its software.
- **🎓 Agents you can train.** Give an agent your documents and it keeps them whole at no token cost, reads what you budget for, and learns rules and facts you review. Then exam it, and see exactly where it went wrong It drafts lessons from your corrections for you to approve, works toward the goals you set on its **Course**, and fits in one file to back up, move to another deck or hand to a client.
- **🧩 The right shape for every problem.** Seven orchestration modes, from blind ensembles merged by learned reliability to a collaborative blackboard, moderated councils, and a finisher that stops only when an independent judge says the work is done.
- **🛰️ Decks that work together.** Flight Decks on a VPS, a laptop and a Raspberry Pi behind home NAT lend each other their agents over **BotPort**, and you watch every request cross a live map.
- **💻 An engineering department.** Plan → your approval → build → three independent reviewers → fix, every phase a git commit in your own repo. Or hand the work to **Crew**: Claude Code, Codex, OpenCode, Crush and Pi in worktrees of their own, several at once, and nothing lands until a person says so. Crew also builds **custom tools**, small Python programs Flight Deck runs for your agents, sandboxed on Linux.
- **👥 Ready for a team.** A kiosk your non-admins live in, an admin console, invitations by email, per-user Google and Microsoft accounts, shared agents, daily plan limits or people's own AI keys, agents held to their own files, and a deck that updates itself from the console.
- **🔌 Plugs into anything.** Give your CRM, shop or monitoring its own key and it talks to an agent over a WebSocket, HTTP or signed webhooks, or Flight Deck dials out to it. MCP works both ways: Claude drives your fleet, and your agents use any MCP server.
- **📡 Wherever you are.** Web, WhatsApp (the Cloud API, or your own number), Telegram, a HUD for Meta Ray-Ban Display, push-to-talk devices from M5Stack and Waveshare, and Claude itself over MCP, all one conversation.
- **🧬 Memory that keeps thinking.** Six memory layers shared across sessions and agents, and dream cycles that surface connections you didn't ask for.
- **🛡️ Agents you can check on.** Every task lands on a **Taskboard** that checks an agent really did what it was handed, every tool call lands in a tamper-evident register you and your admins can read, guards run before, during and after every action, and a fabrication guard catches a claimed send or calendar change no tool made.
- **🔓 Yours, end to end.** Self-hosted, MIT, bring your own keys or run 100% local with Ollama. No lock-in.

## Quick start

```bash
pip install captain-claw
flight-deck          # the multi-agent dashboard: http://localhost:25080
```

First run starts onboarding. For a single agent in the terminal or the browser, Docker, a deck for your team or a voice device, see **[Getting started](docs/guide/getting-started.md)**.

## ⚓ New in 0.9.0 — shipyard

**Custom tools.** Describe a tool in your own words, let your model check the spec, and Crew's coding agents write it, its tests and its examples. When you approve the merge, Flight Deck publishes it, and it goes live only if everything passes. Your agents call it with `custom_tools`; Flight Deck runs every call as the person, with their own secrets and files, held in a Landlock sandbox on Linux 5.13+. Offer a tool to people or to the whole deck, and it runs for nobody until they **Add** it. A tool can use the agent's own tools, run your other tools and ask you a question, and agents suggest the tools they'd need.

**Agents in one file.** **Back up / export** saves an agent as a `.captain` file: a **Template**, **Trained**, or a **Full backup** with its keys sealed by a passphrase. Bring it in as a new agent or into an existing one, with Undo. Name a package and each export becomes a version that updates your client's copy without touching what it learned there. Schedule backups, and sign every file with your deck's key.

**Agents that work like colleagues.**

- **Hand-overs**: an agent gives a piece of work to another of your agents and carries on with the answer, each step a Taskboard task.
- **Their own address**: a role, an inbox, `you+researcher@gmail.com` and names they answer to, so mail meant for an agent becomes its task. Gmail replies go out only if you say so.
- **Any mailbox**: **Email (IMAP)** connects up to 20 inboxes per person, with the password sealed in Flight Deck and sending off until you allow it.
- **Lessons you approve**: a correction in chat becomes one drafted lesson in **Lessons to approve**.
- **One memory**: Membase or Hindsight, shared by all of a person's agents, or one Hindsight server for the deck.
- **A Course**: goals for the deck, for you and for each agent, in every agent's prompt; their suggestions wait for you.

- **And:** `ask_user` asks you in a Flight Deck dialog, `image_manipulation` edits pictures with no scripts, **Console → Activity** shows who's using the deck and whether you've written to them, scheduled tasks start an agent that's off, and 79 built-in tools.

**→ [Release notes](release-notes/RELEASE_NOTES_0.9.0.md)** · **[Custom tools](docs/guide/flight-deck.md#custom-tools)** · **[Agent files](docs/guide/flight-deck.md#agent-files-export-import-and-backups)** · **[Agents as colleagues](docs/guide/flight-deck.md#agents-as-colleagues)** · **[Course](docs/guide/flight-deck.md#course)**

## 🔭 Spyglass `since 0.8.8`

**Captain for Chrome** sends the page you're on to one of your agents. It reads the page **in your own browser**, signed in and as you see it, and fetches the files it links to with your session. That covers a portal, an intranet, a paywalled article or a dashboard drawn by JavaScript, where an agent's own web tools would hit a sign-in or a bot wall.

- **Twelve actions:** Summarize, Grab files, Extract data, Fact-check, Draft a reply, Watch it (a check in Flight Deck's Scheduled tasks that says what changed), and more.
- **Read it as** gives any action a lens: the agent suggests its own from who it is, or you type yours.
- **Alt+Shift+C** or right-click opens it, in Chrome, Edge, Brave and Arc.

**Captain for Mac** does the same for **any app**. Hold **fn** for three seconds, or click its menu-bar icon:

- **It reads** the window's text through Accessibility, **your selection first** as what you mean, what's under the pointer, and a screenshot if you want one.
- **Say or type the task**, or pick Explain, Draft a reply, Improve, Translate or What's wrong?.
- **Paste into <app>** puts the answer back where you were.

<p align="center">
  <img src="docs/screenshots/captain-for-mac-0.8.8.webp" width="100%" alt="Captain for Mac's panel beside Mail: the selection, the screen text and what's under the pointer as chips, a typed task, then the drafted reply with Copy and Paste into Mail">
</p>

Both land in a shared folder (**web-clips**, **screen-clips**) and in the agent's own chat, as your words. Get them from **Flight Deck → Connections → Browser**; Captain for Mac is also on [GitHub](https://github.com/kstevica/captain-claw/releases/tag/mac-v0.1.1).

- **Fixes from real users:**
  - Agents run the script they just fixed, and read past a long report's first section.
  - A card for every file a turn made, and progress lines in your language.
  - No reports of hand-offs or schedule changes that never happened.
  - One shared Chromium per deck.
  - One more message past a spent allowance, so a job isn't cut off one step from the end.
  - Public links that expire.

**→ [Release notes](release-notes/RELEASE_NOTES_0.8.8.md)** · **[Captain for Chrome](docs/guide/devices-and-channels.md#captain-for-chrome)** · **[Captain for Mac](docs/guide/devices-and-channels.md#captain-for-mac)**

## 📜 Ship's log `since 0.8.6`

**The Line** is one timeline for everything the deck and your agents did on their own: scheduled tasks, Autonomous Work, finished runs, proposals, fleet changes. The bell keeps only what needs you.

- **Talk to it.** Ask any of your agents about an item, or hand it over with *Look into it*, *Draft a reply* or *What should I do?*. Approve or reject a proposal right there. A hand-over and its answer stay together as a thread.
- **Choose what reaches you.** WhatsApp and Telegram at **Everything**, **Needs you** or **Off**, one agent's chat, and a daily summary at the time you pick.
- **Agents read it too**, with a `line` tool and a count of what's new on each of your turns.

**Captain Swarm** keeps improving one number you care about. It tries several ideas at once, measures every attempt itself on cases it keeps sealed, and keeps only a gain bigger than the noise: triage rules learned from what you really did with your mail, the best result for a real task found in **rehearsal** where nothing is sent or bought, the best document or research for a brief, or any repository with a measuring command. You carry the winner out, teach it to your agent or open a pull request. **Admins only, while it's being tested.**

- **131 archetypes.** 31 Generalists and 100 Specialists, for work and for your own life, with disclaimers where the advice is legal or medical, and an admin can **generate your company's own** and publish them to everyone.
- **Bat finishes for real.** Checks it runs itself, fix rounds, parallel steps, a question for you at a stalemate, and one budget for the whole run.
- **And:** Forge agents builds the team size you ask for, a quicker New agent, **Crush** as a fifth Crew worker, **Keenable** search with no key, and PDF export without Pango.

<p align="center">
  <img src="docs/screenshots/desktop-0.8.6.webp" width="100%" alt="Captain's first start: six install steps ticking off beside a tour of the kiosk's file library">
</p>

**Captain on your desktop: 75 MB, down from 2.5 GB.** The first start installs the rest, and from then on **Check for Updates…** installs each release beside the running one, test-starts it, switches on a restart and goes back by itself if it doesn't come up. macOS tested; Windows and Linux written, not yet tried.

**→ [Release notes](release-notes/RELEASE_NOTES_0.8.6.md)** · **[The Line](docs/guide/flight-deck.md#the-line)** · **[Captain Swarm](docs/guide/flight-deck.md#captain-swarm)** · **[Archetypes](docs/guide/flight-deck.md#archetypes)** · **[The desktop app](docs/guide/getting-started.md#the-desktop-app)**

## 🚢 All hands on deck `since 0.8.5`

- **Crew.** Claude Code, Codex, OpenCode and Pi work for you, each in a git worktree of its own, from a chat or the Crew page. Flight Deck watches them without spending tokens, calls your agent back when one finishes, and a person lands the work. **[Approving someone trusts them with the server](release-notes/RELEASE_NOTES_0.8.5.md#before-you-approve-anyone-for-crew).**
- **Forge agents.** Say what you need in your own words, attach your files, and Captain plans a team of standing agents with their schedules and the software worth building.
- **The Taskboard takes many at once.** Tick tasks as in Gmail and give one instruction for all; the agent works through them one at a time.
- **A deck that updates itself.** **Console → Updates** tries the new version on a spare port, warns everyone, restarts in place and goes back by itself if it doesn't come up.
- **And:** real Excel and PowerPoint with no scripts (`xlsx`, `pptx`), agent groups in the kiosk, last login and tokens on the Users page, and a new look for the devices.

**→ [Release notes](release-notes/RELEASE_NOTES_0.8.5.md)** · **[Crew](docs/guide/flight-deck.md#crew)** · **[Forge agents](docs/guide/flight-deck.md#forge-agents)** · **[Updating the deck](docs/guide/flight-deck.md#updating-the-deck)**

## 🎓 Onboarded, on the board `since 0.8.4`

- **Onboarding.** **⋯ → Onboarding** teaches an agent your work. Documents go in whole as a knowledge base that costs no tokens, it reads as much as you budget for, and you review the rules, skills and facts it draws out.
- **Exams and practice.** Flight Deck writes questions from the documents, asks them through the agent's real chat, grades each answer and says why a wrong one went wrong. Practice on real tasks, and corrections become lessons that reach the agent when they matter.
- **The Taskboard.** Everything your agents were asked and sent, on every channel: *Needs me*, *Waiting on others*, *Agents working*, *Done*. Gmail's keys, next steps that wait for your approval, and a hand-over that **checks the agent really did it**.
- **A deck for people who don't share a machine.** With sign-in on, agents stay in their own files, non-admins' agents don't run code, and team keys can't be read or sent anywhere else. **[Read this before you upgrade a team deck](release-notes/RELEASE_NOTES_0.8.4.md#before-you-upgrade-a-team-deck).**
- **And:** your own AI keys with no daily limits, a Profile with a researcher that drafts your texts, the `knowledge` and `visualize` tools, pictures that reach the chat and the channel, the Waveshare ePaper 1.54 boards, and a new Captain icon.

**→ [Release notes](release-notes/RELEASE_NOTES_0.8.4.md)** · **[Onboarding](docs/guide/flight-deck.md#onboarding)** · **[The Taskboard](docs/guide/flight-deck.md#the-taskboard)** · **[Team deployment](docs/team-deployment.md)**

## 🔌 Plugged in, on the record `since 0.8.3`

- **Agent links.** Connections → **Systems** gives an outside system its own key to one of your agents: a WebSocket, plain HTTP or signed webhooks, files both ways. Or Flight Deck dials out to an orchestrator, so an agent behind a router needs no public address.
- **Your own WhatsApp** *(experimental, opt-in)*. Link your number as a linked device; agents read your chats, files and voice notes, send only to chats you whitelist, and answer in the chats you pick when someone calls them by name.
- **Every tool call, on the record.** An append-only, HMAC-chained register of every call every agent makes: **Activity** for you, **Audit** for admins, and an `activity` tool so an agent can tell you what it really did overnight.
- **Nothing waits unseen.** Nudges and proposals that need your approval reach WhatsApp, Telegram, your devices and the bell, with Approve and Reject right there.
- **And:** idle agents sleep and wake when needed, Shared folders with OneDrive in the kiosk, Word documents with real tracked changes, and six new tools.

**→ [Release notes](release-notes/RELEASE_NOTES_0.8.3.md)** · **[Agent links](docs/guide/botport-and-mcp.md#agent-links--connect-any-system-to-an-agent)** · **[WhatsApp Web](docs/guide/devices-and-channels.md#whatsapp-web--your-own-whatsapp)** · **[Activity and Audit](docs/guide/flight-deck.md#activity-and-audit)**

## 🛰️ BotPort — Flight Decks that work together `since 0.8.2`

<p align="center">
  <img src="docs/screenshots/botport-live.webp" width="100%" alt="The BotPort hub's live network map: five Flight Decks around the hub, each with the agents it shares, requests and answers flying between them">
</p>

Every Flight Deck used to be an island. Now any number of them join one network through **BotPort**, a small hub that is happy on a Raspberry Pi in a tmux pane. Agents address each other as **`Agent@deck`**: your planner on the VPS asks `Researcher@pi` at home, and the answer streams back with live progress, as if both sat on the same deck.

- **Every deck dials out.** A Pi behind home NAT or a laptop joins as easily as a server.
- **Add a deck in a minute, with no restart.** Paste the join code from the hub's **Decks** page into that deck.
- **Everyone can share** the agents they own, after a dialog that says plainly what other decks can and can't do with them.
- **Safe by construction.** A request from another deck runs in a lane of its own: no email, no Flows, no fan-out, and your deny list applies.

<p align="center">
  <img src="docs/screenshots/botport-add-deck.webp" width="100%" alt="Add a Flight Deck in a minute: name it on the hub, copy the join code, paste it into the deck">
</p>

<p align="center">
  <img src="docs/screenshots/botport-wall.webp" width="100%" alt="Kiosk mode: the BotPort network map full screen on a wall display">
</p>

**→ [BotPort and MCP guide](docs/guide/botport-and-mcp.md)** · **[Set it up, step by step](docs/botport-deployment.md)**

## 🧭 The kiosk — a front door your whole team walks through

<p align="center">
  <img src="docs/screenshots/kiosk-0.8.2.webp" width="100%" alt="The kiosk: an agent greets you with skill cards, the Share on network dialog, and the kiosk on a phone">
</p>

The chat-first view your non-admins live in is a complete place to work: one-click **"What can I do?" skill cards**, a **File library** and a **Data library** that summarise everything the agents keep, **Shared folders** with Google Drive and OneDrive beside them, **Scheduled tasks** that deliver to chat, email or Telegram, a **Taskboard** of everything the agents were asked and sent, one **timeline** per agent with named topics, **agent groups** with pins, **Forge agents** in the New agent dialog, and a **⋯** menu with **Onboarding** that also shares an agent on the network. Admins get an **Admin console**, invitations by email, a waitlist, branding and daily plan limits, and people can run on their own AI keys instead.

**→ [The kiosk and simple layout](docs/guide/flight-deck.md#the-kiosk-and-simple-layout)** · **[Running a deck for a team](docs/team-deployment.md)**

## 🎙️ Devices — talk to your agents, they talk back

<p align="center">
  <img src="docs/screenshots/devices-0.8.5.webp" width="100%" alt="M5Stack StopWatch speaking an answer and showing its clock face with Captain, and the PaperColor's dashboard in blocks of colour beside an answer">
</p>

Push-to-talk clients on the round-AMOLED **StopWatch**, the 4" colour e-paper **PaperColor** and the **StickS3** from M5Stack, and since 0.8.4 the 1.54" **Waveshare ePaper** board, with or without touch. Press, talk, and the device **speaks the answer sentence by sentence while the model is still writing it**. Voice notes wait offline until the deck is back, every question carries the room's context, and updates arrive signed, over the air, from your own deck. Since 0.8.5 Captain, the robot from the icon, is on every screen, and the StopWatch has a new look.

[![StopWatch screens: the clock face with Captain, listening, working with a stop button, an answer whose spoken sentence is lit, Captain speaking, and Captain on a background picture](docs/screenshots/stopwatch-screens.png)](docs/guide/devices-and-channels.md)

[![PaperColor B screens: the dashboard in blocks of colour, a short answer, a long Croatian answer, the options QR code, and an answer with a picture](docs/screenshots/papercolor-screens.png)](docs/guide/devices-and-channels.md)

**→ [Devices and channels](docs/guide/devices-and-channels.md)**, with WhatsApp, Telegram, the smart-glasses HUD and agents in your inbox.

## 💻 Code — an engineering department, not a coding assistant

Describe what you want built. A router sizes the job; big work runs **plan → your approval → build → three independent reviewers in parallel → triage → capped fix loop**, every phase a git commit in the folder's own repo. Agents query a persistent **Code Map** instead of re-reading your tree, per-turn **token costs are shown in chat**, and the whole run **exports as one auditable Markdown transcript**.

Cursor and Claude Code give you one very good agent that plans, writes, reviews, and tests in a single context. Code splits those roles across **independent agents** — the reviewer never grades its own homework, QA actually runs the tests — and puts **you at the approval gate** before anything is built. A complete real run (an RTS game with 185 tests, ~$2.50 on DeepSeek) ships in [`examples/code/`](examples/code/).

**→ [Code in the Flight Deck guide](docs/guide/flight-deck.md#code)**

## Pick the right shape for the problem

One agent isn't always the answer — and one orchestration strategy never is. Captain Claw ships **seven distinct modes**, each tuned to a different kind of work.

| | |
|---|---|
| **🛠️ Agent Forge** — describe a goal, an LLM designs the whole team (roles, models, tools, SOPs) | **🏛️ Agent Council** — specialists deliberate across moderated rounds, then vote and synthesize |
| [![Agent Forge](docs/screenshots/agent-forge.png)](docs/screenshots/agent-forge.png) | [![Agent Council](docs/screenshots/agent-council.png)](docs/screenshots/agent-council.png) |
| **🔀 Basna** — N agents answer the same question *blind*, merged by reliability into one high-confidence result | **🤝 Vatra** — a team collaborates on a shared blackboard, each owning sections, improving over review rounds |
| [![Basna](docs/screenshots/basna.png)](docs/screenshots/basna.png) | [![Vatra](docs/screenshots/vatra.png)](docs/screenshots/vatra.png) |

The fifth mode is **💻 Code** (above). The sixth is **Flight Deck** itself — spawn, monitor, and coordinate the whole crew from one dashboard. The seventh is **🦇 Bat**, the stubborn finisher: checkpointed steps with retries, survives restarts, and stops only when an independent, fail-closed judge says the task is done.

**→ [All seven modes](docs/guide/flight-deck.md#seven-orchestration-modes)**

## More than orchestration

| | |
|---|---|
| **⚙️ Flows** — a deterministic automation DSL (triggers, `gosub`, parallel `spawn`/`join`, `on error`), validated by a parser, not interpreted by an LLM | **🔭 Observatory** — it keeps thinking when you're away: a live, auditable stream of thoughts, dreams, and standing intentions |
| [![Flows](docs/screenshots/flows.png)](docs/screenshots/flows.png) | [![Observatory](docs/screenshots/observatory.png)](docs/screenshots/observatory.png) |

- **Plan Mode & Deep Mode** — for when "probably right" isn't good enough: a reviewable DAG of verified steps, and frontier-quality answers via multiple rollouts + self-consistency voting + diverse-lens critics.
- **6-layer shared memory** — working, semantic (vector + BM25), deep (full-text), insights, autonomous nervous system, and self-reflection, carried across sessions and across every agent. **→ [Memory and cognition](docs/guide/memory.md)**
- **Shared Virtual File System** — a host-sandboxed, per-user workspace the whole fleet reads and writes, with per-file authorship.
- **Every model** — OpenAI (API key or Sign in with ChatGPT), Anthropic, Google Gemini, DeepSeek, OpenRouter, Ollama and on-device LiteRT, mixed freely per agent. **→ [Inside an agent](docs/guide/agents.md)**

## See it in action

Video guides on the **[Captain YouTube channel](https://www.youtube.com/@captain--ai-agents)**:

| **The complete Captain guide** — AI agents that do real work | **The Captain admin tutorial** — run your team's own AI agent platform |
|---|---|
| [![AI Agents That Do Real Work: The Complete Captain Guide](https://img.youtube.com/vi/VehoeF9ewdQ/maxresdefault.jpg)](https://www.youtube.com/watch?v=VehoeF9ewdQ) | [![Run Your Team's Own AI Agent Platform: The Captain Admin Tutorial](https://img.youtube.com/vi/IXkO3AbID38/maxresdefault.jpg)](https://www.youtube.com/watch?v=IXkO3AbID38) |

[![asciicast](https://asciinema.org/a/R1UPSHi4Y6UrOnpY.svg)](https://asciinema.org/a/R1UPSHi4Y6UrOnpY)

[![Watch the video](https://img.youtube.com/vi/4g_aA_WnEaw/maxresdefault.jpg)](https://www.youtube.com/watch?v=4g_aA_WnEaw)

[![Glasses Bridge demo](https://img.youtube.com/vi/ZTepr5PP3WQ/maxresdefault.jpg)](https://www.youtube.com/shorts/ZTepr5PP3WQ)

## 📚 Documentation

| Guide | What's inside |
|---|---|
| **[Getting started](docs/guide/getting-started.md)** | Install and the launchers, a deck for a team, a voice device on your desk, Docker, configuration |
| **[Flight Deck](docs/guide/flight-deck.md)** | The command center: seven orchestration modes, Code, Crew, Forge agents, Plan and Deep mode, Flows, the kiosk, Onboarding, the Taskboard, activity and audit, running and updating a deck for a team |
| **[BotPort, MCP and agent links](docs/guide/botport-and-mcp.md)** | Flight Decks that work together, Flight Deck as an MCP server for Claude, MCP servers for your agents, connecting your own systems |
| **[Devices and channels](docs/guide/devices-and-channels.md)** | StopWatch, PaperColor, StickS3 and Waveshare, the smart-glasses HUD, WhatsApp (and your own WhatsApp), Telegram, notifications, agents in your inbox |
| **[Memory and cognition](docs/guide/memory.md)** | Six memory layers, the context engine, dreaming, the Brain Graph |
| **[Inside an agent](docs/guide/agents.md)** | Every supported model, the 79 built-in tools, safety guards, the agent web UI |
| **[Architecture](docs/guide/architecture.md)** | Where each component lives in the code |
| **[What's new](docs/guide/whats-new.md)** | Every release, newest first |

Reference: **[USAGE.md](USAGE.md)** (every command, tool and config key) · **[FLOWS.md](FLOWS.md)** (the Flow language) · **[Team deployment](docs/team-deployment.md)** · **[BotPort deployment](docs/botport-deployment.md)** · **[Glasses HUD](docs/glasses-hud.md)** · **[Device firmware](firmware/device/README.md)** · **[Release notes](release-notes/)** · **[All guides](docs/guide/README.md)**

## ⭐ Star the repo

Captain Claw is **MIT licensed and free forever** — your data stays on your machine, bring your own keys or run 100% local with Ollama. It's built solo and growing fast, and every star helps another builder discover it. **If it looks useful, would you give it a star?**

<p align="center">
  <a href="https://github.com/kstevica/captain-claw"><img src="https://img.shields.io/github/stars/kstevica/captain-claw?style=for-the-badge&logo=github&label=Star%20Captain%20Claw&color=gold" alt="Star Captain Claw on GitHub"></a>
</p>

[![Star History Chart](https://api.star-history.com/svg?repos=kstevica/captain-claw&type=Date)](https://star-history.com/#kstevica/captain-claw&Date)

## License

[MIT](LICENCE)
