MANAGE SERVE FEDERATION MEMBERS
This guide covers the day-to-day work on a hub: watching members, removing them, bringing them back and moving them between hubs.
Note
Preview. Serve federation is a preview feature: no flag turns it on, and its commands and the serve-hub app may change in later releases. Every serve and every CLI that uses it must run Swamp 20261129.160739.0 or later.
Run the commands on the hub, or from anywhere with --server and a token.
Listing and getting members needs read on access:swamp/federation; tokens
and removal need admin.
Watch members
swamp serve member listNAME ROLE STATUS LAST SEEN INSTANCES SWAMP JOINED
central hub online 11s ago 1 20261129.213627.0-sha.b1e10d9f 2026-11-29T23:49:17.433Z
edge-1 member online 9s ago 1 20261129.213627.0-sha.b1e10d9f 2026-11-29T23:49:45.149Z
edge-2 member stale 2m ago 0 20261129.213627.0-sha.b1e10d9f 2026-11-29T23:50:07.627ZINSTANCES counts live instances. A member checks in every 30 seconds:
| Status | When |
|---|---|
online |
Checked in within three check-in intervals |
stale |
No check-in for three intervals, about 90 to 120 seconds |
offline |
No check-in for 10 minutes |
removed |
Removed with swamp serve member remove |
For one member's fingerprint and instances:
swamp serve member get edge-2Member: edge-2 (member)
Status: online
Member id: db82931a-6a83-4e20-a91c-26383b4fe240
Joined: 2026-11-29T23:50:07.627Z
Fingerprint:
Swamp version: 20261129.213627.0-sha.b1e10d9f
Platform: darwin/aarch64
Mode: local
Datastore: filesystem (v2)
Auth mode: none
Instances:
7a8c4a9b-ca1c-43c5-bbbe-a0656352ddf0 (swamp 20261129.213627.0-sha.b1e10d9f, first seen 2026-11-29T23:50:07.644Z)
Live:
Last seen: 4s ago (2026-11-29T23:50:07.644Z)
7a8c4a9b-ca1c-43c5-bbbe-a0656352ddf0 live 4s ago (single of 1, started 2026-11-29T23:50:07.530Z, ready)Each instance under Live is live, stale or offline. Relative times are
read against the hub's clock, so clock skew on your machine does not change
them.
Remove a member
swamp serve member remove edge-2✓ Member edge-2 removed.
Its credential no longer checks in; the record is kept, marked removed.remove does not ask for confirmation. The member's credential stops working at
once, and its record stays on the hub with status removed. Always remove a
member this way, never by deleting its data on the hub.
On the member, swamp serve hub then shows the link as refused, and its
check-ins stop.
Rejoin after removal
A removed member joins the same hub again with a new token:
On the hub, mint a token for the member's name:
swamp serve member token create edge-1
On the member, write it to the token file its
serve.yamlalready names, replacing the old token.Restart serve on the member. The serve log records
Joined hub "central" as member "edge-1", andswamp serve member listshows itonlinewith a newJOINEDtime.
Move a member to another hub
A member belongs to one hub. To move it:
Remove it on the old hub:
swamp serve member remove <name>.Stop serve on the member.
On the member, forget the old link:
swamp serve hub forget --yes✓ Forgot the link to http://localhost:19600 as edge-2, and its credential. Run swamp serve hub join <hub-url> --token-file <path>, then start serve, to join a hub again.Delete the
federationblock from the member'sserve.yaml.Mint a token on the new hub and save it on the member.
Run
swamp serve hub join <new-hub-url> --token-file <path>.Start serve.
forget is refused while any instance of the member checked in within the last
2 minutes:
Error: A serve for this repository checked in within the last 2 minutes (1 instance). Stop it first. If it stopped without shutting down, wait 2 minutes and retry.A serve that shut down cleanly does not block it.
Revoke an unused token
swamp serve member token revoke edge-1✓ Join token edge-1 revoked.revoke takes the member name. Only an unused token can be revoked:
Error: Join token for 'edge-1' is used; only an unused token can be revokedTo stop a member that already joined, remove it instead.
Known limits
forget's 2-minute window is measured with check-in times written by the member's serve, so clock skew between hosts shifts it.swamp serve hub forget --config <path>still reads the vault key from the defaultserve.yaml.- A token spent before Swamp recorded when a join was admitted still re-admits
its member after that member's data is deleted. Removing members with
swamp serve member removeavoids this.