Skip to main content
Mobster reads its settings from environment variables. Keep them in an env file and point Mobster at it, so keys stay out of your shell history, your repositories and your screenshots.

Env files

An env file has one KEY=VALUE per line. Blank lines and # comments are skipped, an export prefix and surrounding quotes are removed, and a variable already set in your environment wins over the file. A line Mobster can’t read is skipped, and Mobster prints its line number, never its text, to stderr.
~/.config/mobster/agent.env
Mobster loads one file:
  • the one you pass with --env-file PATH, or
  • $MOBSTER_ENV_FILE, for every command except serve. Set it in ~/.zshrc and you never need --env-file.
Mobster never loads a file on its own. A file you name that doesn’t exist is reported on stderr. mobster mcp gives it as the reason smart is off. Mobster for Mac keeps its own file at ~/Library/Application Support/app.mobster.desktop/agent.env. To share keys with it, point MOBSTER_ENV_FILE at it. That file holds the app’s settings, not its keys: on a Mac, the keys and the alert webhook’s address it saves are in your login Keychain, and the file has the line MOBSTER_SECRETS_IN_KEYCHAIN=1. A key an older version left in the file moves to the Keychain the next time Mobster reads the file. Any other file you pass is never changed.
Make the file readable by you only: chmod 600. Never commit it, and never put a key in a config file that lives in a repository.

Environment variables

Keys and models

Models and keys says which command needs which key.

The phone and the service

Settings the app saves

Mobster for Mac writes these when you change a setting, and the terminal UI changes the first two the same way. Each takes effect from the next task.

Schedules and alerts

Files and folders

Other MOBSTER_* switches exist for A/B tests and debugging, such as MOBSTER_GLIDE, MOBSTER_HEDGE and the MOBSTER_CTX_* context marks under measurement. Everyday use needs none of them.

Project policy file

.mobster/policy.yaml sits in a project’s folder beside its checks and workflows, and Mobster reads it when a task starts. It says where Mobster asks first in that project. It can only add questions: Approvals and safety says how it meets your permission mode. It is read only while MOBSTER_POLICY=on.
.mobster/policy.yaml
The kinds: An act that fits two kinds, such as subscribing, is in both, so a rule on either reaches it. Mobster refuses a key it doesn’t know, a window with a bad time, and a window or max_per_day on a rule that asks, and says which rule has the mistake. Until you fix the file, every act in the project asks. A file that is a link, or over 64 KB, is refused the same way. The day’s counts are in policy-counts.json beside the task journal.

Spend caps

A cap stops a task before its next model call once the task’s priced spend reaches it, and the task ends with status spend_cap. When a provider doesn’t report a price for a call, it’s counted as unpriced and shown beside the total (+1 unpriced), never as free. A model with no listed price, such as one billed at your provider’s own rates, counts at the highest listed price while a cap is set. The cap then stops the task early rather than never, and the task’s reason says so (Mobster has no price for <model>, so it counted the highest listed price). The task’s cost still shows as unpriced.

Where Mobster keeps files

A source checkout and a dev window never read or write the installed app’s folder. Their Keychain items have their own service names too (app.mobster.desktop.connectors.dev2, say), so a checkout can’t read or replace the app’s tokens. Only the phone locks (device-leases/), the compiled helpers and mobster sim’s simulators stay shared, because one phone has one driver. Journals hold your task text and what Mobster read on the screen. They’re private to your user account. Don’t commit or share them.