frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Managed OpenClaw hosting, 60-second provisioning

2•yixn_io•1h ago
I registered https://clawhosters.com 18 days ago. Wrote the first line of code that same day. The whole thing is live now with paying customers, so I figured it was time to share it here.

The problem: deploying OpenClaw (the open-source AI agent framework) is annoying. Docker setup, Nginx config, SSL, firewall rules, Playwright browser installation for web tools, messenger bridge configuration. If you know what you're doing, it probably takes an hour. I got it down to 30-60 seconds.

*The provisioning trick: prewarmed VPS*

Snapshot-based provisioning alone gets you to about 3 minutes. Hetzner needs ~40s to create the VPS from a snapshot alone.

The thing that actually makes it fast is prewarming. I keep 1-2 idle VPS per tier sitting ready. They're already booted from the snapshot, Docker is running, everything is warm. When a customer clicks "Create Instance," I claim a prewarmed server, SSH in, upload configs, start containers. 30-60 seconds, done.

A background job monitors the pool and replenishes it. If empty, we fall back to fresh VPS creation (the 3-minute path). In practice, most signups hit a prewarmed server.

The snapshot has everything pre-baked: Docker with the OpenClaw image pre-pulled, Playwright Chromium browsers in a named volume, fail2ban, firewall rules. Nothing gets installed at deploy time.

*Routing: subdomains, Traefik, and HTTP auth*

Each instance gets its own subdomain (like `myagent.clawhosters.com`). Traefik reads route configs from Redis (domain → instance IP) and proxies to the right VPS. When an IP changes, Rails updates Redis and Traefik picks it up dynamically. It also handles optional HTTP basic auth per instance.

On each VPS, Nginx validates the Host header and returns 403 for direct IP access. The chain: internet → Traefik (routing + auth) → VPS Nginx (Host validation) → OpenClaw gateway.

*Firewall: locked to my server's IP*

Every instance gets a Hetzner Cloud firewall during provisioning. Ports are only open to my main server's IP, everything else is blocked. Customer VPS instances aren't directly reachable from the internet. Even if someone finds an instance IP, Hetzner drops the packets before they hit the VPS.

*The managed LLM proxy*

Each plan includes a managed LLM proxy. Instances talk to my proxy, and the proxy routes to whatever provider I've configured.

The security model: no API keys on the instances. Authentication is IP-based. Every VPS has a unique Hetzner IP and the firewall only allows traffic from my server. No tokens to leak, no credentials on customer machines.

Streaming was the hardest part. LLM responses come as SSE, and TCP chunks don't respect event boundaries. The proxy reassembles partial chunks on `\n\n` boundaries before forwarding. I keep only the last 4KB in a tail buffer to extract usage stats from the final `[DONE]` chunk without holding the entire response in memory.

Every request gets logged with tokens, cache hits, cost in microcents, provider, model. Rate limiting is per-instance, backed by Redis counters. I'd rather skip rate limits briefly than block the proxy. Customers can also bring their own API key (BYOK mode).

*Other bits:* Optional SSH access into containers for power users. ZeroTier sidecar for private network connectivity. Hot config reload via SIGUSR1 without container restarts.

*Stack:* Rails 8, PostgreSQL, Sidekiq, Hetzner Cloud API, Docker on instances. The entire platform runs as a namespace within a single Rails app. Built in about 2-3 weeks.

*Where it's at:* 180 customers, 46 running instances, 36 paying customers, 10 still in trial. 3 tiers from €19/mo to €59/mo.

I also just launched an affiliate program (15% recurring for 12 months): https://clawhosters.com/affiliate

Ask me anything about the provisioning architecture, the routing setup, or any of the Hetzner-specific gotchas. There were plenty.

AI Agents Want to Write Go

https://encore.dev/blog/golang-ai
1•andout_•33s ago•0 comments

Show HN: Depth Effect Wallpaper for Windows

https://github.com/nfzv/depth_clock_wallpaper
1•Nurbek-F•36s ago•0 comments

Comparing EEG Recordings from the OpenBCI Cyton and Brain Products BrainAmp

https://www.mdpi.com/1424-8220/26/4/1153
1•PaulHoule•44s ago•0 comments

OpenAI Stargate AI data centers reportedly delayed by squabbles between partners

https://www.tomshardware.com/tech-industry/artificial-intelligence/stargate-ai-data-centers-for-o...
1•speckx•1m ago•0 comments

Show HN: Collective-AI.org Multiple line-of-sights for high-stakes questions

https://collective-ai.org
1•billylo•2m ago•0 comments

DRDO cracks the code for GaN technology, boosting India's defence

https://www.theweek.in/theweek/cover/2026/01/23/exclusive-how-drdo-cracked-the-code-for-gan-techn...
1•thisislife2•2m ago•0 comments

Show HN: Zendoc – A "Zen" writing environment built on the Cursor/VS Code engine

https://yostar.github.io/zendoc/
1•yostar•3m ago•0 comments

NASA uses Mars Helicopter's SoC for rover navigation upgrade

https://www.theregister.com/2026/02/23/perseverance_rover_soc_navigation_upgrade/
1•LorenDB•4m ago•0 comments

FreezePage – Webpage Archive Service

https://www.freezepage.com/
1•TigerUniversity•4m ago•1 comments

New undocumented GameShark code format

https://social.treehouse.systems/@endrift/116118808586068716
1•throw_await•5m ago•0 comments

HubSpot Acquires Starter Story

https://twitter.com/thepatwalls/status/2025922694332780857
1•mmarian•6m ago•0 comments

Version History for Claude Code's Plan Mode

https://www.youtube.com/watch?v=uIWkFCg60Lk
1•ramoz•6m ago•1 comments

Wrapping Code Comments

https://matklad.github.io/2026/02/21/wrapping-code-comments.html
1•ibobev•7m ago•0 comments

Optimal Caverna Gameplay via Formal Methods

https://www.stephendiehl.com/posts/caverna/
1•ibobev•7m ago•0 comments

Twitter: Last Week Tonight with John Oliver (HBO) [video]

https://www.youtube.com/watch?v=p7ZG_xWYLzI
1•doener•7m ago•0 comments

Show HN: Vibevideo – Unified interface for top AI video models

https://vibevideo.app
1•leegrayson2023•8m ago•0 comments

FreeBSD Status Report Fourth Quarter 2025

https://www.freebsd.org/status/report-2025-10-2025-12/
1•ptx•8m ago•0 comments

Adventures in Neural Rendering part 2: Cooperative vectors

https://interplayoflight.wordpress.com/2026/02/21/adventures-in-neural-rendering-part-2-cooperati...
1•ibobev•8m ago•0 comments

Study Finds Lithium Plume in Atmosphere Traced Back to Returning SpaceX Rocket

https://www.sciencealert.com/lithium-plume-in-our-atmosphere-traced-back-to-returning-spacex-rocket
2•ck2•8m ago•0 comments

Why is AI so bad at reading PDFs?

https://www.theverge.com/ai-artificial-intelligence/882891/ai-pdf-parsing-failure
1•mikece•9m ago•0 comments

Show HN: Mindpm – persistent project/task memory for AI coding assistants (MCP)

https://github.com/umitkavala/mindpm
1•ukavala•9m ago•0 comments

How we built a chat-with-data agent that doesn't AI generate SQL

https://inconvo.com/blog/how-we-built-a-chat-with-data-agent-that-doesnt-ai-generate-sql/
1•ogham•10m ago•0 comments

The Hunger Games Was Just Voted the 'Best Book Ever' by Goodreads Readers

https://parade.com/news/hunger-games-by-suzanne-collins-voted-best-book-ever-goodreads
2•randycupertino•10m ago•2 comments

Questions with an Art Recovery Specialist

https://anthonyamore.substack.com/p/10-questions-with-christopher-marinello
1•anthonyamore•10m ago•0 comments

EU Commission statement on the recent judgment of US Supreme Court

https://ec.europa.eu/commission/presscorner/home/en
1•Betelbuddy•11m ago•0 comments

Show HN: Tabularis – Rust/Tauri Database GUI with a JSON-RPC Plugin System

https://github.com/debba/tabularis
1•debba•13m ago•1 comments

Hyperscalers are funding buildout with debt rather than cash flow

https://www.cnbc.com/2026/02/23/big-techs-ai-bond-binge-shatters-unspoken-contract-with-investors...
1•Betelbuddy•13m ago•0 comments

The Wrong Apocalypse [pdf]

https://ionanalytics.com/wp-content/uploads/2026/02/The_Wrong_Apocalypse.pdf
1•monkeydust•14m ago•1 comments

Show HN: Restrict Kiro CLI access to your sensitive files

https://github.com/phcollignon/kiro-guard
1•phico•14m ago•0 comments

Accelerated FOMO in the Age of AI

https://www.0xsid.com/blog/accelerated-ai-fomo
1•ssiddharth•15m ago•1 comments