Skip to content

Using Environments and databases

Ilia edited this page Nov 9, 2026 · 1 revision

Which database a feature uses is your machine's choice. The product names its environments in .sclaude/config.json, each as a .env file ("dev": {"env": ".env.dev"}). sclaude asks once which one this machine works against and remembers the answer; SCLAUDE_ENV overrides it. There is no default, because a wrong guess is a quiet mistake. A feature is never pointed at production.

On a local database, every feature gets its own. When the chosen environment is the product's local Supabase, each feature gets a Supabase stack of its own in Docker, filled from the main local database or the product's seed. It is removed with the feature. If Docker is not running sclaude starts it, and falls back to the shared local database, saying so, only when it cannot. The main local database is kept on main's migrations: sclaude applies what a merge brought at the end of the cycle and before each copy, and says so.

Every feature has its own address, http://<feature>.localhost:3000, printed at the start of each step. A feature nobody has opened for half an hour is stopped, database included (data kept), and starts again on the next visit.


Generated from docs/sclaude-guide.md; edit it there, then rebuild with wiki/build.py.

Clone this wiki locally