Easy interprocess communication for programs, people, and agents.
What would make it pleasant and predictable for programs (and agents) to communicate?
- Programs come and go... so message channels should outlast them
- Machines crash... so channels should live on disk
- Disks are finite... so channels should have a bounded size
- Brokers bring complexity and ceremony... so local messaging shouldn't need one
- People need to see what's happening... so messages should be plain JSON
- Schemas are great... but schemas should be optional
So, there's Plasmite.
Programs and scripts (shell, Rust, C, Python, Go or JS) send JSON messages into a channel called a pool. A pool is a ring buffer on disk: it keeps the most recent messages and overwrites the oldest when it fills. Three verbs, in the CLI and every library:
feedsends a messagefetchreads what's already in the pool, then stopsfollowwaits for new messages (liketail -f)
On the command line, pls is short for plasmite, and pls on its own lists your pools.
Read down: each row happens after the one above.
| Alice in Terminal 1 | Alice in Terminal 2 | |
|---|---|---|
| 1 | Creates a message poolpls pool create channel |
|
| 2 | Starts watchingpls follow channel |
|
| 3 | Sends a messagepls feed channel '{"msg":"hello world"}' |
Sees it14:02:11 #1 {"msg":"hello world"} |
The message stays in the pool, so a later reader can fetch it with pls fetch channel --last 1. To pick up after a restart, save the sequence of the last message you handled and follow from the next one. If you saved sequence 42, run pls follow channel --since 43. See the restart recipe. The API examples show the same workflow in each language.
Remote pools take the same commands as local ones.
| Alice in Terminal 1 | Alice in Terminal 2 | Bob (another machine) | |
|---|---|---|---|
| 4 | Starts the server in the backgroundpls serve https://alice.local:9743 & |
||
| 5 | Invites Bob, then sends him the address and keypls access invite Bob |
||
| 6 | Connects, pastes in the key, and then watchespls access connect https://alice.local:9743pls follow https://alice.local:9743/channel |
||
| 7 | Sendspls feed channel '{"msg":"hi all"}' |
Sees it14:03:05 #2 {"msg":"hi all"} |
Sees it14:03:05 #2 {"msg":"hi all"} |
Bob can also browse the pools at https://alice.local:9743 once his browser trusts Alice's certificate. See the serving guide.
Connect an agent team in three steps. Commands for Claude Code, Codex and OpenCode
- Register Plasmite as an MCP server in each client with
uvxornpx. - Give each agent the same pool name and a short coordination block in
AGENTS.mdorCLAUDE.md. - Watch the conversation with
followor open the pool in your browser withserve.
Give your coding agent this line to set up Plasmite and watch its progress in the browser:
Set up Plasmite for this project using https://github.com/sandover/plasmite/blob/main/docs/setup-with-an-agent.md
The guide starts with a cached runner such as uvx --from "plasmite>=2,<3" plasmite or npx -y plasmite@2. Run without installing
On a trusted network, Alice's server can also take UDP datagrams. A UDP sender fires off a message and moves on, where HTTP waits for the server to confirm the write. That suits sensors and other chatty senders that can live with an occasional lost message.
kill %1 && pls serve https://alice.local:9743 --udp=0.0.0.0:9701 & # Alice restarts her server with UDP on
pls feed udp://alice.local:9701/channel '{"temp_c": 21.4}' # BobA pool is a .plasmite file in ~/.plasmite/pools/ by default. Any number of programs can feed and follow the same pool.
Every message has four fields:
data: your JSON payloadmeta: labels you attach with--tagand the sender name when you write with a server access keyseq: message index, counting up from 1time: when the pool stored it
fetch and follow can start wherever:
pls fetch channel --last 5 # the last 5 messages, then stop
pls follow channel --since 10m # the last 10 minutes, then keep waitingPipes just work. Pipe fetch or follow into feed to copy messages between pools, tags and all. jq and similar tools work great.
Use Plasmite when programs or agents need to share small, structured messages and catch up after a restart. A pool keeps recent messages in a fixed-size file. Programs on the same machine open the file directly, and programs on other machines connect through a Plasmite server. The cookbook shows agent handoffs, CI gates, sensor feeds, and replay.
Fast, small and quiet. Measured through the local APIs on an Apple M5 Pro Mac, with a 2.0 development build and medians of seven runs:
| Language | Publish small messages (msg/s) | Peak memory while publishing |
|---|---|---|
| Rust | 404,900 | 17 MiB |
| C | 309,200 | 18 MiB |
| Go | 213,800 | 28 MiB |
| Python | 90,600 | 40 MiB |
| JavaScript (Node) | 84,800 | 67 MiB |
Delivery is quick: at 250 messages per second with 1 KiB payloads, a message reached one reader in 0.13 ms and four readers in 0.19 ms (median p95), and every reader got every message. A reader waiting on a quiet pool uses under 0.1% of one CPU core.
See the live-stream measurements and the full 2.0 benchmarks, including replay.
brew install sandover/tap/plasmiteInstalls the CLI (plasmite + pls) and the full SDK (libplasmite, C header, pkg-config). Go links against this SDK, so install it first if you use Go.
uv tool install plasmite # CLI
uv add plasmite # library, in a uv projectWheels for macOS, Linux x86_64 and Windows x86_64 bundle the CLI and native library.
npm i -g plasmite # CLI
npm i plasmite # libraryNeeds Node.js 24 or newer, on macOS, Linux x86_64 or Windows x86_64.
cargo install plasmite # CLI
cargo add plasmite # librarygo get github.com/sandover/plasmite/bindings/go/v2@v2.0.0GitHub Releases has archives of the CLI and SDK for macOS and Linux, including preview builds for Linux ARM and Raspberry Pi. See the distribution guide for every platform.
Upgrading from 1.x? See the 2.0 upgrade guide.
pls --help lists every command; pls COMMAND --help lists its options.
- Cookbook: task-by-task recipes.
- Plasmite for agents: connecting agents, handoffs and instructions to paste into
AGENTS.md. - Performance reports: local, HTTP, UDP and MCP measurements.
- CLI guide: pool references, input and output formats, exit codes.
- Libraries: Rust, Python, Node, Go, C.
- Serving guide: HTTPS, access keys, browsers, MCP, UDP, running at boot.
- Specification: the exact contract for the CLI, libraries, HTTP, UDP, and MCP.
- Changelog. Contributors: see
AGENTS.mdand the release process.
Inspired by Oblong Industries' Plasma.
MIT. See THIRD_PARTY_NOTICES.md for vendored code.