diff --git a/docs/swarm/ui.md b/docs/swarm/ui.md index 6c8d5f58..1bf48bbd 100644 --- a/docs/swarm/ui.md +++ b/docs/swarm/ui.md @@ -19,6 +19,27 @@ Everything it shows comes from [`swarm-controller`](../../swarm-controller/READM An agent created here or with `swarmctl agent create` starts `paused`; set it `up` from its card. +### Linking external accounts + +Each agent on `/agents` opens two dialogs that write a credential for it +into the swarm secret store through swarm-controller. Both are blind +set/update actions: no route lists linked accounts or hands a token back. + +- **link a matrix account** — `PUT /api/hives/{hive}/agents/{agent}/matrix-accounts/{account}`, + either a pasted bearer token or a user id + password that + swarm-controller logs in with, storing the token it gets back. +- **link a forge account** — `PUT /api/hives/{hive}/agents/{agent}/forge-accounts/{label}` + with a forge URL and an access token, stored at + `swarm/agents//forge/