- How you use it
- A setting in your project
- What it can do
- installs software · writes files · network · secrets access · runs shell
- What's inside
The option
| Option | AConfig · v2.121.0+wwfix.1Supabase CLI 2.121.0 with the experimental stack flag |
|---|---|
| How you use it | A setting in your project |
| What it can do | installs software · writes files · network · secrets access · runs shell |
| What's inside |
What this thread does
As of November 2026, use one experimental Supabase stack per worktree; choose Docker or Podman for several projects on one laptop. Do first: enable [experimental] stack = true and remove fixed ports, following the setup guide. Read the v3 upgrade caveats below before updating scripts.
What changed
Supabase announced on 2 Oct 2026 that local development got better for agents, and explained it in a blog post on 14 Oct. The parts that matter for parallel agents:
- One local stack per worktree. With the experimental stack flag on,
supabase startin each git worktree creates a separate stack (Postgres, Auth, REST, Storage, Edge Functions, Studio and an MCP endpoint) on ports the CLI assigns, so two agents can run migrations and tests at the same time. - No Docker needed.
supabase start --runtime nativeruns the services as plain processes. Without a flag, the CLI uses Docker if it answers, then Podman, then native where supported. - Connection details for agents.
supabase stack status --envprints the URLs and keys for this worktree's stack, so an agent reads them instead of assuming port 54321. - Declarative schemas. The agent edits schema files and the CLI generates the migration.
How to turn it on
- New project:
SUPABASE_EXPERIMENTAL_STACK=1 supabase initwrites the flag and leaves out the fixed default ports. - Existing project: add
stack = trueunder[experimental]insupabase/config.toml, and remove fixed ports you set there, or every worktree will ask for the same port.
Then per worktree: git worktree add ../app-billing -b billing, cd ../app-billing, supabase start.
When to use it
You run several coding agents in worktrees of one Supabase app and they keep fighting over one local database. For a single agent, the default setup is fine.
Alternatives
- Supabase branching (remote preview branches) when you want a hosted copy per PR.
- Neon branches or a Postgres container per worktree via Docker Compose with per-worktree ports.
- A cloud machine per agent (Amp orbs, Claude Code cloud sessions, Cursor cloud agents), which avoids sharing anything locally.
Caveats (as of October 2026)
- The stack runtime and
supabase stackcommands are experimental and outside the CLI's compatibility promise; commands may change. - Native runtime: Linux (x64/arm64, glibc 2.35+) and macOS 14+ on Apple silicon only.
- Each stack uses memory; Supabase quotes about 290 MiB idle per project in its post, so many parallel stacks still add up.
supabase stack destroypermanently deletes a stack's data.- The MIT licence file sits in the repo's Go CLI folder; the npm package is also labelled MIT.
CLI v3 upgrade caveats (2 November 2026)
Supabase CLI v3.0.0 retains the experimental stack. The v2-to-v3 guide changes defaults around it:
- Local-capable database, migration, inspection, type-generation and storage commands now default to the local stack.
SUPABASE_PROJECT_IDalone no longer selects a hosted target; use an explicit--remotetarget for hosted work. Old--linked,--project-ref,--db-urland type-generation--project-idaliases warn and are hidden from help;--localis a warning-only no-op. - Hosted mutations require confirmation and unattended mutations require
--yesor a shell-exportedSUPABASE_YES=1(only if no project env file definesSUPABASE_YES); pipingyor relying onSUPABASE_YESin a project env file no longer confirms them. Review the target before authorizing a hosted change. JSON object results and JSON error envelopes now include atargetfield; arrays and generated artifacts such asgen typesoutput are unchanged. - Precedence is flags, shell environment, project env files, config, defaults. Audit
SUPABASE_*values beforeconfig push. Stop the old stack before upgrading ifproject_idis absent, because local container/volume naming changes. - Removed legacy commands/config keys fail: examples include
db branch(use hostedbranches),gen keys(useprojects api-keys),[inbucket](use[local_smtp]), LinkedIn/Slack auth providers (use their_oidcnames), and per-functionimport_map.json(usedeno.jsonor explicit config). The bundledsupabase-gobinary is gone. See the migration guide's full removal tables before upgrading an older project. [auth.sms] enable_confirmations = falsenow actually disables phone confirmation on config push. Set it to true to retain phone codes and inspectconfig difffirst.
The current multiple-project guide still supports supabase stack status --env; top-level supabase status is an alias when the experimental flag is enabled. Native is best scoped to one project per sandbox; Docker supplies the network/filesystem isolation for several local projects, as the original blog explains.
Not for: cross-tenant RLS tests or one shared test DB file lock
checked 2026-11-03
Started from a post by @supabase, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.