Retrieved article excerpt
Open article · Retrieved 2026-11-11T11:21:43.312631+00:00
[Pots logo](https://github.com/Crokily/pi-durable-bot/blob/main/docs/media/logo.png)
# pi-durable-bot (Pots)
**The open-source Grok Bot alternative: an AI coworker that acts on its own.**
It reads every channel, email and event you give it, decides what matters,
does the work on its own computer, and speaks up when it should.
[Demo](https://github.com/Crokily/pi-durable-bot#see-it-work) · [Compare](https://github.com/Crokily/pi-durable-bot#open-and-yours) · [Quick start](https://github.com/Crokily/pi-durable-bot#quick-start) · [How it decides](https://github.com/Crokily/pi-durable-bot#how-it-decides-to-act) · [How it works](https://github.com/Crokily/pi-durable-bot#how-it-works)
[Star pi-durable-bot on GitHub](https://github.com/Crokily/pi-durable-bot/stargazers)
[npm](https://www.npmjs.com/package/pi-durable-bot)
[Platforms: macOS, Linux, Windows](https://github.com/Crokily/pi-durable-bot#quick-start)
[License: MIT](https://github.com/Crokily/pi-durable-bot/blob/main/LICENSE)
[Built on pi-durable](https://github.com/earendil-works/pi)
[Chat SDK](https://chat-sdk.dev)
[Node 24+](https://nodejs.org)
⭐ If Pots is useful to you, a star helps other people find it.
Tip
**Setting this up with an AI agent, such as Claude Code, Codex or Cursor?** Have it read [docs/for-agents.md](https://github.com/Crokily/pi-durable-bot/blob/main/docs/for-agents.md) first. That page explains Pots to your agent and how to set it up. In short: the agent installs it and makes the bot, you sign in to your model with `pots login`, and then the bot connects Slack and your other apps itself.
[In Slack, Pots reads every message and decides a pricing question is its job, checks the pricing page in a browser on its own computer, picks up after being killed mid-task, sends a comparison page, uses Slack's own buttons, and takes an API key on a one-time page](https://github.com/Crokily/pi-durable-bot/blob/main/docs/media/demo.mp4)
Grok Bot, dots and Claude Tag showed what an AI teammate can be. pi-durable-bot gives you the same kind of coworker as open source: it runs on your machine, with the model you choose, in the places your team already talks.
## Open and yours
Grok Bot, OpenAI dots, Claude Duet, Claude Tag and Meta Muse are closed products. They run on someone else's computer, with someone else's model, inside the apps they chose. pi-durable-bot is MIT-licensed and runs where you put it.
| | pi-durable-bot | Grok Bot (xAI) | dots (OpenAI) | Claude Duet (Anthropic) | Claude Tag (Anthropic) | Muse (Meta) |
| --- | --- | --- | --- | --- | --- | --- |
| **Source code** | Open, MIT | Closed | Closed | Closed | Closed | Closed |
| **Where it runs** | Your server, your VM, your office box | xAI's cloud | OpenAI's cloud | Anthropic's cloud | Anthropic's cloud | Meta's cloud |
| **Model** | Any: your subscription login, 40+ providers, or a local model | Grok | OpenAI's | Claude | Claude | Meta's |
| **Where you talk to it** | Slack, Discord, Telegram, and any channel with a [Chat SDK](https://chat-sdk.dev) adapter | Mac and iOS apps; Slack for team bots | ChatGPT, Slack, Teams | Its own app | Slack | Web, mobile app, WhatsApp |
| **Your data** | Stays on your machine, in each bot's folder | Sent to xAI | Sent to OpenAI | Sent to Anthropic | Sent to Anthropic | Sent to Meta |
| **Custom work** | Anything. Change the code, add tools, connect your own systems | What the vendor allows | What the vendor allows | What the vendor allows | What the vendor allows | What the vendor allows |
The other products as their makers described them in public, November 2026; they may have changed since. Grok Bot, dots, Claude Duet, Claude Tag and Muse are products of xAI, OpenAI, Anthropic and Meta. pi-durable-bot is not affiliated with any of them.
**Any model.** Log in once with a subscription you already pay for, use an API key from any of the 40+ providers [pi](https://github.com/earendil-works/pi) supports, point it at any OpenAI-compatible endpoint (vLLM, SGLang, a proxy), or run a local model with Ollama, LM Studio or llama.cpp. The bot uses pi's own model layer, so every model pi can use, the bot can use. With a local model for the agent and the judge, nothing leaves your machine. You are not locked to one model vendor.
**Any channel.** The core speaks in five plain words: channel, place, thread, message, person. Platform details stay inside one adapter per platform. Slack, Discord and Telegram work today; Teams or email is one more adapter, not a rewrite. One bot can be in many channels and stays the same person everywhere.
**Your business.** Give it your own tools, data and workflows. It can run several bots on one machine, each with its own name, persona, responsibilities and memory. A bot can even edit its own definition, or create a new bot.
## Not a bot. A coworker.
Most AI bots are a command line with a chat bubble. You @ them, they answer, they forget. A real coworker works differently:
| | A chat bot | pi-durable-bot |
| --- | --- | --- |
| **What it sees** | The message that mentions it | Everything in the places it was invited to: chats, DMs, emails, events, pages it watches |
| **When it acts** | When you @ it | When it decides it should. It can also answer when you @ it |
| **What it remembers** | This thread, maybe | One long memory across every channel, kept on disk |
| **How it works** | Calls the tools someone wired in | Writes and runs its own code on its own computer |
| **What happens later** | Nothing | It sets its own reminders and comes back |
| **After a crash** | Starts over, or sends twice | Picks up where it stopped. Never sends the same message twice (on Telegram it can, [see why](https://github.com/Crokily/pi-durable-bot#status)) |
## What it does
### 📥 Its own inbox
Every message in every place you invite it to lands in one inbox: channel messages that never mention it, edits, deletions, reactions, people joining, and its own messages. It keeps all of it in a local SQLite log and reads that log with SQL whenever it needs context. Nothing is thrown away when a conversation gets long.
### 🧠 Its own judgment
It is woken in three ways, the same three ways a person notices work:
| | Like a coworker who... | How |
| --- | --- | --- |
| **Someone asks** | gets a message or an @ | A mention or a DM wakes it at once |
| **It notices** | overhears something that is their job | Every message that does not mention it comes to it too, and it decides itself whether it is about its work. You can also set a judge that reads these messages first and asks two questions: *is this about me?* and *should I respond?* It sees the bot's own list of responsibilities. The judge is a fast classifier such as TypeSafe's Jev, a local model, or the bot's own model |
| **It checks in** | looks around now and then, and keeps promises | It sets its own timed wakes and routines: "check Acme's pricing every Monday", "follow up at 5 pm". While no timed wake is pending, it looks around every two hours |
Being woken is not the same as speaking. Each time, the agent reads the log and decides if it should say anything, where, and when. Most of the time the right answer is to stay quiet.
### 💻 Its own computer
It has a real machine with a shell, files, the internet, and a screen it uses like a person: the browser and the apps on it, with the mouse and keyboard. It does not wait for a plugin. It writes the script it needs, runs it, fixes it, and keeps the useful ones. That covers research, spreadsheets, reports, monitoring a web page, filling a form, or booking a flight, and also code.
This is **code mode**: the agent gets a few general tools (`read`, `write`, `edit`, `bash`, `screen`) plus three channel actions (`send`, `react`, `call`), and builds the rest itself. One more tool, `task`, hands work to its helpers (below). With `codemode`, pi's code mode, it writes a JavaScript script that calls these tools and the tools of [MCP servers](https://github.com/Crokily/pi-durable-bot#mcp-servers) in a sandbox; only what the script returns comes back to it.
`screen` is `bash` with the screen's environment, such as `DISPLAY`; `bash` does not have it. A screen runs one task at a time, as a person's desktop does: the first `screen` command of an agent takes the screen until its work ends, also across bots and the Pots processes of the same user on the machine. Another agent that tries then learns who has it, since when, and when it frees, and decides itself what to do. A bot that sets up its own desktop, such as an Xvfb display, writes its environment into `screen` in its `bot.json`.
One agent at a time per screen is enforced only on Linux, where plain `bash` has no `DISPLAY` or `WAYLAND_DISPLAY` and so cannot reach the screen. On macOS and Windows the screen does not depend on those variables, so `bash` can still use it; there the agents use the `screen` tool because the prompt tells them to.
### 👥 Its own helpers
Longer work does not keep it from talking. With its `task` tool the bot starts **children**: agents that work in the background with `read`, `write`, `edit`, `bash`, `screen` and `codemode`, without the channel actions and `task`, on a brief it writes for them. It answers the person first, hands the work to a child, and stays free for the next message. A child starts from an empty conversation and its brief, so the bot's own context stays small; it sees the bot's memory index as it was when it started. When a child ends, done, failed or with a question for a person, its final message comes back to the bot as a wake, exactly once, also across crashes and restarts; the bot passes on what matters, and sends the child the answer to its question. While a child works for a place, new messages there go to the bot, so it can pass them on. Its timed and fallback wakes list the children that work and how long each has run. A stopped child reports nothing and does nothing more, also when the process dies in the middle of the stop.
Children use the bot's model, or the `childModel` of `bot.json`; a change counts for new children and those that exist, also when `childModel` is taken out. The bot chooses each child's thinking level when it starts it: `high`, `xhigh` or `max`, and without a choice the `childThinking` of `bot.json` (`xhigh` by default). A child keeps its level for its whole life, so a new `childThinking` counts for new children only; a level the model does not have becomes the nearest one it has, as in pi. `settings.maxChildren` (50 by default) caps how many work at once. `pots children` lists them, and `pots children --stop <id>` or `--stop-all` stops them.
It works like a [pi](https://github.com/earendil-works/pi) session: it reads `AGENTS.md` and uses [Agent Skills](https://agentskills.io) from the same places pi does, so the skills you give pi, the bot can use too. Screenshots and photos are shrunk to fit the model, as in pi.
### 💬 Its own voice
When it speaks, it speaks like a teammate: in the right channel or thread, in its own words, with the file attached. It can reply in a thread, start a new message, DM a person, add a reaction, edit its own message, or call any other platform API.
### 🪟 Its own pages
Some things do not fit in a chat message. For a plan, a report or a dashboard, the bot writes a web page and sends a link. A page can ask, too: people choose, comment, fill in, approve or reject on it, and each answer wakes the bot at once.
- **Buttons and forms in the chat.** On Slack and Discord the bot sends the platform's own buttons, menus and forms; on Telegram, inline buttons. A click wakes it within a second, and a form opens at once.
- **A password page for secrets.** When the bot needs an API key from you, it sends a one-time link to a page of Pots' own. You type the key there. It goes into a file in the secrets folder, never into the chat, the log or a trace.
- **No public address needed.** The first link starts a Cloudflare Quick Tunnel, so pages work from a laptop b