dev-serveStart and manage tmux-backed dev servers exposed through Caddy at wildcard subdomains.
Install via ClawdBot CLI:
clawdbot install BrennerSpear/dev-serveStart a dev server in a tmux session and expose it via Caddy at . One command up, one command down.
cp scripts/dev-serve.sh ~/.local/bin/dev-serve
chmod +x ~/.local/bin/dev-serve
DEV_SERVE_DOMAIN in your shell profileDOMAIN variable in the scripttmux, jq, curllocalhost:2019dev-serve up <repo-path> [port] # Start dev server + add Caddy route
dev-serve down <name> # Stop dev server + remove Caddy route
dev-serve ls # List active dev servers
dev-serve restart <name> # Restart dev server (keep Caddy route)
~/projects/myapp → myapp.YOUR_DOMAIN)package.json scripts.dev (supports vite, next, nuxt, sveltekit)allowedHosts if a vite config file existsdev- with --host 0.0.0.0 --port # Start with auto-assigned port (starts at 5200, skips used ports)
dev-serve up ~/projects/myapp
# → https://myapp.YOUR_DOMAIN
# Explicit port
dev-serve up ~/projects/myapp 5200
# Override dev command
DEV_CMD="bun dev" dev-serve up ~/projects/myapp 5300
# Stop and clean up
dev-serve down myapp
# List what's running
dev-serve ls
| Variable | Default | Description |
|----------|---------|-------------|
| DEV_SERVE_DOMAIN | (must be set) | Your wildcard domain (e.g. mini.example.com) |
| DEV_SERVE_STATE_DIR | ~/.config/dev-serve | Where state JSON is stored |
| CADDYFILE | ~/.config/caddy/Caddyfile | Path to your Caddyfile |
| CADDY_ADMIN | http://localhost:2019 | Caddy admin API address |
| DEV_CMD | (auto-detected) | Override the dev server command |
allowedHostsVite blocks requests from unrecognized hostnames. dev-serve up automatically patches vite.config.ts (or .js/.mts/.mjs) to add the subdomain. If auto-patching fails, it prints the manual fix.
Browser (Tailscale / LAN / etc.)
→ DNS: *.YOUR_DOMAIN → your server IP
→ Caddy (HTTPS with auto certs)
→ reverse_proxy localhost:<port>
→ Dev server (in tmux session)
Dev server not starting:
tmux attach -t dev-<name> # see what happened
Cert not provisioning (curl exit 35):
Wait 30-60s for DNS-01 challenge. Check tail -20 /var/log/caddy-error.log.
Caddy reload failed:
caddy reload --config ~/.config/caddy/Caddyfile --address localhost:2019
403 from Vite:
The subdomain wasn't added to allowedHosts. Add it manually to your vite.config.ts:
server: { allowedHosts: ['myapp.YOUR_DOMAIN'] }
Generated Mar 1, 2026
A team of frontend developers working on multiple projects simultaneously can use dev-serve to instantly expose each project on a unique subdomain for real-time testing and review. This eliminates the need for manual port configuration and enables seamless sharing of development builds across team members or stakeholders via HTTPS. It's ideal for agencies or product teams iterating on web applications.
A freelance web developer can leverage dev-serve to quickly spin up development servers for client projects, providing secure, accessible previews without deploying to staging environments. By auto-configuring Caddy with TLS, clients can view progress on custom subdomains, enhancing professionalism and feedback efficiency. This reduces setup time and technical overhead for solo practitioners.
Instructors running coding bootcamps or workshops can use dev-serve to host student projects on individual subdomains, allowing participants to share their work instantly for peer review or instructor feedback. The automated port management and Vite integration simplify the process, making it accessible for beginners learning modern web frameworks like Next.js or SvelteKit.
Companies developing internal tools or dashboards can utilize dev-serve to prototype and test applications across departments. By exposing dev servers on wildcard subdomains, teams can iterate rapidly with secure access via Caddy, facilitating early feedback and integration testing without disrupting production systems. This accelerates the development cycle for internal software.
Contributors to open source web projects can use dev-serve to set up local development environments with minimal configuration, automatically exposing their fork on a subdomain for testing changes. The integration with package.json scripts and Vite streamlines the workflow, making it easier to verify fixes or features before submitting pull requests.
Offer dev-serve as a cloud-hosted service with a web dashboard for managing dev servers, analytics, and team collaboration features. Charge a monthly fee per user or project, targeting development teams and freelancers who need scalable, managed infrastructure. Revenue streams include tiered plans based on the number of active servers and support levels.
Sell on-premise or self-hosted licenses of dev-serve to large organizations requiring custom integrations, enhanced security, and dedicated support. Bundle it with consulting services for setup and training, focusing on industries like finance or healthcare with strict compliance needs. Revenue comes from one-time license fees and annual maintenance contracts.
Provide dev-serve as a free, open-source tool to build a community, then monetize through premium add-ons such as advanced monitoring, automated backups, or integration with CI/CD pipelines. Target individual developers and small teams, upselling features that enhance productivity. Revenue is generated from one-time purchases or small subscription fees for add-ons.
💬 Integration Tip
Ensure Caddy is pre-configured with wildcard DNS and TLS before using dev-serve, and verify that the admin API is accessible to avoid setup failures.
Automatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed.
Full desktop computer use for headless Linux servers. Xvfb + XFCE virtual desktop with xdotool automation. 17 actions (click, type, scroll, screenshot, drag,...
Essential Docker commands and workflows for container management, image operations, and debugging.
Tool discovery and shell one-liner reference for sysadmin, DevOps, and security tasks. AUTO-CONSULT this skill when the user is: troubleshooting network issues, debugging processes, analyzing logs, working with SSL/TLS, managing DNS, testing HTTP endpoints, auditing security, working with containers, writing shell scripts, or asks 'what tool should I use for X'. Source: github.com/trimstray/the-book-of-secret-knowledge
Deploy applications and manage projects with complete CLI reference. Commands for deployments, projects, domains, environment variables, and live documentation access.
Monitor topics of interest and proactively alert when important developments occur. Use when user wants automated monitoring of specific subjects (e.g., product releases, price changes, news topics, technology updates). Supports scheduled web searches, AI-powered importance scoring, smart alerts vs weekly digests, and memory-aware contextual summaries.