Repository navigation
Using Environments and databases
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.
SClaude is open source under MIT · Repository · Landing page · Contact
Why
How it works
- The cycle
- Big features in parts
- Limits in code
- Fewer tokens
- Feedback loops
- Metrics and the replay
- For a team
- Working from the phone
- Stack and costs
- Privacy
Guide
- Getting started
- Setting up
- Using sclaude
- The config, key by key
- When something goes wrong
- Glossary
- Gates and rules
- Team setup
- Privacy in full
- The tools
- Decks and the map
- Contributing
Inside
Links