{"id":81273,"date":"2026-06-18T07:30:00","date_gmt":"2026-06-18T14:30:00","guid":{"rendered":"https:\/\/dhblog.dream.press\/blog\/?p=81273"},"modified":"2026-06-18T07:31:12","modified_gmt":"2026-06-18T14:31:12","slug":"openclaw-install","status":"publish","type":"post","link":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/","title":{"rendered":"How To Self-Host OpenClaw on a VPS"},"content":{"rendered":"<div class=\"tldr-block\" style=\"display: none;\">\n\t<div class=\"svg\">\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 119.25 37.8\">\n\t<g>\n\t\t<g>\n\t\t\t<path fill=\"#ffffff\" d=\"M23.4,6.93h-8.1v24.57h-7.2V6.93H0V0h23.4v6.93Z\" \/>\n\t\t\t<path fill=\"#ffffff\" d=\"M45,24.57v6.93h-18.45V0h7.2v24.57h11.25Z\" \/>\n\t\t\t<path fill=\"#ffffff\"\n\t\t\t\td=\"M90.9,15.75c0,8.91-6.61,15.75-15.3,15.75h-12.6V0h12.6c8.68,0,15.3,6.84,15.3,15.75ZM83.97,15.75c0-5.4-3.42-8.82-8.37-8.82h-5.4v17.64h5.4c4.95,0,8.37-3.42,8.37-8.82Z\" \/>\n\t\t\t<path fill=\"#ffffff\"\n\t\t\t\td=\"M105.57,21.15h-3.42v10.35h-7.2V0h12.6c5.98,0,10.8,4.81,10.8,10.8,0,3.87-2.34,7.38-5.81,9.13l6.71,11.56h-7.74l-5.94-10.35ZM102.15,14.85h5.4c1.98,0,3.6-1.75,3.6-4.05s-1.62-4.05-3.6-4.05h-5.4v8.1Z\" \/>\n\t\t<\/g>\n\t\t<path\n\t\t\tfill=\"#0173ec\"\n\t\t\td=\"M53.97,37.8h-5.4l1.8-13.27h7.2l-3.6,13.27ZM49.02,12.55c0-2.34,1.93-4.27,4.27-4.27s4.27,1.94,4.27,4.27-1.93,4.27-4.27,4.27-4.27-1.94-4.27-4.27Z\"\n\t\t \/>\n\t<\/g>\n<\/svg>\n\t<\/div>\n\t<div class=\"tldr-wrap\">\n\t\t\n\n<p class=\"wp-block-paragraph\">OpenClaw, an open-source AI agent gateway, connects large language models (LLMs) like GPT-4o and Claude to your messaging apps and runs 24\/7 on your own server. You need a Linux VPS with at least 4GB RAM, Node.js 24, and an API key from any LLM provider to get started.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Installation takes 20-30 minutes via either the scripted installer or Docker Compose, which 65% of deployments use.<\/li>\n\n\n\n<li>The total cost for a self-hosted OpenClaw setup runs $11-$35\/month for typical personal use, compared to $200\/month for ChatGPT Pro.<\/li>\n\n\n\n<li>Smart model routing can cut your API costs by another 60%-80%. DreamHost, a web hosting provider with 25+ years of experience, offers Self-Managed VPS plans with root access and the resources OpenClaw needs.<\/li>\n<\/ul>\n\n\n\t<\/div>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Running your own AI agent used to mean a GPU rig and a weekend of Python. Now it fits on a VPS that costs less than dinner.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ChatGPT Pro is $200 a month, but a self-hosted OpenClaw setup that connects to WhatsApp, Telegram, Discord, and a dozen other apps runs about $15 \u2014 VPS <em>and<\/em> API tokens included.<\/p>\n\n\n\n<h2 id=\"h-what-is-openclaw-and-why-self-host-it\" class=\"wp-block-heading\">What Is OpenClaw and Why Self-Host It?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">OpenClaw, an open-source AI agent gateway, is the fastest-growing open-source project in history, and you can run it on a $5\/month VPS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In under 60 days, OpenClaw passed React\u2019s star count and became the most-starred non-aggregator software project on GitHub, crossing 250,000 stars in early March.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/openclawvps.io\/blog\/openclaw-statistics\" target=\"_blank\" rel=\"noreferrer noopener\">As of April 2026<\/a>, it&#8217;s at 346,000+ stars with 500,000+ running instances across 82 countries, per OpenClaw\u2019s April 2026 community report.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s what it actually is:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenClaw is a self-hosted AI agent, a lightweight <a href=\"https:\/\/nodejs.org\" target=\"_blank\" rel=\"noreferrer noopener\">Node.js<\/a> application that sits between your messaging apps and AI model APIs. You send a message on WhatsApp, OpenClaw routes it to GPT-4o or Claude, and the response comes back in your chat.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"879\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x.webp\" alt=\"Diagram showing chat interface connected to self-hosted OpenClaw server, which connects to OpenAI logo.Diagram showing chat interface connected to self-hosted OpenClaw server, which connects to OpenAI logo.\" class=\"wp-image-81275 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x-300x165.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x-1024x563.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x-768x422.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x-1536x844.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x-600x330.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x-1200x659.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x-730x401.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x-1460x802.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x-784x431.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x-1568x861.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/01-Self-Hosted-OpenClaw_1x-877x482.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/879;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Unlike a chatbot you open in a browser tab, OpenClaw runs 24\/7 on your server. It can act proactively, execute tasks on a schedule, and connect to any messaging platform simultaneously.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Why not ChatGPT? ChatGPT Pro costs $200\/month for a browser-based chatbot that responds when you ask.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A self-hosted OpenClaw setup costs <a href=\"https:\/\/haimaker.ai\/blog\/openclaw-api-costs-pricing\/\" target=\"_blank\" rel=\"noreferrer noopener\">$5-$15\/month in API tokens<\/a> plus VPS hosting, and gives you an always-on agent across every messaging app you use.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ChatGPT Pro includes features OpenClaw doesn&#8217;t replicate (Deep Research, Sora), but no cloud subscription offers a 24\/7 multi-channel agent at any price. Most power users run both.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why Self-Host OpenClaw?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Three reasons to self-host: cost, privacy, and control.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As <a href=\"https:\/\/steipete.me\/posts\/2026\/openclaw\" target=\"_blank\" rel=\"noreferrer noopener\">Peter Steinberger<\/a>, OpenClaw&#8217;s creator (now at OpenAI), <a href=\"https:\/\/steipete.me\/posts\/2026\/openclaw\" target=\"_blank\" rel=\"noreferrer noopener\">put it<\/a>: &#8220;The community around OpenClaw is something magical&#8230; It will stay a place for thinkers, hackers and people that want a way to own their data.&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.dreamhost.com\/blog\/self-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Self-hosting<\/a> OpenClaw means you\u2019re running the software on a server <em>you<\/em> control instead of renting access from a SaaS provider.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your conversations stay with you, you pick the AI models, and you don&#8217;t pay per-seat for functionality you could own.<\/p>\n\n\n\n<div class=\"article-newsletter article-newsletter--gradient\">\n\n\n<h2>Get Content Delivered Straight to Your Inbox<\/h2><p>Subscribe now to receive all the latest updates, delivered directly to your inbox.<\/p><form class=\"nwsl-form\" id=\"newsletter_block_\" novalidate><div class=\"messages\"><\/div><div class=\"form-group\"><label for=\"input_newsletter_block_\"><input type=\"email\"name=\"email\"id=\"input_newsletter_block_\"placeholder=\"Enter your email address\"novalidatedisabled=\"disabled\"\/><\/label><button type=\"submit\"class=\"btn btn--brand\"disabled=\"disabled\"><span>Sign Me Up!<\/span><svg width=\"21\" height=\"14\" viewBox=\"0 0 21 14\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<path d=\"M13.8523 0.42524L12.9323 1.34521C12.7095 1.56801 12.7132 1.9304 12.9404 2.14865L16.7241 5.7823H0.5625C0.251859 5.7823 0 6.03416 0 6.3448V7.6573C0 7.96794 0.251859 8.2198 0.5625 8.2198H16.7241L12.9405 11.8535C12.7132 12.0717 12.7095 12.4341 12.9323 12.6569L13.8523 13.5769C14.072 13.7965 14.4281 13.7965 14.6478 13.5769L20.8259 7.39879C21.0456 7.17913 21.0456 6.82298 20.8259 6.60327L14.6477 0.42524C14.4281 0.205584 14.0719 0.205584 13.8523 0.42524Z\" fill=\"white\"\/>\n<\/svg>\n<\/button><\/div><\/form><\/div>\n\n\n<h2 id=\"h2_what-do-you-need-to-run-openclaw-on-a-vps\" class=\"wp-block-heading\">What Do You Need To Run OpenClaw on a VPS?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A 4GB RAM VPS with no GPU is the standard deployment \u2014 the spec the other 500,000 installs are running on. At DreamHost, we recommend 4GB RAM as the baseline. We&#8217;ve seen 2GB installs succeed during setup but struggle under real daily use, especially when multiple messaging channels are active simultaneously. <a href=\"https:\/\/docs.openclaw.ai\/install\" target=\"_blank\" rel=\"noreferrer noopener\">The official minimum<\/a> is 2 CPU cores, 2GB RAM, and 2GB storage, but 1GB machines consistently fail during installation with out-of-memory errors<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"968\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x.webp\" alt=\"Three server configurations showing OpenClaw RAM requirements: 1GB insufficient, 2GB caution, 4GB recommended.\" class=\"wp-image-81276 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x-300x182.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x-1024x620.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x-768x465.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x-1536x929.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x-600x363.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x-1200x726.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x-730x442.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x-1460x883.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x-784x474.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x-1568x949.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/02-OpenClaw-RAM-Requirements_1x-877x531.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/968;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>OpenClaw doesn&#8217;t run AI models locally.<\/strong> It&#8217;s a lightweight Node.js runtime that sends requests to cloud APIs like OpenAI, Anthropic, or Google.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The only users who need serious hardware are running local models through Ollama, an entirely separate setup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>OpenClaw requires Node.js 22.14 at minimum, with Node.js 24 recommended<\/strong>. Many VPS images still ship with Node 18 or 20, so you&#8217;ll likely need to upgrade. The scripted installer handles this automatically. Manual installs need explicit version management via nvm (Node Version Manager) or nodesource.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re on shared hosting, you&#8217;ll need a Self-Managed VPS because OpenClaw requires root access and dedicated resources. If you want a deeper breakdown, here&#8217;s <a href=\"https:\/\/www.dreamhost.com\/blog\/shared-vs-vps-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">how shared vs. Self-Managed VPS hosting compares<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udca1<strong>Pro tip:<\/strong> If this is your first Self-Managed VPS, DreamHost&#8217;s <a href=\"https:\/\/www.dreamhost.com\/blog\/beginners-guide-vps\/\" target=\"_blank\" rel=\"noreferrer noopener\">VPS beginner&#8217;s guide<\/a> walks through provisioning, SSH access, and basic server management.<\/p>\n\n\n\n<h2 id=\"h2_which-vps-plan-should-you-choose-for-openclaw\" class=\"wp-block-heading\">Which VPS Plan Should You Choose for OpenClaw?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A 4GB RAM VPS handles most personal OpenClaw deployments running cloud AI APIs on a single channel.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step up to 8GB for browser automation or multi-channel use, and 16GB+ if you plan to run local models via Ollama.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>DreamHost&#8217;s Self-Managed VPS Stack 4 is the recommended starting point.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenClaw is a RAM-hungry application. Browser automation spawns Chromium instances that consume 2-4GB each. Multi-channel operation keeps multiple connection handlers in memory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And if you run local models via Ollama instead of cloud APIs, model inference alone needs 16GB+.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Root access isn&#8217;t optional for OpenClaw. If your VPS provider doesn&#8217;t offer it, your agent can&#8217;t install Docker, manage integrations, or run browser automation. Shared hosting is a non-starter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Saul Dolgin, a senior engineer at Microsoft Azure, published an <a href=\"https:\/\/gist.github.com\/sdolgin\/bc15d2844268e8e55459c94cb54b3799\" target=\"_blank\" rel=\"noreferrer noopener\">extensive breakdown of OpenClaw hardware requirements<\/a> for different deployment scenarios. He found that for a pure headless gateway with just SSH access, you can get away with 1 vCPU and 512MB RAM (but he recommends at least 1 GB).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Requirements tick up once you start adding sandboxing, channels, and browsers.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s how different use cases map to VPS specs, based on his minimums and recommendations:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Use Case<\/strong><\/td><td><strong>vCPU<\/strong><\/td><td><strong>RAM<\/strong><\/td><td><strong>Storage<\/strong><\/td><td><strong>Estimated Cost<\/strong><\/td><\/tr><tr><td>Personal agent (cloud API only)<\/td><td>2<\/td><td>2GB<\/td><td>10GB SSD<\/td><td>~$5-$10\/month hardware<\/td><\/tr><tr><td>Multi-channel + browser automation<\/td><td>2-4<\/td><td>4GB<\/td><td>20GB NVMe<\/td><td>~$15-$25\/month hardware<\/td><\/tr><tr><td>Local models via Ollama<\/td><td>4+<\/td><td>16GB+<\/td><td>50GB+ NVMe<\/td><td>~$25-$35\/month hardware<\/td><\/tr><tr><td>Team\/multi-user deployment<\/td><td>4+<\/td><td>8GB+<\/td><td>40GB+ NVMe<\/td><td>Varies by user count<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">DreamHost&#8217;s <a href=\"https:\/\/www.dreamhost.com\/hosting\/self-managed-vps\/\" target=\"_blank\" rel=\"noreferrer noopener\">Self-Managed VPS<\/a> is built for exactly this kind of workload. NVMe storage, full root access, dedicated IPs, and unmetered bandwidth. The VPS Professional (4GB) plan is the right starting point for most personal deployments, with the option to scale up to Stack 8 or Stack 16 as your use case grows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Docker deployments add roughly 200MB-300MB of RAM overhead. This matters on a 2GB machine.<\/p>\n\n\n\n<h2 id=\"h2_how-much-does-it-cost-to-run-self-hosted-openclaw\" class=\"wp-block-heading\">How Much Does It Cost To Run Self-Hosted OpenClaw?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You\u2019re looking at about $11-$35 per month to run OpenClaw for personal use, but you could spend closer to $100\/month if you\u2019re looking for heavier use or more advanced use cases.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">According to <a href=\"https:\/\/haimaker.ai\/blog\/openclaw-api-costs-pricing\/\" target=\"_blank\" rel=\"noreferrer noopener\">HaiMaker&#8217;s pricing breakdown<\/a>, API token costs for light personal use (20-50 messages per day with GPT-4o-mini) run about $1-$5\/month.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Moderate use with a mix of models lands around $5-$15\/month. And heavy automation with GPT-4o as the primary model can push costs to $30-$100\/month, at which point the cost advantage over ChatGPT&#8217;s new $100\/month mid-tier Pro option (launched April 9, 2026) starts to narrow.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019re sending 200+ messages a day, the math changes \u2014 skip to the heavy-use row.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For most personal setups, routing GPT-4o-mini as the default with GPT-4o as the escalation model keeps monthly API costs under $10.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Setup<\/strong><\/td><td><strong>VPS<\/strong><\/td><td><strong>API Tokens<\/strong><\/td><td><strong>Total<\/strong><\/td><\/tr><tr><td>Cost-optimized (GPT-4o-mini only)<\/td><td>$10-$15\/month<\/td><td>$1-$5\/month<\/td><td>$11-$20\/month<\/td><\/tr><tr><td>Balanced (mixed models, routing)<\/td><td>$15-$25\/month<\/td><td>$5-$15\/month<\/td><td>$20-$40\/month<\/td><\/tr><tr><td>Heavy automation (GPT-4o primary)<\/td><td>$15-$25\/month<\/td><td>$50-$150\/month<\/td><td>$65-$175\/month<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Entrepreneur and CTO Lance Cleveland published a <\/strong><a href=\"https:\/\/lancecleveland.com\/2026\/03\/26\/a-cost-analysis-of-openclaw-ai-processing\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>detailed cost analysis of his OpenClaw instance<\/strong><\/a><strong>. He found that pricing worked out to around $0.00063 per 1,000 tokens or about $0.047 per interaction using GPT 5.4.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can reduce costs by using older and cheaper models (e.g., GPT-4o-mini) for the routine stuff and save the expensive models for when you need reasoning power.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenClaw sends heartbeat checks every 30 minutes using your primary model. If your primary model is GPT-4o, those keep-alive pings add up for zero benefit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Configure a cheaper heartbeat model or use smart routing to avoid paying premium rates for what amounts to an &#8220;are you still there?&#8221; ping.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>According to <\/strong><a href=\"https:\/\/velvetshark.com\/openclaw-multi-model-routing\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>VelvetShark&#8217;s calculations<\/strong><\/a><strong>, smart model routing cuts API costs by 50%-80%.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/www.dreamhost.com\/pricing\/\" target=\"_blank\" rel=\"noreferrer noopener\">hosting cost<\/a> is one factor to consider as well. A 4GB RAM VPS like those available through <a href=\"https:\/\/www.dreamhost.com\/hosting\/vps\/\" target=\"_blank\" rel=\"noreferrer noopener\">DreamHost Self-Managed VPS hosting<\/a> typically runs $10-$25\/month, the sweet spot for personal OpenClaw deployments.<\/p>\n\n\n\n<h2 id=\"h2_when-not-to-self-host-openclaw\" class=\"wp-block-heading\">When NOT to Self-Host OpenClaw<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1074\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x.webp\" alt=\"List of reasons to avoid self-hosting: SOC 2 or HIPAA compliance needed, can&apos;t patch within 24 hours, fewer than 10 daily messages, or team needs SSO.\" class=\"wp-image-81277 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x-300x201.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x-1024x687.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x-768x516.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x-1536x1031.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x-600x403.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x-1200x806.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x-730x490.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x-1460x980.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x-784x526.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x-1568x1053.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/03-Skip-self-hosting-if-any-of-these-apply._1x-877x589.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1074;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Self-hosting isn\u2019t the right call for everyone.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Skip OpenClaw if you need SOC 2 or HIPAA compliance (self-hosted makes audits your problem), you\u2019re not comfortable patching CVEs within 24 hours, you send fewer than 10 messages a day (ChatGPT free tier wins on economics), or you need SSO for a team deployment (not in OpenClaw yet).<\/p>\n\n\n\n<h2 id=\"h2_how-do-you-install-openclaw-on-a-linux-vps\" class=\"wp-block-heading\">How Do You Install OpenClaw on a Linux VPS?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Two methods, both under 30 minutes. The scripted installer is fastest, while Docker Compose is more popular, with 65% of all OpenClaw deployments using it, because it isolates dependencies and makes updates dead simple.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1: Scripted Installer (Fastest)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.dreamhost.com\/glossary\/hosting\/ssh\/\" target=\"_blank\" rel=\"noreferrer noopener\">SSH<\/a> into your VPS and run:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>curl -fsSL https:\/\/openclaw.ai\/install.sh | bash<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The script checks for Node.js 24 and installs it if missing, downloads the latest release, and launches the onboarding wizard.&nbsp;<\/li>\n\n\n\n<li>The wizard walks you through picking a model provider (Anthropic, OpenAI, Google, and others), setting your API key, and configuring the gateway.<\/li>\n\n\n\n<li>The script also registers OpenClaw as a background service on Linux (systemd), so the agent survives reboots. If you prefer the manual path, run <code>npm install -g openclaw@latest<\/code> followed by <code>openclaw onboard --install-daemon<\/code> \u2014 that flag is what does the service registration.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"777\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x.webp\" alt=\"Three-step OpenClaw installation process: Node.js logo with checkmark, download arrow with package icon, and terminal wizard screen.\" class=\"wp-image-81278 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x-300x146.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x-1024x497.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x-768x373.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x-1536x746.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x-600x291.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x-1200x583.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x-730x355.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x-1460x709.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x-784x381.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x-1568x761.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/04-Scripted-OpenClaw-Installer_1x-877x426.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/777;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\ud83d\udc40 One gotcha to look out for:<\/strong> The installer launches a terminal user interface (TUI), a graphical menu inside your terminal, that can freeze on headless VPS environments without a proper TTY.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your install stalls at a blank screen, fall back to the manual method:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>npm install -g openclaw@latest<br>openclaw doctor --non-interactive<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This skips the TUI entirely. You&#8217;ll configure your gateway token and API keys through the config files in <em>\u2018~\/.openclaw\u2019<\/em> instead of the wizard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Two other common snags: if port 18789 is already in use, run <code>lsof -i :18789<\/code> to find what has it, then kill that process or remap OpenClaw\u2019s port in your <em>docker-compose.yml<\/em>. If WhatsApp pairing drops after a VPS reboot, rerun the login command (credentials in <em>~\/.openclaw\/credentials\/whatsapp\/<\/em> can rotate if the process doesn\u2019t shut down cleanly.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2: Docker Compose (Most Isolated)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The second way you can install OpenClaw on your VPS is by using Docker.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\ud83d\udca1Pro tip:<\/strong> If you&#8217;re new to containers, DreamHost&#8217;s explainer on <a href=\"https:\/\/www.dreamhost.com\/blog\/what-is-docker\/\" target=\"_blank\" rel=\"noreferrer noopener\">Docker<\/a> covers the basics.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Docker packages an application like OpenClaw into a standardized unit, called a \u201ccontainer.\u201d The container runs in an isolated environment on your server, ensuring consistent performance and making updates easy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s how to get it up and running:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Clone the OpenClaw repository and run the setup script:\n<ul class=\"wp-block-list\">\n<li><code>git clone https:\/\/github.com\/openclaw\/openclaw.git<\/code><\/li>\n\n\n\n<li><code>cd openclaw &amp;&amp; .\/docker-setup.sh<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>The setup script builds the Docker image, runs the onboarding wizard, generates your gateway token, and starts the OpenClaw gateway.&nbsp;<\/li>\n\n\n\n<li>Your instance runs inside a container with its own isolated filesystem and network namespace \u2014 an isolated environment where processes can&#8217;t interfere with anything else on your server.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"1169\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x.webp\" alt=\"Diagram showing OpenClaw Docker container connecting to three messaging platforms: Telegram, WhatsApp, and Discord.Diagram showing OpenClaw Docker container connecting to three messaging platforms: Telegram, WhatsApp, and Discord.\" class=\"wp-image-81279 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x-300x219.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x-1024x748.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x-768x561.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x-1536x1122.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x-600x438.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x-1200x877.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x-730x533.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x-1460x1067.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x-784x573.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x-1568x1146.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/05-Install-OpenClaw-on-Docker_1x-877x641.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/1169;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Updates are as simple as running the command <code>docker compose pull &amp;&amp; docker compose up -d<\/code>, and rollbacks are instant.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How Do You Verify the Installation Worked?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run <a href=\"https:\/\/docs.openclaw.ai\/gateway\/doctor\" target=\"_blank\" rel=\"noreferrer noopener\">openclaw doctor<\/a>; it checks your Node.js version, gateway status, and API key configuration in one pass:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run these three checks to confirm everything is set up correctly:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>openclaw --version<\/code> \u2014 Confirms OpenClaw is installed and accessible from your terminal.<\/li>\n\n\n\n<li><code>openclaw doctor<\/code> \u2014 Validates your environment, dependencies, and API key configuration in one pass.<\/li>\n\n\n\n<li><code>openclaw gateway status<\/code> \u2014 Checks that the gateway process is actively running.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If all three return without errors, you&#8217;re good to go.<\/p>\n\n\n\n<h2 id=\"h2_how-do-you-secure-openclaw-on-a-vps\" class=\"wp-block-heading\">How Do You Secure OpenClaw on a VPS?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can secure your installation by following a few simple steps, including setting up your installation to only accept connections from your local machine, running OpenClaw under a dedicated user, and setting up your firewall properly.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Those three changes block the majority of real-world attacks against OpenClaw instances, two of which have been widely documented:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>OpenClaw&#8217;s default configuration exposes the gateway to the public internet:<\/strong> <a href=\"https:\/\/securityscorecard.com\/blog\/how-exposed-openclaw-deployments-turn-agentic-ai-into-an-attack-surface\/\" target=\"_blank\" rel=\"noreferrer noopener\">SecurityScorecard<\/a> scanned more than 40,000 exposed OpenClaw instances and flagged 32% (about 14,000) as vulnerable to remote code execution. <a href=\"https:\/\/www.bitsight.com\/blog\/openclaw-ai-security-risks-exposed-instances\" target=\"_blank\" rel=\"noreferrer noopener\">Bitsight<\/a>\u2019s parallel research tracked 30,000+ exposed instances in a separate window.<\/li>\n\n\n\n<li><strong>Running an AI agent on a public server without hardening the gateway is like leaving your front door open:<\/strong> The most critical vulnerability so far was <a href=\"https:\/\/www.oasis.security\/blog\/openclaw-vulnerability\" target=\"_blank\" rel=\"noreferrer noopener\">ClawJacked (CVE-2026-28472)<\/a>, disclosed in February 2026. Any website you visit could open a direct connection to your OpenClaw instance and issue commands to your AI agent.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The fix was a one-line config change.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Patches for OpenClaw security issues typically ship within hours, but you&#8217;re responsible for applying them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These are five hardening steps that will help you secure your OpenClaw installation, in order of priority:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Restrict connections to your server only:<\/strong> By default, OpenClaw accepts connections from any device on the internet. <a href=\"https:\/\/docs.openclaw.ai\/gateway\/configuration\" target=\"_blank\" rel=\"noreferrer noopener\">Open your OpenClaw configuration file<\/a> (<em>~\/.openclaw\/openclaw.json<\/em>) and change the host value from 0.0.0.0 to 127.0.0.1. That tells the gateway to only accept connections originating from the server itself, so nobody on the outside can reach it directly. This single change would have prevented ClawJacked.<\/li>\n\n\n\n<li><strong>Give OpenClaw its own user account:<\/strong> If you&#8217;re running OpenClaw as the root administrator, a compromised agent has full control of your entire server. Creating a dedicated user account means even a worst-case breach is limited to just that account&#8217;s permissions.<\/li>\n\n\n\n<li><strong>Configure execution guardrails:<\/strong> Set <em>tools.exec.security<\/em> to &#8220;deny&#8221; and <em>tools.exec.ask <\/em>to &#8220;always&#8221; in your configuration to ensure that any attempt to run local commands requires your explicit, manual intervention.<\/li>\n\n\n\n<li><strong>Close the port to outside traffic:<\/strong> OpenClaw communicates on port 18789, and your firewall should block anyone on the internet from reaching it. If you&#8217;re <a href=\"https:\/\/docs.openclaw.ai\/install\/docker#docker\" target=\"_blank\" rel=\"noreferrer noopener\">running Docker<\/a>, standard firewall rules won&#8217;t protect you. Docker bypasses them. Instead, set the port binding in your <em>docker-compose.yml<\/em> to 127.0.0.1:18789:18789 so Docker only accepts local connections, matching what you did in step 1.<\/li>\n\n\n\n<li><strong>Set up a private connection for remote access:<\/strong> Once you&#8217;ve locked the gateway to local-only connections, you&#8217;ll need a secure way to reach it from your own computer. Tools like SSH, which connect you directly to your VPS from a terminal, or Tailscale create a private tunnel without opening the port to the public.<\/li>\n\n\n\n<li><strong>Protect your OpenClaw configuration directory (~.openclaw):<\/strong> Restrict who can access it, back it up, and never include it in a public code repository.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1600\" height=\"647\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x.webp\" alt=\"Three-stage security progression showing when to expose OpenClaw: authorized user, after hardening, then insecure public web.\" class=\"wp-image-81280 lazyload\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x.webp 1600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x-300x121.webp 300w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x-1024x414.webp 1024w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x-768x311.webp 768w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x-1536x621.webp 1536w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x-600x243.webp 600w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x-1200x485.webp 1200w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x-730x295.webp 730w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x-1460x590.webp 1460w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x-784x317.webp 784w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x-1568x634.webp 1568w, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/06-How-Do-You-Secure-OpenClaw-on-a-VPS__1x-877x355.webp 877w\" data-sizes=\"(max-width: 1600px) 100vw, 1600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1600px; --smush-placeholder-aspect-ratio: 1600\/647;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">These steps are OpenClaw-specific, but they build on general <a href=\"https:\/\/www.dreamhost.com\/blog\/cloud-security-tips\/\" target=\"_blank\" rel=\"noreferrer noopener\">cloud security best practices<\/a> that apply to any VPS workload. For production deployments, add a reverse proxy with Nginx.<\/p>\n\n\n\n<h2 id=\"h2_how-do-you-connect-openclaw-to-whatsapp-or-telegram\" class=\"wp-block-heading\">How Do You Connect OpenClaw to WhatsApp or Telegram?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Start with Telegram \u2014 it&#8217;s the most stable channel, requires zero inbound port configuration, and you&#8217;ll have a working AI agent in your DMs within five minutes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How Do You Set Up Telegram With OpenClaw?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Telegram is the easiest integration because it uses long-polling, that is, the client asks the server for new messages at regular intervals; rather than webhooks, which means it works behind NAT and firewalls with no inbound ports required.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open Telegram and <a href=\"https:\/\/t.me\/BotFather\" target=\"_blank\" rel=\"noreferrer noopener\">message @BotFather<\/a>.&nbsp;<\/li>\n\n\n\n<li>Send <strong>\/newbot<\/strong> and follow the prompts to name your bot.<\/li>\n\n\n\n<li>Copy the API token BotFather gives you.<\/li>\n\n\n\n<li>In your VPS terminal, run \u2018openclaw channel add telegram.\u2019<\/li>\n\n\n\n<li>Restart the gateway: openclaw gateway restart.<\/li>\n\n\n\n<li>Send your bot a message in Telegram, then approve the pairing request: openclaw pairing list telegram to see it, openclaw pairing approve telegram <code>&lt;code&gt;<\/code> to accept.&nbsp;<\/li>\n\n\n\n<li>After that, your agent will respond.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Your OpenClaw agent is now reachable through Telegram \u2014 five minutes, one API token, no inbound ports.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How Do You Connect OpenClaw to WhatsApp?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WhatsApp uses a device-pairing approach instead of a traditional API.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Run openclaw channels login &#8211;channel WhatsApp to generate the QR code and link your account. This also triggers the installation flow if the plugin is not already present.<\/li>\n\n\n\n<li>A QR code appears in your terminal.<\/li>\n\n\n\n<li>On your phone, open <strong>WhatsApp<\/strong> &gt; <strong>Settings<\/strong> &gt; <strong>Linked Devices<\/strong> &gt; <strong>Link a Device<\/strong>, and scan the code.<\/li>\n\n\n\n<li>Your OpenClaw instance registers as a linked device on your WhatsApp account. Credentials are saved to <em>~\/.openclaw\/credentials\/whatsapp\/<\/em>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Your VPS needs to stay running for the pairing to persist. If the OpenClaw process restarts, you may need to re-pair.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are two things to know before you commit to WhatsApp:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>WhatsApp <\/strong><a href=\"https:\/\/mintlify.wiki\/whiskeysockets\/baileys\/introduction\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>uses the Baileys library<\/strong><\/a><strong>, an unofficial, community-built WhatsApp client, not an official Meta API:<\/strong> While that works well today, Meta could block the method, and WhatsApp updates can occasionally break compatibility.<\/li>\n\n\n\n<li><strong>Without configuring an allowlist, anyone who has your connected phone number can send commands to your AI agent:<\/strong> Set up the allowlist immediately after pairing to restrict access to specific phone numbers.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Once your allowlist is configured, WhatsApp works just as reliably as Telegram for day-to-day use.<\/p>\n\n\n\n<h2 id=\"h2_what-should-you-do-after-installing-openclaw\" class=\"wp-block-heading\">What Should You Do After Installing OpenClaw?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Send a message to your OpenClaw agent right now. Ask it to summarize a URL, set a reminder, or list the files in your workspace directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s where to start.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenClaw\u2019s skill ecosystem has 44,000+ community-built skills on ClawHub as of April 2026, covering everything from calendar integration to code execution to web scraping. But ClawHub has a supply-chain problem. Koi research identified 341 malicious ClawHavoc skills, and a subsequent <a href=\"https:\/\/www.trendmicro.com\/en_us\/research\/26\/b\/openclaw-skills-used-to-distribute-atomic-macos-stealer.html\" target=\"_blank\" rel=\"noreferrer noopener\">Trend Micro\u2019s February 2026 ClawHavoc investigation<\/a> surfaced 39 overlapping skills carrying Atomic Stealer; Antiy CERT\u2019s parallel count pushed the total past 800, with a heavier concentration in crypto-automation skills<a href=\"https:\/\/www.trendmicro.com\/en_us\/research\/26\/b\/openclaw-skills-used-to-distribute-atomic-macos-stealer.html\">.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Vet every skill before you install it. Stick to popular, well-reviewed options with active maintainers, and review the skill&#8217;s source code if it requests sensitive permissions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Beyond skills, here\u2019s your post-installation checklist:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Configure your workspace directory:<\/strong> This is where OpenClaw stores files, notes, and agent memory. Keep it organized; it grows fast.<\/li>\n\n\n\n<li><strong>Set up automated backups:<\/strong> Back up <em>\u2018~\/.openclaw\u2019<\/em> regularly. It contains your gateway token, API keys, agent configs, and conversation history. Losing this directory means starting from scratch.<\/li>\n\n\n\n<li><strong>Enable auto-updates:<\/strong> OpenClaw ships updates frequently, including critical security patches. Run openclaw update to upgrade in place, run a health check, and restart services automatically.&nbsp;<\/li>\n\n\n\n<li><strong>Explore workflow automation:<\/strong> OpenClaw can run tasks on a schedule via openclaw cron, which is where most of the value lives. The real win of a 24\/7 agent is running your morning digest, checking a site for changes, or prepping a summary while you&#8217;re asleep.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\ud83d\udca1Pro tip:<\/strong> If you&#8217;re running Ollama alongside OpenClaw for local inference, DreamHost&#8217;s roundup of <a href=\"https:\/\/www.dreamhost.com\/blog\/open-source-ai\/\" target=\"_blank\" rel=\"noreferrer noopener\">self-hosted AI models<\/a> covers the best options for running language models on your own hardware.<\/p>\n\n\n\n<h2 id=\"h2_where-to-go-from-here\" class=\"wp-block-heading\">Where To Go From Here<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.forbes.com\/sites\/ronschmelzer\/2026\/02\/16\/openai-hires-openclaw-creator-peter-steinberger-and-sets-up-foundation\/\" target=\"_blank\" rel=\"noreferrer noopener\">Peter Steinberger left for OpenAI.<\/a> The project kept growing anyway \u2014 346,000 stars, 500,000 instances, a registry where hundreds of skills have been caught stealing credentials.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s the deal you\u2019re making when you self-host OpenClaw.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You get a powerful, local agent that belongs to you\u2026 And you get to be the one who locks the door.<\/p>\n\n\n\n\n<div class=\"article-cta-shared article-cta-small article-cta--product\">\n\t<div class=\"tr-img-wrap-outer jsLoading\"><img decoding=\"async\" class=\"js-img-lazy \" src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/lazy-loading-transparent.webp\" data-srcset=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/06\/cta_image_a-877x522.webp 1x, https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/06\/cta_image_a.webp 2x\"  \/><\/div>\n\n\t<a href='https:\/\/www.dreamhost.com\/hosting\/self-managed-vps\/' class='link-top' target='_blank' rel='noopener noreferrer'>\n\t\t<span>Self-Managed VPS<\/span>\n\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 384 512\" width=\"15\"><path d=\"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"\/><\/svg>\n\t<\/a>\n\n\t<div class=\"content-btm\">\n\t\t<h2 class=\"h2--md\">\n\t\t\tOwn Your Entire Stack. Apps, AI, Databases, and More.\n\t\t<\/h2>\n\t\t<p class=\"p--md\">\n\t\t\tKeep every credential and conversation on a server you control, with NVMe speed and unmetered bandwidth built in.\n\t\t<\/p>\n\n\t\t        <a\n            href=\"https:\/\/www.dreamhost.com\/hosting\/self-managed-vps\/\"\n                        class=\"btn btn--white-outline btn--sm btn--round\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Explore Self-Managed VPS Plans                    <\/a>\n\n\t<\/div>\n<\/div>\n\n\n<h2 id=\"h2_frequently-asked-questions\" class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Is OpenClaw free?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, OpenClaw is completely free and open source under the MIT license. The software costs nothing. Your only expenses are VPS hosting and AI model API tokens, which typically add up to $11-$35\/month for personal use.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DreamHost&#8217;s <a href=\"https:\/\/www.dreamhost.com\/hosting\/self-managed-vps\/\" target=\"_blank\" rel=\"noreferrer noopener\">Self-Managed VPS<\/a> plans provide the root access and resources you need to run it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can OpenClaw run on a $5\/month VPS?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Technically, yes, but you probably won&#8217;t enjoy it. The <a href=\"https:\/\/docs.openclaw.ai\/install\" target=\"_blank\" rel=\"noreferrer noopener\">official minimum is 2GB RAM<\/a>, and 1GB machines consistently crash with out-of-memory errors during installation. A 2GB VPS can handle a single-channel personal setup, but 4GB gives you headroom for multiple channels without the hiccups.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DreamHost&#8217;s Self-Managed VPS Stack 4 hits that 4GB sweet spot.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is OpenClaw safe to run on a server?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Safe when configured correctly, risky when left at defaults. The single most important step is binding the gateway to 127.0.0.1 (localhost only) and using SSH tunnels or a VPN for remote access.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/blink.new\/blog\/openclaw-2026-cve-complete-timeline-security-history\" target=\"_blank\" rel=\"noreferrer noopener\">ClawJacked vulnerability (CVE-2026-28472, CVSS 8.8)<\/a> showed what happens when instances are left exposed. Patched in under 24 hours, <em>but only if you&#8217;d updated<\/em>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How is OpenClaw different from ChatGPT?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ChatGPT is a chatbot you open in a browser. OpenClaw is a self-hosted AI agent that runs 24\/7 on your server, connects to WhatsApp, Telegram, Discord, and other messaging platforms, and can act autonomously &#8212; executing tasks, responding to messages, and running workflows while you sleep.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ChatGPT Pro costs $200\/month for a browser-only experience. A self-hosted OpenClaw setup costs $11-35\/month and gives you something no ChatGPT plan offers: an always-on agent across all your messaging apps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need to know Linux to install OpenClaw?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Basic terminal comfort is enough. If you can SSH into a server and copy-paste commands, you can install OpenClaw. The scripted installer handles the heavy lifting, and the onboarding wizard walks you through API key configuration step by step.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The security hardening steps do require understanding what firewall rules and port bindings do, but nothing here requires sysadmin-level expertise.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What AI models work with OpenClaw?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">All the major providers work with OpenClaw: Anthropic (Claude), OpenAI (GPT-4o, GPT-4o-mini), Google (Gemini), and local models via Ollama. You can switch models anytime or route different tasks to different models to optimize cost.<\/p>\n\n\n<p><br \/>\n{<br \/>\n  &#8220;@context&#8221;: &#8220;https:\/\/schema.org&#8221;,<br \/>\n  &#8220;@type&#8221;: &#8220;Article&#8221;,<br \/>\n  &#8220;headline&#8221;: &#8220;How to Install OpenClaw on a VPS: Self-Hosted AI Agent Guide&#8221;,<br \/>\n  &#8220;description&#8221;: &#8220;Install OpenClaw on a VPS in under 30 minutes. This step-by-step guide covers requirements, setup, security hardening, and connecting your first messaging channel.&#8221;,<br \/>\n  &#8220;datePublished&#8221;: &#8220;2026-04-15&#8221;,<br \/>\n  &#8220;dateModified&#8221;: &#8220;2026-04-15&#8221;,<br \/>\n  &#8220;author&#8221;: {<br \/>\n    &#8220;@type&#8221;: &#8220;Organization&#8221;,<br \/>\n    &#8220;name&#8221;: &#8220;DreamHost&#8221;,<br \/>\n    &#8220;url&#8221;: &#8220;https:\/\/www.dreamhost.com&#8221;<br \/>\n  },<br \/>\n  &#8220;publisher&#8221;: {<br \/>\n    &#8220;@type&#8221;: &#8220;Organization&#8221;,<br \/>\n    &#8220;name&#8221;: &#8220;DreamHost&#8221;,<br \/>\n    &#8220;url&#8221;: &#8220;https:\/\/www.dreamhost.com&#8221;<br \/>\n  },<br \/>\n  &#8220;mainEntityOfPage&#8221;: &#8220;https:\/\/www.dreamhost.com\/blog\/openclaw-install\/&#8221;<br \/>\n}<br \/>\n<\/p>\n<p><br \/>\n{<br \/>\n  &#8220;@context&#8221;: &#8220;https:\/\/schema.org&#8221;,<br \/>\n  &#8220;@type&#8221;: &#8220;FAQPage&#8221;,<br \/>\n  &#8220;mainEntity&#8221;: [<br \/>\n    {<br \/>\n      &#8220;@type&#8221;: &#8220;Question&#8221;,<br \/>\n      &#8220;name&#8221;: &#8220;Is OpenClaw free?&#8221;,<br \/>\n      &#8220;acceptedAnswer&#8221;: {<br \/>\n        &#8220;@type&#8221;: &#8220;Answer&#8221;,<br \/>\n        &#8220;text&#8221;: &#8220;Yes, OpenClaw is completely free and open source under the MIT license. The software costs nothing. Your only expenses are VPS hosting and AI model API tokens, which typically add up to $11-35\/month for personal use. DreamHost&#8217;s Self-Managed VPS plans provide the root access and resources you need to run it.&#8221;<br \/>\n      }<br \/>\n    },<br \/>\n    {<br \/>\n      &#8220;@type&#8221;: &#8220;Question&#8221;,<br \/>\n      &#8220;name&#8221;: &#8220;Can OpenClaw run on a $5\/month VPS?&#8221;,<br \/>\n      &#8220;acceptedAnswer&#8221;: {<br \/>\n        &#8220;@type&#8221;: &#8220;Answer&#8221;,<br \/>\n        &#8220;text&#8221;: &#8220;Technically yes, but you probably won&#8217;t enjoy it. The official minimum is 2GB RAM, and 1GB machines consistently crash with out-of-memory errors during installation. A 2GB VPS can handle a single-channel personal setup, but 4GB gives you headroom for multiple channels without the hiccups. DreamHost&#8217;s Self-Managed VPS Stack 4 hits that 4GB sweet spot.&#8221;<br \/>\n      }<br \/>\n    },<br \/>\n    {<br \/>\n      &#8220;@type&#8221;: &#8220;Question&#8221;,<br \/>\n      &#8220;name&#8221;: &#8220;Is OpenClaw safe to run on a server?&#8221;,<br \/>\n      &#8220;acceptedAnswer&#8221;: {<br \/>\n        &#8220;@type&#8221;: &#8220;Answer&#8221;,<br \/>\n        &#8220;text&#8221;: &#8220;Safe when configured correctly, risky when left at defaults. The single most important step is binding the gateway to 127.0.0.1 (localhost only) and using SSH tunnels or a VPN for remote access. The ClawJacked vulnerability (CVE-2026-28472, CVSS 8.8) showed what happens when instances are left exposed. Patched in under 24 hours, but only if you&#8217;d updated.&#8221;<br \/>\n      }<br \/>\n    },<br \/>\n    {<br \/>\n      &#8220;@type&#8221;: &#8220;Question&#8221;,<br \/>\n      &#8220;name&#8221;: &#8220;How is OpenClaw different from ChatGPT?&#8221;,<br \/>\n      &#8220;acceptedAnswer&#8221;: {<br \/>\n        &#8220;@type&#8221;: &#8220;Answer&#8221;,<br \/>\n        &#8220;text&#8221;: &#8220;ChatGPT is a chatbot you open in a browser. OpenClaw is a self-hosted AI agent that runs 24\/7 on your server, connects to WhatsApp, Telegram, Discord, and other messaging platforms, and can act autonomously \u2014 executing tasks, responding to messages, and running workflows while you sleep. ChatGPT Pro costs $200\/month for a browser-only experience. A self-hosted OpenClaw setup costs $11-35\/month and gives you something no ChatGPT plan offers \u2014 an always-on agent across all your messaging apps.&#8221;<br \/>\n      }<br \/>\n    },<br \/>\n    {<br \/>\n      &#8220;@type&#8221;: &#8220;Question&#8221;,<br \/>\n      &#8220;name&#8221;: &#8220;Do I need to know Linux to install OpenClaw?&#8221;,<br \/>\n      &#8220;acceptedAnswer&#8221;: {<br \/>\n        &#8220;@type&#8221;: &#8220;Answer&#8221;,<br \/>\n        &#8220;text&#8221;: &#8220;Basic terminal comfort is enough. If you can SSH into a server and copy-paste commands, you can install OpenClaw. The scripted installer handles the heavy lifting, and the onboarding wizard walks you through API key configuration step by step. The security hardening steps do require understanding what firewall rules and port bindings do, but nothing here requires sysadmin-level expertise.&#8221;<br \/>\n      }<br \/>\n    },<br \/>\n    {<br \/>\n      &#8220;@type&#8221;: &#8220;Question&#8221;,<br \/>\n      &#8220;name&#8221;: &#8220;What AI models work with OpenClaw?&#8221;,<br \/>\n      &#8220;acceptedAnswer&#8221;: {<br \/>\n        &#8220;@type&#8221;: &#8220;Answer&#8221;,<br \/>\n        &#8220;text&#8221;: &#8220;All the major providers work with OpenClaw: Anthropic (Claude), OpenAI (GPT-4o, GPT-4o-mini), Google (Gemini), and local models via Ollama. You can switch models anytime or route different tasks to different models to optimize cost. Smart routing cuts API costs by 60-80% by sending easy tasks to cheap models and reserving expensive models for complex reasoning.&#8221;<br \/>\n      }<br \/>\n    }<br \/>\n  ]<br \/>\n}<br \/>\n<\/p>","protected":false},"excerpt":{"rendered":"<p>Install OpenClaw on a VPS in under 30 minutes. This guide covers server requirements, installation methods, security hardening, and connecting WhatsApp and Telegram.<\/p>\n","protected":false},"author":2,"featured_media":81282,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"toc_headlines":"[[\"h-what-is-openclaw-and-why-self-host-it\",\"What Is OpenClaw and Why Self-Host It?\"],[\"h2_what-do-you-need-to-run-openclaw-on-a-vps\",\"What Do You Need To Run OpenClaw on a VPS?\"],[\"h2_which-vps-plan-should-you-choose-for-openclaw\",\"Which VPS Plan Should You Choose for OpenClaw?\"],[\"h2_how-much-does-it-cost-to-run-self-hosted-openclaw\",\"How Much Does It Cost To Run Self-Hosted OpenClaw?\"],[\"h2_when-not-to-self-host-openclaw\",\"When NOT to Self-Host OpenClaw\"],[\"h2_how-do-you-install-openclaw-on-a-linux-vps\",\"How Do You Install OpenClaw on a Linux VPS?\"],[\"h2_how-do-you-secure-openclaw-on-a-vps\",\"How Do You Secure OpenClaw on a VPS?\"],[\"h2_how-do-you-connect-openclaw-to-whatsapp-or-telegram\",\"How Do You Connect OpenClaw to WhatsApp or Telegram?\"],[\"h2_what-should-you-do-after-installing-openclaw\",\"What Should You Do After Installing OpenClaw?\"],[\"h2_where-to-go-from-here\",\"Where To Go From Here\"],[\"h2_frequently-asked-questions\",\"Frequently Asked Questions\"]]","hide_toc":false,"footnotes":""},"categories":[14839],"tags":[],"class_list":["post-81273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.3 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Self-Host OpenClaw on a VPS - DreamHost<\/title>\n<meta name=\"description\" content=\"Install OpenClaw on a VPS in under 30 minutes. This guide covers server requirements, installation methods, security hardening, and connecting WhatsApp and Telegram.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install OpenClaw on a VPS: Self-Hosted AI Agent Guide\" \/>\n<meta property=\"og:description\" content=\"Run your own AI agent on a $15\/month VPS. This guide covers OpenClaw installation, security hardening, and connecting WhatsApp or Telegram in 30 minutes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/\" \/>\n<meta property=\"og:site_name\" content=\"DreamHost Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DreamHost\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-06-18T14:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-18T14:31:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/1220-x-628-OGIMAGE_Install-OpenClaw-on-a-VPS_-Self-Hosted-AI-Agent-Guide_1x.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Dallas Kashuba\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Install OpenClaw on a VPS: Self-Hosted AI Agent Guide\" \/>\n<meta name=\"twitter:description\" content=\"Run your own AI agent on a $15\/month VPS. This guide covers OpenClaw installation, security hardening, and connecting WhatsApp or Telegram in 30 minutes.\" \/>\n<meta name=\"twitter:creator\" content=\"@http:\/\/twitter.com\/dallas\" \/>\n<meta name=\"twitter:site\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dallas Kashuba\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Self-Host OpenClaw on a VPS - DreamHost","description":"Install OpenClaw on a VPS in under 30 minutes. This guide covers server requirements, installation methods, security hardening, and connecting WhatsApp and Telegram.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/","og_locale":"en_US","og_type":"article","og_title":"Install OpenClaw on a VPS: Self-Hosted AI Agent Guide","og_description":"Run your own AI agent on a $15\/month VPS. This guide covers OpenClaw installation, security hardening, and connecting WhatsApp or Telegram in 30 minutes.","og_url":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/","og_site_name":"DreamHost Blog","article_publisher":"https:\/\/www.facebook.com\/DreamHost\/","article_published_time":"2026-06-18T14:30:00+00:00","article_modified_time":"2026-06-18T14:31:12+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/1220-x-628-OGIMAGE_Install-OpenClaw-on-a-VPS_-Self-Hosted-AI-Agent-Guide_1x.webp","type":"image\/webp"}],"author":"Dallas Kashuba","twitter_card":"summary_large_image","twitter_title":"Install OpenClaw on a VPS: Self-Hosted AI Agent Guide","twitter_description":"Run your own AI agent on a $15\/month VPS. This guide covers OpenClaw installation, security hardening, and connecting WhatsApp or Telegram in 30 minutes.","twitter_creator":"@http:\/\/twitter.com\/dallas","twitter_site":"@dreamhost","twitter_misc":{"Written by":"Dallas Kashuba","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/#article","isPartOf":{"@id":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/"},"author":{"name":"Dallas Kashuba","@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/person\/f6a12ad459538e8e418cf31b8b603814"},"headline":"How To Self-Host OpenClaw on a VPS","datePublished":"2026-06-18T14:30:00+00:00","dateModified":"2026-06-18T14:31:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/"},"wordCount":4037,"publisher":{"@id":"https:\/\/www.dreamhost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/1460x1095-BLOG-HERO-Install-OpenClaw-on-a-VPS_-Self-Hosted-AI-Agent-Guide_1x.webp","articleSection":["AI"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/","url":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/","name":"How to Self-Host OpenClaw on a VPS - DreamHost","isPartOf":{"@id":"https:\/\/www.dreamhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/#primaryimage"},"image":{"@id":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/1460x1095-BLOG-HERO-Install-OpenClaw-on-a-VPS_-Self-Hosted-AI-Agent-Guide_1x.webp","datePublished":"2026-06-18T14:30:00+00:00","dateModified":"2026-06-18T14:31:12+00:00","description":"Install OpenClaw on a VPS in under 30 minutes. This guide covers server requirements, installation methods, security hardening, and connecting WhatsApp and Telegram.","breadcrumb":{"@id":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dreamhost.com\/blog\/openclaw-install\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/#primaryimage","url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/1460x1095-BLOG-HERO-Install-OpenClaw-on-a-VPS_-Self-Hosted-AI-Agent-Guide_1x.webp","contentUrl":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2026\/05\/1460x1095-BLOG-HERO-Install-OpenClaw-on-a-VPS_-Self-Hosted-AI-Agent-Guide_1x.webp","width":1460,"height":1095,"caption":"How To Self-Host OpenClaw on a VPS"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dreamhost.com\/blog\/openclaw-install\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dreamhost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Self-Host OpenClaw on a VPS"}]},{"@type":"WebSite","@id":"https:\/\/www.dreamhost.com\/blog\/#website","url":"https:\/\/www.dreamhost.com\/blog\/","name":"DreamHost Blog","description":"","publisher":{"@id":"https:\/\/www.dreamhost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dreamhost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dreamhost.com\/blog\/#organization","name":"DreamHost","url":"https:\/\/www.dreamhost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","contentUrl":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","width":1200,"height":168,"caption":"DreamHost"},"image":{"@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DreamHost\/","https:\/\/x.com\/dreamhost","https:\/\/www.instagram.com\/dreamhost\/","https:\/\/www.linkedin.com\/company\/dreamhost\/","https:\/\/www.youtube.com\/user\/dreamhostusa"]},{"@type":"Person","@id":"https:\/\/www.dreamhost.com\/blog\/#\/schema\/person\/f6a12ad459538e8e418cf31b8b603814","name":"Dallas Kashuba","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/05ab6fb1606be97d16c74efb0fba01b3c11e91501dc5f9661bdfbb5c5b0cd113?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/05ab6fb1606be97d16c74efb0fba01b3c11e91501dc5f9661bdfbb5c5b0cd113?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/05ab6fb1606be97d16c74efb0fba01b3c11e91501dc5f9661bdfbb5c5b0cd113?s=96&d=mm&r=g","caption":"Dallas Kashuba"},"sameAs":["http:\/\/www.idallas.com\/","https:\/\/x.com\/http:\/\/twitter.com\/dallas"],"url":"https:\/\/www.dreamhost.com\/blog\/author\/dallas\/"}]}},"lang":"en","translations":{"en":81273},"pll_sync_post":{},"_links":{"self":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/81273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/comments?post=81273"}],"version-history":[{"count":8,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/81273\/revisions"}],"predecessor-version":[{"id":81975,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/81273\/revisions\/81975"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/media\/81282"}],"wp:attachment":[{"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/media?parent=81273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/categories?post=81273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dreamhost.com\/blog\/wp-json\/wp\/v2\/tags?post=81273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}