Recommended command
For macOS, Linux, WSL, and Git Bash environments, use the universal installer:Cloud vs local
What runs locally
Local mode installs or verifies a versioned local backend artifact under:
The installer prints the local dashboard URL and the local Convex admin key after setup. The dashboard is for local backend/data inspection. Hosted billing, admin, and production account-management surfaces are not part of the public local dashboard.
Supported client prompts
The universal installer is the primary path for:- Claude Code
- Claude Desktop
- Codex CLI
- Factory Droid
- OpenClaw
- generic MCP clients
Prerequisites
Local mode needs:- Docker CLI and a running Docker daemon
- ports
3210,3211, and6791available on127.0.0.1 - a Memory Crystal account with the required entitlement
- a supported shell: Bash for macOS/Linux/WSL/Git Bash, or native PowerShell on Windows
Backup and rollback behavior
Before editing supported client config files, the installer should create timestamped backups with owner-only permissions where the platform supports it. If validation fails after a config mutation, the installer should restore the previous config and explain what failed. Common rollback actions:- Restore the config backup printed by the installer.
- Re-run cloud mode if you want the client to use the hosted backend again.
- Stop the local backend with the artifact-local rollback or down command.
- Keep or remove old
~/.memorycrystal/local-backend/<version>directories according to your backup policy.
Auth and local credentials
Local mode performs hosted device auth first. After license validation, the installer provisions a local credential for the Docker Convex backend. The intended safety model is:- raw hosted bearer/device tokens are not stored in client config
- local Convex stores hashed local credentials only
- cleartext local tokens are written only where the client needs them
- reinstall and upgrade preserve a stable local user mapping for existing local data
- revoked or expired hosted entitlement fails closed after any documented grace window
- Re-run the universal installer and choose Cloud hosted backend.
- Restore a client config backup if you need to undo a specific client change.
- Stop the local backend with the artifact rollback/down command:
Source of truth
Primary repo files behind this page:apps/web/public/install.shapps/web/public/install.ps1scripts/convex-local-up.shscripts/convex-local-down.shscripts/convex-local-doctor.shscripts/convex-local-auth-keys.tsscripts/convex-local-provision-env.tsscripts/convex-local-write-env.ts