Dev Mode
Test the full KashKlaw dashboard locally without VPS Docker.io or Stripe
What is Dev Mode?
Dev mode lets you run and test the entire KashKlaw dashboard UI without needing a VPS Docker.io account or Stripe account. It's designed for local development only.
When enabled, dev mode:
- Skips VPS Docker.io — Deploy, start, stop, restart, and delete actions update the database but don't create real machines. A fake machine ID is assigned instead.
- Skips Stripe checkout — The landing page flow redirects straight to the dashboard instead of going through Stripe payment.
- Shows mock subscription — The subscription page displays a fake "Pro / Active" subscription so you can test the full dashboard without paying.
- Keeps everything else real — Auth, database operations, API key encryption, model selection, and Telegram bot token management all work normally against your Supabase instance.
How to Enable
Add this line to your .env.local file:
Then restart the dev server:
Never enable dev mode in production. It bypasses billing enforcement and machine provisioning.
Minimum .env.local for Dev Mode
With dev mode on, you only need a subset of environment variables. The VPS Docker.io and Stripe values can be placeholders:
What Works vs What Doesn't
| Feature | Dev Mode | Notes |
|---|---|---|
| Google OAuth sign-in | Works | Requires real Supabase project |
| Deploy instance | Works | Creates DB record with fake machine ID |
| Start / Stop / Restart | Works | Updates DB status, skips VPS Docker.io calls |
| Delete instance | Works | Removes DB record, skips machine removal |
| API key management | Works | Encrypted storage works, skips machine update |
| Telegram bot token | Works | Token saved, skips machine update |
| AI model selection | Works | Preference saved in DB |
| Subscription page | Mock | Shows fake "Pro / Active" subscription |
| Stripe checkout | Skipped | Landing flow redirects to dashboard |
| Visit instance URL | No | No real machine, URL won't resolve |
| Refresh status from VPS Docker.io | Mock | Returns current DB status, no VPS Docker.io query |
Switching to Production
When you're ready to go live, remove or set the flag to false:
Then fill in real values for all environment variables (VPS Docker.io token, Stripe keys, etc.) and redeploy. See the full .env.local.example for reference.