Coding agents

Settings and files

Environment variables for the Usercase MCP, and the files it keeps in your repository.

Environment variables

Pass them with claude mcp add ... -e NAME=value, codex mcp add ... --env NAME=value, or the env block of your MCP settings.

NameWhat it does
USERCASE_API_KEYA project API key, instead of connecting in the browser. Used before a saved connection.
USERCASE_AGENT_KEYYour firewall secret, 16 characters or more. See Production sites.
USERCASE_ALLOW_WRITE_PATHSComma-separated path patterns where non-GET requests are allowed, for sites that load pages with POST after sign-in. Everything else stays blocked.
USERCASE_DIAGNOSTICSoff stops sending diagnostics. On by default.
USERCASE_HEADED1 shows the visitors’ browser on screen.
USERCASE_DIRWorking folder. Default: .usercase in your repository.

Files it creates

In .usercase/ in your repository:

FileWhat it is
people.jsonThe virtual users. Edit them freely, and commit it if you want to reuse them.
settings.jsonWhether visitors may send writes to your site.
runs/Visit records.
sessions/One sign-in session per demo account.
paths/Screenshots of the expected paths your agent recorded, one folder per task.
outbox.jsonlVisits waiting to be sent, if an upload failed.

runs/ and sessions/ are git-ignored by a .gitignore inside the folder.