https://github.com/pythononwheels/lapsus-server
LAPSUS coordinator — the thin p2p server: discovery, WebRTC signaling, Compute-Credit ledger. Never sees your prompts.
https://github.com/pythononwheels/lapsus-server
Last synced: 5 days ago
JSON representation
LAPSUS coordinator — the thin p2p server: discovery, WebRTC signaling, Compute-Credit ledger. Never sees your prompts.
- Host: GitHub
- URL: https://github.com/pythononwheels/lapsus-server
- Owner: pythononwheels
- License: agpl-3.0
- Created: 2026-06-27T18:07:43.000Z (10 days ago)
- Default Branch: main
- Last Pushed: 2026-06-27T21:32:47.000Z (10 days ago)
- Last Synced: 2026-06-27T22:10:20.500Z (10 days ago)
- Language: Elixir
- Size: 432 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

**Community-powered local AI p2p network**
LAPSUS coordinator
The thin server that introduces peers — it never sees your prompts.
---
This is the **LAPSUS coordinator** — the thin server that makes the peer-to-peer
network work. It does three things and nothing more:
- **Discovery** — online peers announce the models they share (with context length + multimodal capability).
- **Signaling** — relays WebRTC offer/answer/ICE so two peers can open a direct channel.
- **Credits** — books mutually-signed receipts into a Compute-Credit ledger (SQLite).
It **never sees prompts or answers** — those flow directly peer to peer over an
encrypted channel. The client app lives in
[lapsus-app](https://github.com/pythononwheels/lapsus-app).
## Run a coordinator
```bash
cp .env.example .env # set SECRET_KEY_BASE (mix phx.gen.secret) and PHX_HOST
docker compose -f docker-compose.prod.yml up -d --build
curl http://127.0.0.1:4000/health # → ok
```
Put it behind a TLS reverse proxy that upgrades WebSockets (e.g. Caddy:
`reverse_proxy localhost:4000`). Agents then connect at `wss://`, and
the static homepage is served from `web/`. The credit ledger is a SQLite DB on a
named volume — back it up.
## What's inside
- `apps/lapsus_coordinator` — Phoenix app: discovery, signaling relay, ledger.
- `apps/lapsus_core` — shared identity (Ed25519, self-authenticating peer IDs),
Compute-Credits, mutually-signed receipts.
- `web/` — the public homepage (static).
Anyone can run a coordinator — that's the point. Run your own, or join the one at
`lapsus.pyrates.io`.
## License
[AGPL-3.0](LICENSE). Network copyleft — run a modified version as a service, share
your source. A commons, not a land-grab.