Use the hosted forge from a shell
Everything an account does on forge.loot.build has a verb that a key signs, so a shell with no browser can get in, work and leave. That includes an AI agent. Every verb here takes --json, and a refusal carries a code: Exit codes lists them.
Run loot by the path the installer printed as LOOT_BIN=. Its PATH change reaches only shells started afterwards, so a process that was already running does not see it: Install has the rest.
Get admitted
The forge is invite-only: it answers a key its door admits, and 403 not_allowlisted to any other. Its operator sends you an invite, one line that starts loot-invite1., or admits your key once you send them loot whoami --pubkey.
loot init --identity alice # a repo, and the key that acts for you loot door redeem <invite> # the forge the invite names admits this key loot door request --note "<who and why>" # no invite: ask; run it again to read the answer
None of these verbs needs the forge's address. A verb that acts at a forge takes the one the repo's remote is on, else the one an invite admitted the key at, else forge.loot.build; pass an address to name another.
Open an account and sign in
loot account open # a keyed account on the Free plan loot login --json # signs in by the key: no code, no passphrase loot push # to https://forge.loot.build/k/<your key>/<directory>
A keyed account has no email and no password. Its live keys are its whole authority, so a lost key is a lost account: keep a locked copy with loot id export, or add a second key. loot account open refuses with not_admitted until the door admits the key. loot login adds the forge as origin, named for the repo's directory, and the first push makes the repo. loot account shows the account and its keys, and loot account handle <name> claims a handle others can name you by.
An account a person signed up for in a browser signs the CLI in with a code instead: loot login prints it, and the person approves it on the forge's /device page.
Repos and members
loot member add <key-or-handle> # they read this repo's ciphertext loot member list --json loot member remove <key-or-handle> loot propose --door open # members, and with public metadata anyone, may propose loot repo metadata public --allow-publish # anyone reads its history and may propose loot account watch on # be told of proposals to this repo loot account notify # what the forge emails this account about loot account inbox --json # what others did, each event once: a keyed account's mail
A member reads ciphertext and is handed no key: Share a private file with a teammate does that. Past the plan's cap, loot member add refuses with over_plan and removes no one. A repo you cannot read answers not_found, as one that is not there does.
The plan
loot plan --json # the plan, what it bounds, and where the account stands loot plan upgrade # the checkout address where the paid plan is paid for loot plan request --note "<who and why>" # where no plan is sold: ask the operator for a grant
loot plan upgrade charges nothing. Paying is a person's act at the address it prints, and loot plan shows the new plan afterwards. A forge that sells no plan answers billing_unavailable, and its operator grants plans instead: loot plan request asks, and run again reads granted once they have.
Keys for agents, runners and other machines
loot account add-key <key> # another machine's key joins the account loot account rotate # a new key for the account, this repo and this machine loot account retire-key <key> # never the last one: last_key
On the other machine, loot login then signs in by its own key. A key scoped to part of one repo is an agent key: Give an AI agent part of a repo.
Leave
loot repo delete # ask; --status reads how it stands, --cancel takes it back loot account delete # the account with its repos; --cancel takes it back
Nothing is deleted by asking. The forge carries a request out itself, between 24 and 48 hours after it was signed, and a deletion cannot be undone. The door's row that admitted the account stands; a key added since is admitted no longer.
As the forge's operator
loot door invite --uses 3 --days 7 # one line that admits three keys loot door admit <key> # admit one key yourself loot door list --json # the keys and invites, and what is spent loot door requests --json # the keys asking to be admitted loot plan requests --json # the accounts asking for a plan loot door revoke <key> # the forge refuses it from the next request loot plan grant <key> pro --days 30 # that key's account is on Pro with no purchase loot plan grants --json # every grant: standing, ended or revoked loot plan revoke <key> # the account is back on the plan it pays for