goldberry

All docs ↓

API tokens

Tokens let scripts and AI tools use Goldberry as a parent. They are the credential for the JSON API and the MCP server (ADR 0015, ADR 0016).

Make one

  1. Sign in as a parent and open People → your name.
  2. Under API tokens, give it a label (where it will be used) and tick what it may do.
  3. Copy the token when it appears. It is shown once and can't be recovered; only a hash is kept. Make a new one if you lose it.

Tokens start with gb_. Send one as Authorization: Bearer gb_….

What a token can do

Scope Allows
read Balances, history, goals. Every token has it.
write Change jars and goals. Does not move money.
money Add, remove and reverse ledger entries. Does not include write.

Give an AI tool read first. Add money only for a tool you trust to post entries.

Ownership and revoking

Backups

Tokens are credentials, so goldberry export leaves them out, as it does sessions. After a restore, make new tokens.

View this page on GitHub