# Settings

> Every setting in .env: what it does and its value when you leave it as it is.

<!-- Written by pnpm docs:reference. Don't edit: change .env.example and run it again. -->

A Weemuu install keeps its settings in `.env` beside the code. The installer writes it; you rarely need to touch it. Change one, then restart Weemuu.

| Setting | Value as shipped | What it does |
|---|---|---|
| `CREW_HOST` | `127.0.0.1` | crew-server |
| `CREW_PORT` | `3200` | crew-server |
| `CREW_DATABASE_URL` | `postgres://localhost:5432/crew` | crew-server |
| `CREW_TEST_DATABASE_URL` | empty | Database tests use <CREW_DATABASE_URL>_test (made by `pnpm bootstrap`); set this to use another. |
| `CREW_OWNER_PASSWORD_HASH` | empty | Set with `pnpm owner-password` (a scrypt hash, never the password itself). |
| `CREW_PUBLIC_URL` | empty | Where people open this Weemuu, such as https://team.example.com. Empty: the address saved in setup (the browser's first-run Address step). A value here wins and setup shows it as set in .env. |
| `CREW_CLI` | empty | The weemuu command's full path (the install writes it), for the https line setup shows the admin: sudo doesn't look in the user's own bin folder. Empty: this repo's scripts/enable-https.sh. |
| `CREW_COOKIE_SECURE` | empty | true when Weemuu is served over https. Empty: true exactly when the public address is https. Browser origins allowed to sign in, comma-separated. Empty: the public address and http://CREW_HOST:CREW_PORT when crew-server serves the built web app, else Vite's on 5173. For production (pnpm build, pnpm start) leave both empty. |
| `CREW_ALLOWED_ORIGINS` | `http://127.0.0.1:5173,http://localhost:5173` | true when Weemuu is served over https. Empty: true exactly when the public address is https. Browser origins allowed to sign in, comma-separated. Empty: the public address and http://CREW_HOST:CREW_PORT when crew-server serves the built web app, else Vite's on 5173. For production (pnpm build, pnpm start) leave both empty. |
| `CREW_AGENT_USER` | empty | A Weemuu with its sandbox off (the default) runs as this OS user, through sudo, with a clean env: it can't read Weemuu's keys. scripts/agent-user.sh (run once as root) makes it. Unset (dev): those runs are the current user's, with the same clean env. CREW_AGENT_HOME defaults to /home/<user>. |
| `CREW_AGENT_HOME` | empty | A Weemuu with its sandbox off (the default) runs as this OS user, through sudo, with a clean env: it can't read Weemuu's keys. scripts/agent-user.sh (run once as root) makes it. Unset (dev): those runs are the current user's, with the same clean env. CREW_AGENT_HOME defaults to /home/<user>. |
| `CREW_AGENT_CLAUDE` | empty | That user's own Claude Code, a full path (the sudoers line names it); empty: the same claude as Weemuu's. |
| `CREW_LEAN_REPO_REMOTE` | empty | Dev only: clone a project's repo owner/name from a local folder instead of GitHub, e.g. /srv/test-repos/{repo}. Leave empty on a real install. |
| `CREW_WEB_DIR` | `apps/web/dist` | The built web app crew-server serves at / (pnpm build makes it), relative to this folder. Without a build there, crew-server serves only /api and Vite serves the pages (pnpm dev). |
| `CREW_WEB_PORT` | `5173` | The web dev server's port (`pnpm dev`). Change it with CREW_ALLOWED_ORIGINS to run a second stack. |
| `CREW_LEAD_MODEL` | `claude-opus-5-5` | A Weemuu's runs and Weemuu's one-off calls (Show, the map's proposal): the model when an agent has none of its own, and how long a run may take. |
| `CREW_LEAD_TIMEOUT_MS` | `600000` | A Weemuu's runs and Weemuu's one-off calls (Show, the map's proposal): the model when an agent has none of its own, and how long a run may take. |
| `CREW_COFFEE_MODEL` | `claude-haiku-5-5` | The coffee machine on Home: one short no-tools run a morning writes the Weemuus' lines. |
| `CREW_REPOS_DIR` | empty | Where project repo folders may be (the architecture view reads them). Empty allows any folder but / and your home folder. |
| `CREW_SANDBOX_DIR` | empty | Connections: Connect GitHub makes a GitHub App from the page (no setting here); a pasted token is the fallback. New project from GitHub clones into CREW_REPOS_DIR (empty: <data folder>/repos). crew-sandbox, the only repo hired agents work in. `pnpm sandbox` clones it into CREW_SANDBOX_DIR. Empty means the user's data folder ($XDG_DATA_HOME/crew/crew-sandbox, else ~/.local/share/crew/crew-sandbox). It may not be inside this repo, whose .env holds Weemuu's settings. A trial runs only in a clone whose only remote is crew-sandbox. |
| `CREW_SANDBOX_REPO` | `https://github.com/tmlunde/crew-sandbox.git` | Connections: Connect GitHub makes a GitHub App from the page (no setting here); a pasted token is the fallback. New project from GitHub clones into CREW_REPOS_DIR (empty: <data folder>/repos). crew-sandbox, the only repo hired agents work in. `pnpm sandbox` clones it into CREW_SANDBOX_DIR. Empty means the user's data folder ($XDG_DATA_HOME/crew/crew-sandbox, else ~/.local/share/crew/crew-sandbox). It may not be inside this repo, whose .env holds Weemuu's settings. A trial runs only in a clone whose only remote is crew-sandbox. |
| `CREW_SECCOMP_APPLY` | empty | Linux only: apply-seccomp for Claude Code's sandbox (README, "How hired agents run"). Empty: setup's "Prepare this server" installs a pinned copy into the data folder. Without one, no hired agent starts on Linux. |
| `CREW_ACCOUNT_URL` | empty | Invite sign-in (part 8b): weemuu.com's central sign-in hands people to this install with a signed token. CREW_ACCOUNT_KEY is its public key (`pnpm --filter @workforce/account cli key`); empty: invites are off and only the owner's password signs in. CREW_ACCOUNT_URL defaults to https://weemuu.com (dev: http://localhost:4400). |
| `CREW_ACCOUNT_KEY` | empty | Invite sign-in (part 8b): weemuu.com's central sign-in hands people to this install with a signed token. CREW_ACCOUNT_KEY is its public key (`pnpm --filter @workforce/account cli key`); empty: invites are off and only the owner's password signs in. CREW_ACCOUNT_URL defaults to https://weemuu.com (dev: http://localhost:4400). |
| `ACCOUNT_PORT` | `4400` | weemuu.com's sign-in (apps/account; README "weemuu.com sign-in"). Its own database and data folder (the vault key for its signing key and Google's client secret). ACCOUNT_FAKE_GOOGLE=<port> runs a stand-in for Google on this machine (dev only, refused on a real address). |
| `ACCOUNT_PUBLIC_URL` | `http://localhost:4400` | weemuu.com's sign-in (apps/account; README "weemuu.com sign-in"). Its own database and data folder (the vault key for its signing key and Google's client secret). ACCOUNT_FAKE_GOOGLE=<port> runs a stand-in for Google on this machine (dev only, refused on a real address). |
| `ACCOUNT_DATABASE_URL` | `postgres://localhost:5432/weemuu_account` | weemuu.com's sign-in (apps/account; README "weemuu.com sign-in"). Its own database and data folder (the vault key for its signing key and Google's client secret). ACCOUNT_FAKE_GOOGLE=<port> runs a stand-in for Google on this machine (dev only, refused on a real address). |
| `ACCOUNT_DATA_DIR` | `.data/account` | weemuu.com's sign-in (apps/account; README "weemuu.com sign-in"). Its own database and data folder (the vault key for its signing key and Google's client secret). ACCOUNT_FAKE_GOOGLE=<port> runs a stand-in for Google on this machine (dev only, refused on a real address). |
| `ACCOUNT_FAKE_GOOGLE` | empty | weemuu.com's sign-in (apps/account; README "weemuu.com sign-in"). Its own database and data folder (the vault key for its signing key and Google's client secret). ACCOUNT_FAKE_GOOGLE=<port> runs a stand-in for Google on this machine (dev only, refused on a real address). |
| `ACCOUNT_MAIL` | `log` | weemuu.com's sign-in (apps/account; README "weemuu.com sign-in"). Its own database and data folder (the vault key for its signing key and Google's client secret). ACCOUNT_FAKE_GOOGLE=<port> runs a stand-in for Google on this machine (dev only, refused on a real address). |

Source: https://docs.weemuu.com/reference/settings/
