Self-hosted AI chat workspace
A minimal, durable AI harness.
Pipal is a chat workspace you run yourself: one Node.js process and one SQLite file. Close the tab and the reply still finishes. Restart the server and unfinished work resumes.
Built on Pi Durable, with Hono, Svelte, and SQLite.
Your conversation outlives the tab and the process.
Pipal writes your message to disk before it replies. The message, the work to answer it, and its deadline go into SQLite in one commit. After that, the browser can leave and the server can stop.
Send
You press Send. The browser posts your message.
Commit
Pipal saves the message, the work to answer it, and a deadline in one write. Then it returns the receipt.
Stream
The reply reaches your tab as server-sent events.
Close the tab
The stream ends. The run belongs to the server, so it keeps going.
Kill the process
The server dies mid-reply. The message and its task are still in SQLite.
Restart
Pi Durable finds the unfinished task. If the run has time and retries left, it sends the model request again.
Come back
Open the chat. A fresh snapshot shows the finished answer.
Pipal's test suite kills the host during model calls and tool calls to check this.
Durable by default, in the bookThe core is the trunk. Everything else is a branch.
Pipal's core stays small. What the assistant can do comes from profiles, tools, and extensions you turn on.
Profiles
An agent is a Markdown file. Frontmatter picks the model and the tools. The body is the instructions. Chat, Developer, Code reviewer, and Sysadmin are included.
Delegation
Ask Chat as usual. It can hand a job to a specialist and use the result in its reply.
Project access
Developer reads and edits files and runs commands on this machine, over SSH, or in an offline Docker container. Edits and commands wait for your approval.
Routines
Schedule a prompt. Pipal runs it on the server while your browser is closed, and the reply lands in the same chat.
Web artifacts
Ask for a demo, a calculator, or a widget. Preview it in a sandboxed frame or download the HTML.
Extensions
Register a host tool and grant it to a profile. Add Svelte 5 components to the workspace, install a theme, or build your own client on the HTTP and streaming API.
Also included: web search, image and PDF attachments, passkey sign-in, chat search, and a cost report for each chat.
Run it on your own machine.
You need Node.js 26 and pnpm.
git clone https://github.com/PipalAI/pipal.git
cd pipal
pnpm install --frozen-lockfile
pnpm devOpen http://127.0.0.1:8080 and unlock the workspace with the token in data/access-token. To try it with no model account, choose Local echo. To use your ChatGPT plan, choose Connect ChatGPT in Settings.
- One user
- Listens on loopback only
- Token or passkey sign-in
- MIT license
For a server, the book covers Caddy and systemd on Linux.
Deploying Pipal, in the bookBuilt on Pi Durable.
Pipal is a Pi pal. Its base is Pi Durable, the durable agent harness from the Pi project.
Pi Durable commits conversations, model turns, and tool calls to storage before anything is shown. If the process dies mid-turn, reopening the storage picks the work up where it stopped. Pi AI calls the model.
Pi runs the conversation. Pipal makes it a workspace.
| Area | Pi gives | Pipal adds |
|---|---|---|
| Conversations | Transcripts, tasks, checkpoints, and recovery | Admission, retry checks, and run deadlines |
| Models | One interface for model providers, with streaming | Markdown profiles, a model picker, and ChatGPT sign-in |
| Tools | Tool calls, extensions, and hooks | Grants checked at every call, and routing to the project's location |
| Waiting | Parking, wake-ups, and signals | Approvals, delegation, routines, and workers |
| Access | A watch on each conversation | The HTTP API, the event stream, sign-in, and the Svelte workspace |