mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-12-01 01:14:47 +00:00
New hub Sessions entry that opens the c0mpute network (free-tier AI chat on open models) inside the member's pod, never on the BBS host: - pods/Containerfile installs the c0mpute client stack (c0mpute binary, pinned bun, signed c0mpute-tui) via the official installer with --no-start and no peers, under /opt/c0mpute, linked onto PATH. unzip added (bun ships as a zip; without it the installer silently skipped the TUI). The build now fails if the TUI or bun is missing, and drops the installer's build-time config so no node identity ships in the image. - pods/agentbbs-c0mpute signs the member in to their own c0mpute account on first use (device code; free account = free tier), then runs `c0mpute chat`, or `c0mpute tui` for operators. The key persists in /home/dev. - Gated like the pod Shell: members only, verified email, pods available. Tested: slim image with the same layer on ubuntu:26.04 builds; as uid 1000 with an empty home the launcher shows the c0mpute.com/cli/approve device code, and `c0mpute tui` renders (Chat/Jobs/Node/Network/Settings/Fleet). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.1 KiB
3.1 KiB
Pods Addendum (PRD v0.1 → v0.2)
Added after the initial PRD draft: a personal Linux pod product alongside the BBS, with SSH-username routing and a paid membership.
SSH routes
| Command | What happens |
|---|---|
ssh bbs@profullstack.com |
BBS hub as a guest (aliases: play@, guest@) |
ssh <name>@profullstack.com |
BBS hub as a member/agent (SSH key required) |
ssh join@profullstack.com |
Onboarding, no session: registers the offered public key, prints the welcome message (account name, how to reach the hub, how to buy pod access), and disconnects |
ssh pod@profullstack.com |
Personal Linux pod — paid members only |
The pod
A user's own container where they can run what they like — without root on the host OS.
- Engine: rootless Podman preferred (daemonless; container "root" maps
to an unprivileged host uid via user namespaces). Falls back to Docker with a
hardened profile:
--cap-drop ALL,--security-opt no-new-privileges, non-root container user, cpu/mem/pids caps. - Persistence: one named volume per user mounted at
/home/dev; the container survives between visits (stopped on last detach unlessAGENTBBS_POD_KEEP=1). - Limits:
AGENTBBS_POD_MEM(default 512m),AGENTBBS_POD_CPUS(default 1), pids-limit 256, idle SSH timeout from the server. - Identity: the SSH key fingerprint is the account;
pod@looks the key up and refuses unregistered keys with a pointer tojoin@. - c0mpute network: the pod image ships the
c0mputeclient andc0mpute tui(client only, no worker). The hub's Use c0mpute network entry runs/usr/local/bin/agentbbs-c0mputein the member's pod: on first use it signs them in to their own c0mpute account (device code, approved on c0mpute.com; a free account chats on the free tier), then opensc0mpute chat. Operators (AGENTBBS_ADMINS) getc0mpute tuiinstead (chat, jobs, network, settings). The sign-in key lives in the member's/home/dev, so it is a one-time step, and nothing runs on the BBS host.
Membership & CoinPay
Pod access costs $1/mo, paid via the CoinPay CLI (the default LogicSRC payment plugin).
Flow:
ssh join@profullstack.com→ account is created from the SSH key; the message includes a unique payment reference and the exact command:coinpay pay --to profullstack --amount 1 --currency USDC --memo <ref>- User pays with the coinpay CLI.
ssh pod@profullstack.com→ the server checks the subscription (pod_subscriptions.paid_until); if unpaid it attempts one CoinPay verification, then either admits or prints payment instructions and disconnects.
Integration knobs (so the deployed CoinPay surface can evolve without a rebuild):
AGENTBBS_COINPAY_PAY_TMPL— pay-command template shown to users (%s= payment reference).AGENTBBS_COINPAY_VERIFY_CMD— verifier command template; exit 0 = paid.agentbbs grant-pod <user> <months>— manual/ops grant path.
The payment reference is HMAC-derived from the user's key fingerprint, so CoinPay memos reconcile to accounts without storing payment details.