Skip to main content
Formation has three levels of configuration. Each setting lives at exactly one of them, and the level decides who can change it and how. Agents never read environment variables. There is no SLACK_BOT_TOKEN or per-agent key in the environment: agents, their connectors and their credentials are created at runtime and stored encrypted in PostgreSQL. Zero agents is the normal first-boot state.

Process settings

These have to exist before the process can start, or they describe the process itself, so they can only come from the environment:
  • DATABASE_URL: the PostgreSQL connection.
  • PUBLIC_URL: the externally reachable HTTPS base URL (see below).
  • MESH_AGENT_MASTER_KEY: the key that decrypts stored credentials. It must never be stored in the database.
  • HTTP_ADDR, MESH_ENV, MESH_AUTO_MIGRATE, MESH_TIMEZONE, MESH_TRUSTED_PROXIES, external sign-in (MESH_AUTH_*), telemetry (OTEL_*) and error tracking (MESH_ERROR_TRACKER*).
The installation guide lists every variable with its default.

Services a deployment can supply

Five shared services can come from either level. A deployment can supply them through environment variables (or, for a hosting control plane, through the management API), or an owner can enter their own during instance setup or later in Settings: During instance setup, every service the deployment already supplies is folded into one Provided by this deployment step, so a fully managed instance goes straight to creating its first agent. Each supplied service has a Use my own link that switches it to the owner’s account. A self-hosted instance with none of these variables walks through each step. See Instance setup. Settings sections that the environment can supply report which source is in effect: environment, database (saved by an owner), or unset. Error tracking and telemetry variables also always win over Settings → Observability. A setting the environment controls is shown read-only, and the API refuses to save a value that would be ignored.

Agent settings

Everything about an agent belongs to the agent: identity and profile, which models it uses, which conversations it joins, which tools and accounts it holds, its vault, schedules, memory and dreaming. An agent inherits the instance’s inference, execution and web infrastructure unless it is given its own. Website accounts, cookies, OAuth grants and service credentials are always the agent’s own and are never shared with another agent. The dashboard is for configuration. Day-to-day work happens in conversation: an agent asks for what it needs in plain language (a secret through a vault link, a drawing through a sketch, a decision through your application), and improves itself between conversations through dreaming without anyone reviewing its output.

Features that need a public URL

PUBLIC_URL is required at boot. It is the address Formation puts in every link and callback it hands out, so it only works if the people and services involved can reach it. These features depend on that: When a host provides your instance, its public URL is already set and reachable. When you host it yourself, put the instance behind a reverse proxy or platform that terminates TLS, set PUBLIC_URL to that origin, and make sure the people who will receive vault and sketch links can open it. A URL that only works inside your office network works only for people inside it.