piagent_
← ~/map

$ cat ~/map/pi-chat.md

Pi Chat

Minimal local browser chat for pi: streaming replies, persistent sessions, and in-pi launching via /pi-chat-start.

tools✓ Sep 14

Facts

repository
github.com/ManuelSelch/pi-chat ↗
GitHub Stars
★ 1
Forks
0
license
—
npm / mo
—
last push
Oct 15, 2026

install

npm install then npm run dev (the server binds to the machine's loopback interface only); link extension/pi-chat.ts into ~/.pi/agent/extensions for the in-pi slash commands

## TL;DR

A minimal local browser chat driven by the existing Pi SDK, credentials, tools, and persistent sessions, streaming replies over a typed WebSocket protocol.

## Key points

## FAQ

Q Where do sessions and credentials live?

In pi's normal places — the first prompt creates a standard persistent session file, and existing credentials and configuration load from the normal Pi agent directory; the browser only talks to the local server.

Q Does the browser talk to Pi SDK types directly?

No — Pi SDK event shapes do not cross the network boundary; the server maps them onto a typed WebSocket protocol, and a fake runtime adapter covers deterministic transport tests.

## References

## Related entries

## Guides

Last updated: Sep 14, 2026