pi-durable-bot 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  What changed in each version of pi-durable-bot (Pots). To upgrade, run `npm install -g pi-durable-bot@latest`, then `pots service restart`.
4
4
 
5
+ ## 0.7.1 (2026-11-10)
6
+
7
+ Pots is also a pi package, so a pi user's agent can set Pots up. Nothing changed for bots: a running bot does not need this version.
8
+
9
+ ### Added
10
+ - **A setup skill for pi users.** The package has the `pi-package` keyword, so pi's package gallery can list it. A pi user who installs it (`pi install npm:pi-durable-bot`) gets one skill, `pots-setup`, which has their agent set up Pots by [docs/for-agents.md](docs/for-agents.md). Pots' own channel and page skills stay out of plain pi sessions.
11
+
5
12
  ## 0.7.0 (2026-11-10)
6
13
 
7
14
  The bot can show people web pages, ask with buttons and forms, and take secrets on a page, also when its computer has no public address.
package/README.md CHANGED
@@ -4,13 +4,14 @@
4
4
 
5
5
  # pi-durable-bot (Pots)
6
6
 
7
- **The open-source AI coworker that acts on its own.**
7
+ **The open-source Grok Bot alternative: an AI coworker that acts on its own.**
8
8
 
9
9
  It reads every channel, email and event you give it, decides what matters,<br>
10
10
  does the work on its own computer, and speaks up when it should.
11
11
 
12
- [Demo](#see-it-work) · [Quick start](#quick-start) · [How it decides](#how-it-decides-to-act) · [Open and yours](#open-and-yours) · [How it works](#how-it-works)
12
+ [Demo](#see-it-work) · [Compare](#open-and-yours) · [Quick start](#quick-start) · [How it decides](#how-it-decides-to-act) · [How it works](#how-it-works)
13
13
 
14
+ [![Star pi-durable-bot on GitHub](https://img.shields.io/github/stars/Crokily/pi-durable-bot?style=social&label=Star)](https://github.com/Crokily/pi-durable-bot/stargazers)
14
15
  [![npm](https://img.shields.io/npm/v/pi-durable-bot?style=flat-square&color=1F7A70)](https://www.npmjs.com/package/pi-durable-bot)
15
16
  [![Platforms: macOS, Linux, Windows](https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-1F7A70?style=flat-square)](#quick-start)
16
17
  [![License: MIT](https://img.shields.io/badge/license-MIT-1F7A70?style=flat-square)](LICENSE)
@@ -18,6 +19,8 @@ does the work on its own computer, and speaks up when it should.
18
19
  [![Chat SDK](https://img.shields.io/badge/channels-Chat%20SDK-1F7A70?style=flat-square)](https://chat-sdk.dev)
19
20
  [![Node 24+](https://img.shields.io/badge/node-24%2B-1F7A70?style=flat-square)](https://nodejs.org)
20
21
 
22
+ ⭐ If Pots is useful to you, a star helps other people find it.
23
+
21
24
  </div>
22
25
 
23
26
  > [!TIP]
@@ -29,6 +32,27 @@ does the work on its own computer, and speaks up when it should.
29
32
 
30
33
  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.
31
34
 
35
+ ## Open and yours
36
+
37
+ 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.
38
+
39
+ | | pi-durable-bot | Grok Bot (xAI) | dots (OpenAI) | Claude Duet (Anthropic) | Claude Tag (Anthropic) | Muse (Meta) |
40
+ |---|---|---|---|---|---|---|
41
+ | **Source code** | Open, MIT | Closed | Closed | Closed | Closed | Closed |
42
+ | **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 |
43
+ | **Model** | Any: your subscription login, 40+ providers, or a local model | Grok | OpenAI's | Claude | Claude | Meta's |
44
+ | **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 |
45
+ | **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 |
46
+ | **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 |
47
+
48
+ <sub>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.</sub>
49
+
50
+ **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.
51
+
52
+ **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.
53
+
54
+ **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.
55
+
32
56
  ## Not a bot. A coworker.
33
57
 
34
58
  Most AI bots are a command line with a chat bubble. You @ them, they answer, they forget. A real coworker works differently:
@@ -82,6 +106,14 @@ It works like a [pi](https://github.com/earendil-works/pi) session: it reads `AG
82
106
 
83
107
  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.
84
108
 
109
+ ### 🪟 Its own pages
110
+
111
+ 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.
112
+
113
+ - **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.
114
+ - **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.
115
+ - **No public address needed.** The first link starts a Cloudflare Quick Tunnel, so pages work from a laptop behind a home router. For a fixed address, the bot sets up Tailscale Funnel with you, or uses your own domain.
116
+
85
117
  ### ⏰ Its own schedule
86
118
 
87
119
  It promises to come back, and it does. A timed wake (`pots wake`) wakes it once, at a time it chooses. A **routine** (`pots routine`) repeats: every 30 minutes, say, or on a cron schedule in the computer's time zone. Both live in the same database as everything else, so they survive restarts. It can also add normal cron jobs on its machine.
@@ -109,25 +141,6 @@ When the context gets full, the bot decides when to **turn the page**: it writes
109
141
 
110
142
  Built on [pi-durable](https://github.com/earendil-works/pi), every step is journaled. Kill the process in the middle of a task and it continues after restart. Every incoming event is written to disk before it is acknowledged. Every outgoing message carries a send ID, and after a crash the bot checks whether the message already went out before it sends again.
111
143
 
112
- ## Open and yours
113
-
114
- Grok Bot, dots, Muse and Claude Duet 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.
115
-
116
- | | Closed AI coworkers | pi-durable-bot |
117
- |---|---|---|
118
- | Source code | Closed | Open, MIT |
119
- | Where it runs | The vendor's cloud | Your server, your VM, your office box |
120
- | Model | The vendor's | Your subscription login, any of 40+ providers, or a local model |
121
- | Your data | Sent to the vendor | Stays on your machine, in each bot's folder |
122
- | Channels | The ones the vendor supports | Any channel with a [Chat SDK](https://chat-sdk.dev) adapter |
123
- | Custom work | What the vendor allows | Anything. Change the code, add tools, connect your own systems |
124
-
125
- **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.
126
-
127
- **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.
128
-
129
- **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.
130
-
131
144
  ## Quick start
132
145
 
133
146
  > [!IMPORTANT]
@@ -318,6 +331,7 @@ pi-durable-bot runs every day as a teammate in a real workspace. What works toda
318
331
  - [x] A judge you choose: the bot's own model, Jev or another classifier, a local llama.cpp model, or none
319
332
  - [x] `AGENTS.md`, Agent Skills and images as in a pi session
320
333
  - [x] MCP servers and code mode, through pi's own MCP support
334
+ - [x] Pages, buttons, forms and a password page, with a public address that needs no setup
321
335
  - [ ] More adapters: Teams, email
322
336
  - [ ] `pots init` in a web page, for people who do not use a terminal
323
337
 
@@ -334,6 +348,18 @@ npm run tla # the TLA+ models of the inbox, outbox and waker (need
334
348
 
335
349
  `npm run build` writes the JavaScript that the npm package ships to `dist/`. Set `POTS_HOME` to try things without touching `~/.pots/`. With `OTEL_EXPORTER_OTLP_ENDPOINT` set, the gateway also sends its traces to any OpenTelemetry tool (Jaeger, Grafana Tempo, Honeycomb). Tests, the TLA+ models and traces in detail: [docs/development.md](docs/development.md). Coding agents: read [AGENTS.md](AGENTS.md). Agents that set Pots up for someone: read [docs/for-agents.md](docs/for-agents.md).
336
350
 
351
+ ## Star history
352
+
353
+ <a href="https://www.star-history.com/#Crokily/pi-durable-bot&Date">
354
+ <picture>
355
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Crokily/pi-durable-bot&type=Date&theme=dark" />
356
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Crokily/pi-durable-bot&type=Date" />
357
+ <img alt="Star history of pi-durable-bot" src="https://api.star-history.com/svg?repos=Crokily/pi-durable-bot&type=Date" width="100%" />
358
+ </picture>
359
+ </a>
360
+
361
+ [![As seen on Open Source Alternatives](https://www.opensourcealternatives.to/badge-osa.svg)](https://www.opensourcealternatives.to)
362
+
337
363
  ## Built on
338
364
 
339
365
  - [pi-durable](https://github.com/earendil-works/pi) for the durable agent runtime
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-durable-bot",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Open-source AI coworkers that read every channel, decide what matters, and act on their own computer. Self-hosted, any model.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,7 +18,9 @@
18
18
  "slack-bot",
19
19
  "self-hosted",
20
20
  "pi-durable",
21
- "chat-sdk"
21
+ "chat-sdk",
22
+ "grok-bot-alternative",
23
+ "pi-package"
22
24
  ],
23
25
  "bin": {
24
26
  "pots": "dist/cli/pots.js"
@@ -27,11 +29,18 @@
27
29
  "dist",
28
30
  "skills",
29
31
  "kit",
32
+ "pi-package",
30
33
  "docs/for-agents.md",
31
34
  "README.md",
32
35
  "CHANGELOG.md",
33
36
  "LICENSE"
34
37
  ],
38
+ "pi": {
39
+ "skills": [
40
+ "./pi-package/skills"
41
+ ],
42
+ "video": "https://github.com/Crokily/pi-durable-bot/raw/refs/heads/main/docs/media/demo.mp4"
43
+ },
35
44
  "engines": {
36
45
  "node": ">=24"
37
46
  },
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: pots-setup
3
+ description: "Set up Pots (npm pi-durable-bot), the open-source Grok Bot alternative: an AI coworker for Slack, Discord and Telegram that reads the channels, decides itself when to act, and works on its own computer, with any model. Use when your person wants an always-on AI teammate or bot in their team chat, or asks about Pots, pi-durable-bot, or an open-source alternative to Grok Bot, OpenAI dots, Claude Duet or Claude Tag."
4
+ ---
5
+
6
+ # Set up Pots
7
+
8
+ Pots is not a pi extension. It is its own program, built on pi-durable, that runs AI coworkers in team chats. This skill only helps you set it up for your person.
9
+
10
+ 1. Read the setup guide that comes with this package: [docs/for-agents.md](../../../docs/for-agents.md). If that file is not there, read https://github.com/Crokily/pi-durable-bot/blob/main/docs/for-agents.md.
11
+ 2. Do what it says. It tells you what to ask your person, how to install Pots (`npm install -g pi-durable-bot`), how to make the bot, and how to check that the bot answers.
12
+
13
+ The bot gets full control of the computer it runs on, with no approval step. Tell your person this before you install, and suggest a computer or VM of its own.
14
+
15
+ More: https://github.com/Crokily/pi-durable-bot