Reference

Configuration

~/.spendyard/config.toml, the environment variables Spendyard reads, and the files it keeps.

spendyard config init writes a commented starter file. spendyard config shows the settings in effect and which keys it found. Flags on a command win over the config.

config.toml

[extractor]
provider = "anthropic"            # anthropic | openai | gemini | openai-compatible | exec
model    = "claude-haiku-5-5"

[decider]
provider  = "clef-flash"          # clef-flash | clef | jev | systemone | exec | none
threshold = 0.85

[providers.openai-compatible]
base_url = "http://localhost:11434/v1"

[mailboxes.outlook]
client_id = "<your Entra app id>"

Keys

Keys come from the environment, never the config file. Spendyard also reads .env.local and .env in the current folder, then ~/.spendyard/.env; variables already set win.

Variable For
ANTHROPIC_API_KEY anthropic
OPENAI_API_KEY openai
GEMINI_API_KEY or GOOGLE_API_KEY gemini
OPENAI_COMPATIBLE_API_KEY openai-compatible, when the server wants one
CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID clef-flash and clef
TYPESAFE_API_KEY jev
SPENDYARD_CLOUD_URL Another Spendyard Cloud server for cloud login

Files

Path
~/.spendyard/config.toml Settings
~/.spendyard/spendyard.db Everything read: documents, readings, corrections, payments
~/.spendyard/originals/ Each document as it came
~/.spendyard/vendors/ Vendors you added to the catalog
~/.spendyard/.env Keys, if you keep them in a file
~/.spendyard/tokens.json Mailbox tokens, app passwords and the Spendyard Cloud token, readable only by you

SPENDYARD_TOKEN_STORE=keychain keeps the tokens in your OS keychain instead. On macOS the keychain asks again each time spendyard is updated, which is why it isn’t the default. Tokens an older spendyard kept in the keychain move to the file the first time they’re used.