<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>self-hosting &#8211; Aveshost Blog</title>
	<atom:link href="https://blog.aveshost.com/tag/self-hosting/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.aveshost.com</link>
	<description>Your Blueprint for Online Success</description>
	<lastBuildDate>Mon, 23 Nov 2026 21:23:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://blog.aveshost.com/wp-content/uploads/2026/01/logo-150x150.png</url>
	<title>self-hosting &#8211; Aveshost Blog</title>
	<link>https://blog.aveshost.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Self-Host NocoDB on a VPS with PostgreSQL and HTTPS</title>
		<link>https://blog.aveshost.com/self-host-nocodb-vps-postgresql-https/</link>
					<comments>https://blog.aveshost.com/self-host-nocodb-vps-postgresql-https/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Mon, 23 Nov 2026 21:23:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[NocoDB]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[vps hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6150</guid>

					<description><![CDATA[A complete production guide to self-hosting NocoDB on a Linux VPS using Docker Compose and PostgreSQL—covering NC_DB, NC_AUTH_JWT_SECRET, NC_PUBLIC_URL, Caddy/Nginx HTTPS reverse proxy, and firewall hardening.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Learning how to <strong>self-host NocoDB</strong> on your own Linux VPS gives your team an open-source Airtable alternative without per-seat SaaS fees or row-count limits. NocoDB turns any relational database into a fast collaborative spreadsheet UI with kanban boards, forms, webhooks, and a full REST API.</p>



<p class="wp-block-paragraph">While NocoDB can start quickly on embedded SQLite for local testing, production teams should pair it with <strong>PostgreSQL</strong> for concurrent multi-user writes, reliable backups, and cleaner scaling—especially when deployed behind an HTTPS reverse proxy like Caddy or Nginx.</p>



<p class="wp-block-paragraph">Whether you run <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> or <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS hosting</a> with Aveshost, this guide walks through deploying NocoDB with Docker Compose, PostgreSQL 16, automatic Let&#8217;s Encrypt HTTPS, and essential security hardening.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#why-pair-nocodb-with-postgresql-and-a-reverse-proxy">Why Pair NocoDB with PostgreSQL and a Reverse Proxy</a></div><div><a href="#prerequisites-and-environment-variables">Prerequisites and Required NocoDB Environment Variables</a></div><div><a href="#step-1-deploy-nocodb-and-postgresql-with-docker-compose">Step 1: Deploy NocoDB and PostgreSQL 16 with Docker Compose</a></div><div><a href="#step-2-configure-https-with-caddy-or-nginx">Step 2: Add Automatic HTTPS with Caddy (or Nginx + Certbot)</a></div><div><a href="#step-3-backups-and-production-hardening">Step 3: Back Ups, Firewall Rules, and Production Checklist</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="why-pair-nocodb-with-postgresql-and-a-reverse-proxy" class="wp-block-heading">Why Pair NocoDB with PostgreSQL and a Reverse Proxy</h2>



<p class="wp-block-paragraph">Out of the box, NocoDB stores metadata in SQLite when no external database is configured. For solo experiments that works fine, but as soon as multiple teammates edit views, trigger webhooks, or upload attachments simultaneously, PostgreSQL eliminates write-lock contention (see our <a href="https://blog.aveshost.com/sqlite-vs-postgresql-vps/">SQLite vs PostgreSQL on a VPS comparison</a>).</p>



<p class="wp-block-paragraph">Separating storage into two layers also makes upgrades safer: PostgreSQL holds your workspace metadata, table schemas, and user permissions, while the <code>nocodb_data</code> Docker volume mounted at <code>/usr/app/data</code> stores uploaded file attachments and runtime state. You can recreate or upgrade the NocoDB container anytime without touching your relational data.</p>



<p class="wp-block-paragraph">Binding NocoDB strictly to <code>127.0.0.1:8080</code> and placing Caddy or Nginx in front of it keeps port <code>8080</code> and PostgreSQL port <code>5432</code> completely off the public internet while terminating TLS on port <code>443</code>.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-architecture.webp" alt="Architecture diagram showing self-hosted NocoDB behind Caddy or Nginx HTTPS proxy connected to PostgreSQL 16" class="wp-image-6148" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-architecture.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-architecture-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-architecture-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-architecture-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="prerequisites-and-environment-variables" class="wp-block-heading">Prerequisites and Required NocoDB Environment Variables</h2>



<p class="wp-block-paragraph">Prepare an Ubuntu 22.04 or 24.04 VPS (at least 2 GB RAM recommended for PostgreSQL + NocoDB) with Docker Engine and Docker Compose installed, and point an A record (such as <code>nocodb.yourdomain.com</code>) to your server&#8217;s public IPv4 address. If you are setting up a fresh server, check our <a href="https://blog.aveshost.com/deploy-fastapi-ubuntu-vps/">Ubuntu VPS setup guide</a> for initial SSH and UFW steps.</p>



<p class="wp-block-paragraph">According to the <a href="https://docs.nocodb.com/getting-started/installation/" rel="noopener">official NocoDB installation documentation</a>, three environment variables matter most for a stable PostgreSQL + HTTPS deployment:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Environment Variable</th><th>Purpose</th><th>Production Example / Note</th></tr></thead><tbody><tr><td>NC_DB</td><td>PostgreSQL connection string for NocoDB metadata</td><td>pg://postgres:5432?u=nocodb&amp;p=STRONG_PASS&amp;d=nocodb</td></tr><tr><td>NC_AUTH_JWT_SECRET</td><td>Signs user session and API JWT tokens</td><td>Generate a long random 32+ character secret</td></tr><tr><td>NC_PUBLIC_URL</td><td>Canonical HTTPS URL behind reverse proxy</td><td>https://nocodb.yourdomain.com (fixes webhooks &amp; links)</td></tr></tbody></table></figure>



<h2 id="step-1-deploy-nocodb-and-postgresql-with-docker-compose" class="wp-block-heading">Step 1: Deploy NocoDB and PostgreSQL 16 with Docker Compose</h2>



<p class="wp-block-paragraph">Create a project directory such as <code>/opt/nocodb</code> and save the <code>docker-compose.yml</code> file below. Two details make this production-ready: first, binding NocoDB&#8217;s port to <code>127.0.0.1:8080:8080</code> instead of <code>8080:8080</code> prevents Docker from bypassing UFW on the public interface (<a href="https://blog.aveshost.com/docker-ufw-unexpected-ports/">Docker and UFW port safety guide</a>).</p>



<p class="wp-block-paragraph">Second, adding a <code>pg_isready</code> healthcheck on the PostgreSQL service with <code>condition: service_healthy</code> guarantees NocoDB does not crash on boot while PostgreSQL is still initializing its data directory. Also make sure <code>NC_AUTH_JWT_SECRET</code> is set explicitly in your environment or <code>.env</code> file rather than left blank; otherwise, container restarts invalidate active user sessions.</p>



<p class="wp-block-paragraph">Start the stack with <code>sudo docker compose up -d</code> and check <code>sudo docker compose logs -f nocodb</code> until it reports listening on port <code>8080</code>. You can verify the container health locally with <code>curl -I http://127.0.0.1:8080/api/v1/health</code> before wiring up your domain.</p>



<pre class="wp-block-code"><code>services:
  postgres:
    image: postgres:16-alpine
    restart: unless-stopped
    environment:
      POSTGRES_DB: nocodb
      POSTGRES_USER: nocodb
      POSTGRES_PASSWORD: CHANGE_ME_STRONG_DB_PASSWORD
    volumes:
      - pg_data:/var/lib/postgresql/data
    healthcheck:
      test: &#91;"CMD-SHELL", "pg_isready -U nocodb -d nocodb"]
      interval: 10s
      timeout: 5s
      retries: 10

  nocodb:
    image: nocodb/nocodb:latest
    restart: unless-stopped
    depends_on:
      postgres:
        condition: service_healthy
    ports:
      - "127.0.0.1:8080:8080"
    environment:
      NC_DB: "pg://postgres:5432?u=nocodb&amp;p=CHANGE_ME_STRONG_DB_PASSWORD&amp;d=nocodb"
      NC_AUTH_JWT_SECRET: "REPLACE_WITH_LONG_RANDOM_SECRET"
      NC_PUBLIC_URL: "https://nocodb.yourdomain.com"
    volumes:
      - nocodb_data:/usr/app/data

volumes:
  pg_data:
  nocodb_data:</code></pre>



<pre class="wp-block-code"><code>sudo docker compose up -d
sudo docker compose logs -f nocodb</code></pre>



<h2 id="step-2-configure-https-with-caddy-or-nginx" class="wp-block-heading">Step 2: Add Automatic HTTPS with Caddy (or Nginx + Certbot)</h2>



<p class="wp-block-paragraph">With NocoDB listening on <code>127.0.0.1:8080</code>, configure a reverse proxy to terminate HTTPS on port <code>443</code>. <strong>Caddy</strong> is the fastest option because it obtains and renews Let&#8217;s Encrypt TLS certificates automatically with a five-line <code>Caddyfile</code>.</p>



<p class="wp-block-paragraph">If you already run Nginx on your VPS, create a standard server block with <code>proxy_pass http://127.0.0.1:8080</code> (including WebSocket <code>Upgrade</code> and <code>X-Forwarded-Proto</code> headers) and run <code>sudo certbot --nginx -d nocodb.yourdomain.com</code>.</p>



<p class="wp-block-paragraph">Open <code>https://nocodb.yourdomain.com</code> in your browser to create your first Super Admin account. Because <code>NC_PUBLIC_URL</code> matches your domain, shared views, invite links, and API docs will all resolve cleanly over HTTPS.</p>



<pre class="wp-block-code"><code># /etc/caddy/Caddyfile
nocodb.yourdomain.com {
    reverse_proxy 127.0.0.1:8080
}</code></pre>



<pre class="wp-block-code"><code># Optional UFW firewall check
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw status</code></pre>



<h2 id="step-3-backups-and-production-hardening" class="wp-block-heading">Step 3: Back Ups, Firewall Rules, and Production Checklist</h2>



<p class="wp-block-paragraph">To keep your NocoDB instance resilient on <a href="https://www.aveshost.com/" rel="noopener">Aveshost</a> self-managed VPS hosting or fully managed VPS hosting, keep only ports <code>80</code> and <code>443</code> open publicly in UFW. If you only want internal team access—or want to lock down SSH—pair your VPS with <a href="https://blog.aveshost.com/secure-vps-access-tailscale-without-public-ports/">Tailscale private VPS access</a>.</p>



<p class="wp-block-paragraph">Never expose PostgreSQL port <code>5432</code> in your Compose file or firewall; keeping PostgreSQL on the internal Docker bridge network ensures only the NocoDB container can query it. When applying container updates later, pull the new image and recreate only the application service with <code>sudo docker compose pull &amp;&amp; sudo docker compose up -d</code>.</p>



<p class="wp-block-paragraph">Finally, schedule automated daily <code>pg_dump</code> exports of your PostgreSQL database alongside backups of the <code>nocodb_data</code> volume (<code>/usr/app/data</code>) so both structured tables and uploaded attachments can be restored cleanly. Test restoring a dump to a staging container periodically to confirm your backup files are complete.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-production-checklist.webp" alt="Six-step production checklist for self-hosting NocoDB with PostgreSQL and HTTPS on a VPS" class="wp-image-6149" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-production-checklist.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-production-checklist-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-production-checklist-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/nocodb-vps-production-checklist-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<pre class="wp-block-code"><code># Daily PostgreSQL dump
sudo docker compose exec -T postgres pg_dump -U nocodb nocodb &gt; /opt/nocodb/nocodb-backup.sql</code></pre>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-ce89c46a56d646bda42c3f19ac2e6ed0" class="rank-math-list-item">
<h3 class="rank-math-question ">How much RAM does a self-hosted NocoDB + PostgreSQL VPS need?</h3>
<div class="rank-math-answer ">

<p>While NocoDB can boot on 1 GB RAM for light testing, 2 GB to 4 GB RAM is recommended on an Ubuntu VPS when running PostgreSQL 16, NocoDB, and a reverse proxy together in production.</p>

</div>
</div>
<div id="faq-question-78d5f776f32e4780ade24e15c0a12250" class="rank-math-list-item">
<h3 class="rank-math-question ">Why should I set NC_PUBLIC_URL when running NocoDB behind Caddy or Nginx?</h3>
<div class="rank-math-answer ">

<p>Without NC_PUBLIC_URL set to your full https:// domain, NocoDB may generate localhost or HTTP links for shared views, password resets, OAuth callbacks, and webhook payloads behind a reverse proxy.</p>

</div>
</div>
<div id="faq-question-7b593bcd9cc84ee38faa6ca60d7af8ba" class="rank-math-list-item">
<h3 class="rank-math-question ">Why bind NocoDB to 127.0.0.1:8080:8080 instead of 8080:8080 in Docker Compose?</h3>
<div class="rank-math-answer ">

<p>Binding to 127.0.0.1 ensures only your local Caddy or Nginx reverse proxy can reach NocoDB, preventing Docker&#8217;s iptables rules from exposing unencrypted port 8080 to the public internet.</p>

</div>
</div>
<div id="faq-question-ac62d359a6ac45ffbcf2ffb1a18e6293" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I migrate NocoDB from SQLite to PostgreSQL later?</h3>
<div class="rank-math-answer ">

<p>Starting directly on PostgreSQL 16 is much simpler for production. If you already run SQLite, NocoDB supports connecting external PostgreSQL data sources or exporting/migrating bases, though starting with NC_DB pointed at PostgreSQL avoids manual metadata migration.</p>

</div>
</div>
<div id="faq-question-e583ba808e09421fb6dcf3717dc210cf" class="rank-math-list-item">
<h3 class="rank-math-question ">Which reverse proxy is easier for NocoDB HTTPS: Caddy or Nginx?</h3>
<div class="rank-math-answer ">

<p>Caddy is simpler for single-app VPS setups because it provisions and renews Let&#8217;s Encrypt TLS certificates automatically with minimal config. Nginx + Certbot is ideal if you already host multiple sites on the same VPS.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/self-host-nocodb-vps-postgresql-https/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Headscale vs Tailscale: Should You Host Your Own Control Server?</title>
		<link>https://blog.aveshost.com/headscale-vs-tailscale-control-server/</link>
					<comments>https://blog.aveshost.com/headscale-vs-tailscale-control-server/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Mon, 23 Nov 2026 12:31:12 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Headscale]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[Tailscale]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[vps hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6144</guid>

					<description><![CDATA[An engineering comparison of Headscale vs Tailscale—explaining how both share the WireGuard data plane while differing on control-plane sovereignty, DERP relays, Tailscale Funnel, OIDC, and VPS operations.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Comparing <strong>Headscale vs Tailscale</strong> is different from most software rivalries because both use the exact same official Tailscale client apps and WireGuard data plane. What changes is the <strong>control server</strong>—the coordination layer that registers devices, distributes public keys, pushes ACL policies, and manages MagicDNS.</p>



<p class="wp-block-paragraph">Tailscale gives you a zero-maintenance cloud control plane with global DERP relays, Funnel, and a polished admin console. Headscale is an open-source, self-hosted implementation of that control server that runs on your own Linux VPS, giving you full data sovereignty and zero per-user licensing fees.</p>



<p class="wp-block-paragraph">Whether you run <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> or <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS hosting</a> with Aveshost, this guide breaks down every technical trade-off in <strong>Headscale vs Tailscale</strong> so you know when self-hosting is worth the operational effort.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#headscale-vs-tailscale-at-a-glance">Headscale vs Tailscale at a Glance</a></div><div><a href="#control-plane-vs-data-plane-architecture">Control Plane vs Data Plane: What Self-Hosting Actually Changes</a></div><div><a href="#key-limitations-and-operational-trade-offs-of-headscale">Key Limitations &amp; Operational Trade-Offs of Headscale</a></div><div><a href="#should-you-host-your-own-control-server">Should You Host Your Own Control Server?</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="headscale-vs-tailscale-at-a-glance" class="wp-block-heading">Headscale vs Tailscale at a Glance</h2>



<p class="wp-block-paragraph">If you are still getting familiar with private mesh networking, start with our <a href="https://blog.aveshost.com/secure-vps-access-tailscale-without-public-ports/">guide to securing VPS access with Tailscale</a>. Once you understand how WireGuard tunnels work, here is how the managed Tailscale SaaS control plane compares with self-hosting Headscale on a VPS:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Feature / Dimension</th><th>Tailscale (Managed SaaS)</th><th>Headscale (Self-Hosted OSS)</th></tr></thead><tbody><tr><td>Control Plane Location</td><td>Tailscale Inc. cloud infrastructure</td><td>Your own Linux VPS (behind Nginx or Caddy HTTPS)</td></tr><tr><td>WireGuard Data Plane</td><td>Official Tailscale clients (P2P encrypted)</td><td>Official Tailscale clients (identical P2P encryption)</td></tr><tr><td>DERP Relays</td><td>Global managed network of automatic relays</td><td>Public DERP map or self-hosted embedded DERP (UDP 3478)</td></tr><tr><td>Tailscale Funnel</td><td>Supported (public internet ingress)</td><td>Not supported</td></tr><tr><td>Tailscale SSH &amp; Taildrop</td><td>Supported</td><td>Supported</td></tr><tr><td>Multi-Tenancy</td><td>Native multi-org &amp; separate tailnets</td><td>Single-tailnet architecture partitioned by ACLs</td></tr><tr><td>Cost Model</td><td>Free tier (up to 100 devices) / per-user paid tiers</td><td>Free open source (pay only for your VPS)</td></tr></tbody></table></figure>



<h2 id="control-plane-vs-data-plane-architecture" class="wp-block-heading">Control Plane vs Data Plane: What Self-Hosting Actually Changes</h2>



<p class="wp-block-paragraph">Even when using managed Tailscale, your peer-to-peer traffic is encrypted end-to-end with WireGuard keys that Tailscale cannot decrypt. However, Tailscale&#8217;s cloud control plane still stores your node inventory, IP assignments, login emails, and network topology.</p>



<p class="wp-block-paragraph">With <a href="https://headscale.net/" rel="noopener">Headscale</a>, you move that coordination database onto your own VPS (using SQLite for small deployments or <a href="https://blog.aveshost.com/sqlite-vs-postgresql-vps/">PostgreSQL on a VPS</a> for larger production fleets). Your Windows, macOS, Linux, and mobile devices still run the official Tailscale app—you simply pass <code>--login-server https://headscale.yourdomain.com</code> during registration.</p>



<p class="wp-block-paragraph">Because Tailscale clients require HTTPS to communicate with the coordination server, you will run Headscale behind Caddy or Nginx with a valid Let&#8217;s Encrypt TLS certificate, and back up your Headscale database and Noise private key regularly so nodes never lose their registered identities.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-architecture.webp" alt="Control plane architecture diagram comparing managed Tailscale cloud against self-hosted Headscale on a VPS" class="wp-image-6142" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-architecture.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-architecture-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-architecture-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-architecture-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="key-limitations-and-operational-trade-offs-of-headscale" class="wp-block-heading">Key Limitations &amp; Operational Trade-Offs of Headscale</h2>



<p class="wp-block-paragraph">Before spinning up Headscale to save on SaaS seats, weigh four real-world differences that surprise teams migrating from managed Tailscale:</p>



<p class="wp-block-paragraph">• <strong>1. No Tailscale Funnel:</strong> Because Tailscale Funnel relies on Tailscale&#8217;s proprietary public edge ingress nodes, Headscale does not support Funnel. If you need public webhooks alongside private tools—such as <a href="https://blog.aveshost.com/access-openclaw-privately-with-tailscale/">accessing OpenClaw privately with Tailscale</a>—you will expose public routes via Nginx or Caddy on your VPS instead.</p>



<p class="wp-block-paragraph">• <strong>2. Single-Tailnet Design:</strong> Headscale is built around a single shared tailnet. To separate teams, clients, or staging servers, you must enforce strict HuJSON ACLs—and remember that Headscale loads no ACL file by default (meaning allow-all until you define deny-by-default rules).</p>



<p class="wp-block-paragraph">• <strong>3. DERP Relay Responsibility:</strong> Headscale includes an optional embedded DERP server (requiring HTTPS port <code>443</code> and STUN UDP port <code>3478</code>). If you remove Tailscale&#8217;s public DERP list for maximum privacy, your single Headscale VPS becomes a single point of failure for any device stuck behind symmetric NAT.</p>



<p class="wp-block-paragraph">• <strong>4. OIDC &amp; CLI Administration:</strong> Headscale is CLI-first out of the box (though community web UIs exist) and supports OIDC providers like Keycloak, Authentik, and Google. Always restrict <code>oidc.allowed_domains</code> or groups so random users cannot register nodes.</p>



<h2 id="should-you-host-your-own-control-server" class="wp-block-heading">Should You Host Your Own Control Server?</h2>



<p class="wp-block-paragraph">Choosing between <strong>Headscale vs Tailscale</strong> comes down to whether your priority is zero-maintenance convenience or complete control-plane ownership:</p>



<p class="wp-block-paragraph">• <strong>Stick with Managed Tailscale When:</strong> You have fewer than 100 devices on the free Personal plan, rely on Tailscale Funnel or global multi-region DERP relays, or want zero control-plane upkeep.</p>



<p class="wp-block-paragraph">• <strong>Self-Host Headscale on a VPS When:</strong> You are scaling past free user limits, require strict compliance keeping node metadata off third-party clouds, or already run <a href="https://www.aveshost.com/" rel="noopener">Aveshost</a> self-managed VPS hosting or fully managed VPS hosting with automated backups and reverse proxies.</p>



<p class="wp-block-paragraph">• <strong>Keep an Easy Migration Path:</strong> Because both options use the exact same Tailscale client binaries, moving a device from Tailscale Cloud to Headscale (or back) only requires re-running <code>tailscale up</code> with or without the <code>--login-server</code> flag and updating your ACL policy.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-decision-matrix.webp" alt="Six-factor decision matrix for choosing between Headscale self-hosted control server and managed Tailscale" class="wp-image-6143" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-decision-matrix.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-decision-matrix-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-decision-matrix-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/headscale-vs-tailscale-decision-matrix-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<pre class="wp-block-code"><code># Register an official Tailscale client with your self-hosted Headscale VPS
sudo tailscale up --login-server https://headscale.yourdomain.com

# If enabling Headscale embedded DERP on your Ubuntu VPS, allow STUN UDP 3478
sudo ufw allow 443/tcp
sudo ufw allow 3478/udp</code></pre>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-8949b0cf35f44db697e9d0265dd9e830" class="rank-math-list-item">
<h3 class="rank-math-question ">Do I need a special client app to connect to Headscale?</h3>
<div class="rank-math-answer ">

<p>No. Headscale works with the official Tailscale desktop, server, and mobile client apps. You simply pass your Headscale server URL using &#8211;login-server when running tailscale up (or configure the custom server URL in mobile/desktop settings).</p>

</div>
</div>
<div id="faq-question-919a5736abd34292895e752c5d94cdcd" class="rank-math-list-item">
<h3 class="rank-math-question ">Does Headscale support Tailscale SSH and Taildrop?</h3>
<div class="rank-math-answer ">

<p>Yes. Headscale supports both Tailscale SSH and Taildrop peer-to-peer file sharing, because both features operate over the standard WireGuard data plane coordinated by your control server.</p>

</div>
</div>
<div id="faq-question-f715163c2c4c4d30956680202fb9a714" class="rank-math-list-item">
<h3 class="rank-math-question ">Why does Headscale not support Tailscale Funnel?</h3>
<div class="rank-math-answer ">

<p>Tailscale Funnel depends on Tailscale Inc.&#8217;s proprietary public edge ingress nodes to route public internet traffic into a private tailnet. Because Headscale runs independently on your own VPS, you should use Nginx, Caddy, or Cloudflare Tunnels if you need public HTTPS ingress.</p>

</div>
</div>
<div id="faq-question-a6e87aa3dac04d61ad3b27c49932b337" class="rank-math-list-item">
<h3 class="rank-math-question ">Is Headscale secure out of the box?</h3>
<div class="rank-math-answer ">

<p>You must configure an ACL policy file right away. By default, Headscale loads no ACL policy, which allows all registered nodes on the single tailnet to communicate with each other—and if you enable OIDC, restrict allowed domains or groups strictly.</p>

</div>
</div>
<div id="faq-question-38970f02897e45208caf18fd56f4d063" class="rank-math-list-item">
<h3 class="rank-math-question ">What VPS specs do I need to self-host Headscale?</h3>
<div class="rank-math-answer ">

<p>Headscale is a lightweight Go binary. A 1 vCPU, 1 GB RAM Ubuntu VPS easily coordinates hundreds of nodes, especially when paired with PostgreSQL and a TLS reverse proxy like Caddy or Nginx.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/headscale-vs-tailscale-control-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Access OpenClaw Privately with Tailscale</title>
		<link>https://blog.aveshost.com/access-openclaw-privately-with-tailscale/</link>
					<comments>https://blog.aveshost.com/access-openclaw-privately-with-tailscale/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Mon, 23 Nov 2026 11:31:44 +0000</pubDate>
				<category><![CDATA[AI Insights]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[AI agents]]></category>
		<category><![CDATA[OpenClaw]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[Tailscale]]></category>
		<category><![CDATA[VPS Security]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6138</guid>

					<description><![CDATA[A step-by-step guide on how to access OpenClaw privately with Tailscale Serve—keeping your Gateway bound strictly to loopback (127.0.0.1:18789) while serving automatic HTTPS over your private MagicDNS tailnet.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Knowing how to <strong>access OpenClaw privately with Tailscale</strong> lets you use your AI agent dashboard, webhooks, and control UI from any laptop or phone without ever exposing port <code>18789</code> to the public internet.</p>



<p class="wp-block-paragraph">Because OpenClaw has shell, file, and tool execution permissions, leaving its Gateway bound to <code>0.0.0.0</code> or behind an unauthenticated reverse proxy creates unnecessary risk. By keeping OpenClaw bound to <code>127.0.0.1</code> (loopback) and enabling <strong>Tailscale Serve</strong>, Tailscale terminates HTTPS certificates automatically over your private MagicDNS hostname and verifies tailnet identity before any request reaches your Gateway.</p>



<p class="wp-block-paragraph">Whether you host OpenClaw on <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> or <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS hosting</a> with Aveshost, this guide walks through prerequisites, CLI and config setup, identity headers, and firewall verification.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#how-openclaw-and-tailscale-serve-work-together">How OpenClaw and Tailscale Serve Work Together</a></div><div><a href="#prerequisites-in-tailscale-admin-console">Prerequisites: MagicDNS, HTTPS Certificates, and Auth Mode</a></div><div><a href="#step-1-configure-openclaw-for-tailscale-serve">Step 1: Configure OpenClaw for Loopback + Tailscale Serve</a></div><div><a href="#step-2-enable-tailscale-identity-verification">Step 2: Verify Identity Headers and Connect Over HTTPS</a></div><div><a href="#step-3-lock-down-ufw-and-verify-no-public-exposure">Step 3: Verify Zero Public Exposure on Your VPS</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="how-openclaw-and-tailscale-serve-work-together" class="wp-block-heading">How OpenClaw and Tailscale Serve Work Together</h2>



<p class="wp-block-paragraph">If you are new to private mesh networking, our <a href="https://blog.aveshost.com/secure-vps-access-tailscale-without-public-ports/">Tailscale VPS security guide</a> explains how Tailscale assigns each authorized device a private <code>100.x.y.z</code> WireGuard address.</p>



<p class="wp-block-paragraph">Instead of opening port <code>18789</code> in UFW or managing Nginx and Certbot manually for an internal dashboard, <a href="https://docs.openclaw.ai/gateway/tailscale" rel="noopener">OpenClaw&#8217;s Tailscale integration</a> pairs two clean layers:</p>



<p class="wp-block-paragraph">• <strong>Loopback Gateway Binding (<code>127.0.0.1:18789</code>):</strong> The OpenClaw Gateway listens only on localhost, so public internet scanners and external VPS interfaces cannot reach it.</p>



<p class="wp-block-paragraph">• <strong>Tailscale Serve Proxy (Port <code>443</code>):</strong> Running on the same VPS, Tailscale provisions a valid TLS certificate for your MagicDNS hostname (such as <code>https://openclaw.your-tailnet.ts.net</code>) and proxies HTTPS requests from your authenticated tailnet devices directly to <code>127.0.0.1:18789</code>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/openclaw-tailscale-serve-architecture.webp" alt="Architecture diagram showing private OpenClaw access via Tailscale Serve HTTPS proxy to 127.0.0.1:18789" class="wp-image-6136" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/openclaw-tailscale-serve-architecture.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/openclaw-tailscale-serve-architecture-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/openclaw-tailscale-serve-architecture-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/openclaw-tailscale-serve-architecture-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="prerequisites-in-tailscale-admin-console" class="wp-block-heading">Prerequisites: MagicDNS, HTTPS Certificates, and Auth Mode</h2>



<p class="wp-block-paragraph">Before configuring OpenClaw, confirm three settings in your Tailscale Admin Console and VPS environment:</p>



<p class="wp-block-paragraph">• <strong>1. Tailscale Logged In on Your VPS &amp; Client:</strong> Install Tailscale on your Ubuntu VPS and connect both the VPS and your laptop/phone to the same tailnet.</p>



<p class="wp-block-paragraph">• <strong>2. Enable MagicDNS &amp; HTTPS Certificates:</strong> In the Tailscale Admin Console under <strong>DNS</strong>, make sure <strong>MagicDNS</strong> is enabled and turn on <strong>HTTPS Certificates</strong> so Tailscale can issue TLS certs for your <code>.ts.net</code> node URL.</p>



<p class="wp-block-paragraph">• <strong>3. Keep OpenClaw Auth Enabled:</strong> Tailscale Serve cannot be paired with <code>gateway.auth.mode: "none"</code>. Configure a strong <code>token</code> or <code>password</code> auth mode, and optionally set <code>allowTailscale: true</code>.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Tailscale Mode</th><th>Who Can Reach OpenClaw?</th><th>TLS Certificates</th><th>Recommended For</th></tr></thead><tbody><tr><td>serve (Tailnet-Only)</td><td>Only authenticated devices on your private Tailscale network</td><td>Automatic Let&#8217;s Encrypt cert on .ts.net</td><td>Private OpenClaw dashboard &amp; admin control (recommended)</td></tr><tr><td>funnel (Public Internet)</td><td>Anyone on the public internet</td><td>Automatic Let&#8217;s Encrypt cert on .ts.net</td><td>Public webhook endpoints only (avoid for admin UI)</td></tr><tr><td>off + bind: loopback</td><td>Localhost SSH tunnel only</td><td>None (HTTP on 127.0.0.1)</td><td>Single-server SSH port forwarding fallback</td></tr></tbody></table></figure>



<h2 id="step-1-configure-openclaw-for-tailscale-serve" class="wp-block-heading">Step 1: Configure OpenClaw for Loopback + Tailscale Serve</h2>



<p class="wp-block-paragraph">You can configure OpenClaw&#8217;s Tailscale integration either with three CLI commands or directly inside <code>~/.openclaw/openclaw.json</code>. Both approaches keep the Gateway bound strictly to <code>loopback</code> (<code>127.0.0.1:18789</code>) while instructing Tailscale Serve to expose HTTPS privately across your tailnet.</p>



<p class="wp-block-paragraph">Make sure you set <code>gateway.auth.mode</code> to <code>"token"</code> (or <code>"password"</code>) with a long random secret before restarting the Gateway. OpenClaw refuses to start Tailscale Serve if authentication is disabled, ensuring that every session reaching your agent dashboard is backed by both WireGuard transport encryption and Gateway auth.</p>



<p class="wp-block-paragraph">If you prefer manual control over Tailscale without OpenClaw managing the daemon state, you can also run <code>tailscale serve --bg --https=443 http://127.0.0.1:18789</code> directly via the <a href="https://tailscale.com/kb/1312/serve" rel="noopener">Tailscale Serve CLI</a>.</p>



<pre class="wp-block-code"><code># Configure OpenClaw Gateway for loopback + Tailscale Serve
openclaw config set gateway.bind loopback
openclaw config set gateway.tailscale.mode serve
openclaw gateway restart</code></pre>



<pre class="wp-block-code"><code>// ~/.openclaw/openclaw.json
{
  "gateway": {
    "port": 18789,
    "bind": "loopback",
    "auth": {
      "mode": "token",
      "token": "replace-with-long-random-secret",
      "allowTailscale": true
    },
    "tailscale": {
      "mode": "serve"
    }
  }
}</code></pre>



<h2 id="step-2-enable-tailscale-identity-verification" class="wp-block-heading">Step 2: Verify Identity Headers and Connect Over HTTPS</h2>



<p class="wp-block-paragraph">When <code>gateway.auth.allowTailscale</code> is set to <code>true</code>, OpenClaw verifies incoming requests by querying the local Tailscale daemon (<code>tailscale whois</code>) and matching the forwarded identity header (<code>tailscale-user-login</code>). This lets your authorized tailnet devices open the OpenClaw web dashboard smoothly without re-entering tokens on every trusted browser.</p>



<p class="wp-block-paragraph">If you want to restrict which devices on your tailnet can reach the OpenClaw node, combine <code>allowTailscale</code> with tag-based Access Controls in your Tailscale Admin Console—for example, allowing only <code>tag:admin-devices</code> to reach port <code>443</code> on your <code>tag:openclaw</code> server.</p>



<p class="wp-block-paragraph">Open <code>https://your-vps-name.your-tailnet.ts.net</code> in your browser from any device connected to Tailscale. The very first request may pause for a few seconds while Tailscale provisions and caches your node&#8217;s TLS certificate.</p>



<h2 id="step-3-lock-down-ufw-and-verify-no-public-exposure" class="wp-block-heading">Step 3: Verify Zero Public Exposure on Your VPS</h2>



<p class="wp-block-paragraph">After confirming private HTTPS access works over your <code>.ts.net</code> URL, verify that port <code>18789</code> is not exposed publicly in UFW or Docker. Run <code>ss -tulpn | grep 18789</code> to confirm OpenClaw listens strictly on <code>127.0.0.1:18789</code>, and run <code>tailscale serve status</code> to ensure only private Serve (never public Funnel) is active.</p>



<p class="wp-block-paragraph">If you run OpenClaw inside Docker alongside other tools on <a href="https://www.aveshost.com/" rel="noopener">Aveshost</a> self-managed VPS hosting or fully managed VPS hosting, review our <a href="https://blog.aveshost.com/docker-ufw-unexpected-ports/">Docker and UFW port safety guide</a> and monitor uptime privately using <a href="https://blog.aveshost.com/public-website-status-page-with-uptime-kuma/">Uptime Kuma</a>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/openclaw-tailscale-security-checklist.webp" alt="Six-step security checklist for accessing OpenClaw privately with Tailscale Serve" class="wp-image-6137" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/openclaw-tailscale-security-checklist.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/openclaw-tailscale-security-checklist-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/openclaw-tailscale-security-checklist-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/openclaw-tailscale-security-checklist-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<pre class="wp-block-code"><code># 1. Confirm OpenClaw listens only on 127.0.0.1:18789
ss -tulpn | grep 18789

# 2. Verify Tailscale Serve status (never Funnel for admin UI)
tailscale serve status</code></pre>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-ec07dde72d83483f8a29a8d5967b28c8" class="rank-math-list-item">
<h3 class="rank-math-question ">Is OpenClaw exposed to the public internet when using Tailscale Serve?</h3>
<div class="rank-math-answer ">

<p>No. Tailscale Serve only accepts connections from authenticated devices inside your private Tailscale network (tailnet). Public internet users cannot reach your .ts.net Serve URL or port 18789 when OpenClaw is bound to loopback.</p>

</div>
</div>
<div id="faq-question-2fb34073b9214dcdb3d28d9850783822" class="rank-math-list-item">
<h3 class="rank-math-question ">What is the difference between Tailscale Serve and Tailscale Funnel for OpenClaw?</h3>
<div class="rank-math-answer ">

<p>Tailscale Serve exposes your local service exclusively to devices on your private tailnet, while Tailscale Funnel exposes a service to the public internet. Always use Serve—not Funnel—for your OpenClaw dashboard and Gateway.</p>

</div>
</div>
<div id="faq-question-850f619aed264f45b2c445eeb1b3d998" class="rank-math-list-item">
<h3 class="rank-math-question ">Why does the first HTTPS request to my OpenClaw Tailscale URL take a few seconds?</h3>
<div class="rank-math-answer ">

<p>On the first HTTPS connection after enabling Tailscale Serve, Tailscale automatically provisions and validates a Let&#8217;s Encrypt TLS certificate for your MagicDNS hostname. Subsequent requests load immediately.</p>

</div>
</div>
<div id="faq-question-d1f5c160de714e5d8eec99f6c2ec49d7" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I use Tailscale Serve with OpenClaw gateway.auth.mode set to none?</h3>
<div class="rank-math-answer ">

<p>No. OpenClaw requires authentication (such as token, password, or trusted-proxy) when Tailscale Serve is enabled. Set gateway.auth.mode to token with a strong secret and optionally enable allowTailscale: true.</p>

</div>
</div>
<div id="faq-question-5ba0b3541f424804b7ad465aa951e19e" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I stop exposing OpenClaw via Tailscale Serve?</h3>
<div class="rank-math-answer ">

<p>Run openclaw config set gateway.tailscale.mode off &amp;&amp; openclaw gateway restart, or run tailscale serve off in your VPS terminal if you started Serve manually.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/access-openclaw-privately-with-tailscale/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>RustDesk vs AnyDesk: Costs, Privacy and Self-Hosting Compared</title>
		<link>https://blog.aveshost.com/rustdesk-vs-anydesk-costs-privacy-self-hosting/</link>
					<comments>https://blog.aveshost.com/rustdesk-vs-anydesk-costs-privacy-self-hosting/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Sat, 21 Nov 2026 20:22:57 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[AnyDesk]]></category>
		<category><![CDATA[Remote Desktop]]></category>
		<category><![CDATA[RustDesk]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[vps hosting]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=6126</guid>

					<description><![CDATA[An engineering and buyer comparison of RustDesk vs AnyDesk covering licensing costs, open-source transparency vs closed-source SaaS, encryption, self-hosting on a Linux VPS, and enterprise team controls.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Comparing <strong>RustDesk vs AnyDesk</strong> comes down to a clear architectural divide: an open-source remote desktop platform you can self-host for free on your own VPS versus a closed-source commercial SaaS tool built around a managed global cloud.</p>



<p class="wp-block-paragraph">Both tools deliver low-latency screen sharing, file transfer, and unattended access across Windows, macOS, Linux, Android, and iOS. However, their pricing models, privacy guarantees, and self-hosting restrictions lead to very different long-term costs for solo IT pros, agencies, and growing support teams.</p>



<p class="wp-block-paragraph">In this guide, we compare <strong>RustDesk vs AnyDesk</strong> across licensing costs, data sovereignty, encryption standards, self-hosting requirements on <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">self-managed VPS hosting</a> or <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">fully managed VPS hosting</a>, and team administration.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#rustdesk-vs-anydesk-at-a-glance">RustDesk vs AnyDesk at a Glance</a></div><div><a href="#licensing-and-cost-comparison">Costs &amp; Licensing: Open-Source Freedom vs Per-Seat Subscriptions</a></div><div><a href="#privacy-encryption-and-data-sovereignty">Privacy, Encryption, and Data Sovereignty</a></div><div><a href="#self-hosting-and-deployment-effort">Self-Hosting &amp; Deployment Effort Compared</a></div><div><a href="#which-should-you-choose-rustdesk-or-anydesk">Which Should You Choose: RustDesk or AnyDesk?</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="rustdesk-vs-anydesk-at-a-glance" class="wp-block-heading">RustDesk vs AnyDesk at a Glance</h2>



<p class="wp-block-paragraph">Before diving into each category, here is how <strong>RustDesk vs AnyDesk</strong> stacks up across source licensing, hosting model, encryption, and team administration:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Comparison Factor</th><th>RustDesk (OSS / Pro)</th><th>AnyDesk (Cloud / Ultimate)</th></tr></thead><tbody><tr><td>Source License</td><td>Open-source client &amp; Server OSS (AGPLv3); optional commercial Server Pro</td><td>Proprietary closed-source software</td></tr><tr><td>Cost Model</td><td>Free to self-host OSS with no user caps; Pro adds annual console license</td><td>Free for personal use only; commercial use requires annual per-seat plans</td></tr><tr><td>Self-Hosting Availability</td><td>Available on all tiers via Docker (hbbs + hbbr)</td><td>Restricted to enterprise Ultimate On-Premises tier</td></tr><tr><td>Encryption</td><td>End-to-end encryption with Ed25519 keypairs (ENCRYPTED_ONLY=1)</td><td>TLS 1.3 + 256-bit AES transport encryption + RSA 2048-bit key exchange</td></tr><tr><td>Web Console &amp; SSO</td><td>CLI/config in OSS; Web UI, OIDC/LDAP &amp; audit logs in Server Pro</td><td>Cloud my.anydesk console (Standard/Advanced) or local appliance (Ultimate)</td></tr></tbody></table></figure>



<h2 id="licensing-and-cost-comparison" class="wp-block-heading">Costs &amp; Licensing: Open-Source Freedom vs Per-Seat Subscriptions</h2>



<p class="wp-block-paragraph">Cost is the number one reason IT teams evaluate <strong>RustDesk vs AnyDesk</strong>. AnyDesk offers a free edition strictly for personal, non-commercial use. As soon as AnyDesk&#8217;s heuristics detect frequent business sessions or commercial patterns, you must move to an annual paid subscription—Solo, Standard, Advanced, or Ultimate—which caps licensed users, concurrent connections, and managed unattended devices.</p>



<p class="wp-block-paragraph">By contrast, the <a href="https://rustdesk.com/docs/en/self-host/" rel="noopener">RustDesk Server OSS</a> edition is licensed under AGPLv3 and is completely free to self-host with zero artificial user caps or concurrent session limits. Your only recurring cost is a modest Linux VPS (typically 1 GB to 2 GB RAM) to run <code>hbbs</code> and <code>hbbr</code>.</p>



<p class="wp-block-paragraph">If your organization wants a graphical web admin console, centralized address books, OIDC/LDAP single sign-on, and audit logs, RustDesk also sells a commercial <strong>Server Pro</strong> license billed annually—still usually at a fraction of multi-seat proprietary remote-desktop subscriptions.</p>



<h2 id="privacy-encryption-and-data-sovereignty" class="wp-block-heading">Privacy, Encryption, and Data Sovereignty</h2>



<p class="wp-block-paragraph">Both platforms take transport security seriously, yet they offer very different levels of auditability and metadata control. According to <a href="https://anydesk.com/en/features/security" rel="noopener">AnyDesk&#8217;s security overview</a>, AnyDesk secures sessions using TLS 1.3, 256-bit AES transport encryption, and RSA 2048-bit asymmetric key exchange, alongside 2FA and access control lists. However, on all standard cloud plans, session brokering and relay fallback pass through AnyDesk&#8217;s proprietary servers, and the codebase cannot be audited independently.</p>



<p class="wp-block-paragraph">RustDesk pairs an auditable AGPLv3 open-source client and OSS server with Ed25519 keypair verification. When you self-host RustDesk with <code>ENCRYPTED_ONLY=1</code>, clients refuse unencrypted connections and every session handshake and fallback relay stays strictly inside your own VPS.</p>



<p class="wp-block-paragraph">If your team handles regulated client environments or strict internal compliance, keeping session routing off third-party SaaS clouds is a major privacy win.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-architecture.webp" alt="Connection and privacy architecture diagram comparing self-hosted RustDesk against AnyDesk cloud and Ultimate on-premises" class="wp-image-6124" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-architecture.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-architecture-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-architecture-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-architecture-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="self-hosting-and-deployment-effort" class="wp-block-heading">Self-Hosting &amp; Deployment Effort Compared</h2>



<p class="wp-block-paragraph">With AnyDesk, zero setup is required if you use their cloud—install the client, sign in, and connect. However, if you specifically want to self-host AnyDesk on your own infrastructure, you must purchase their enterprise <strong>Ultimate</strong> tier to unlock the closed-source On-Premises appliance.</p>



<p class="wp-block-paragraph">RustDesk makes self-hosting accessible to everyone. Deploying RustDesk Server OSS on Ubuntu takes under ten minutes with Docker Compose and four UFW firewall rules (<code>21115/tcp</code>, <code>21116/tcp</code>, <code>21116/udp</code>, and <code>21117/tcp</code>). Follow our complete walkthrough on <a href="https://blog.aveshost.com/self-host-rustdesk-ubuntu-vps/">how to self-host RustDesk on an Ubuntu VPS</a> to deploy it cleanly.</p>



<p class="wp-block-paragraph">When self-hosting with Docker on a VPS, remember to audit published container ports (<a href="https://blog.aveshost.com/docker-ufw-unexpected-ports/">Docker and UFW port safety guide</a>) and track relay uptime using <a href="https://blog.aveshost.com/public-website-status-page-with-uptime-kuma/">a public or internal Uptime Kuma status page</a>.</p>



<h2 id="which-should-you-choose-rustdesk-or-anydesk" class="wp-block-heading">Which Should You Choose: RustDesk or AnyDesk?</h2>



<p class="wp-block-paragraph">Choosing between <strong>RustDesk vs AnyDesk</strong> depends on whether you prioritize zero-maintenance SaaS convenience or full infrastructure control and predictable costs:</p>



<p class="wp-block-paragraph">• <strong>Choose RustDesk if:</strong> You want free commercial-ready remote access without per-seat SaaS renewals, require open-source transparency, or want 100% control over your relay server on <a href="https://www.aveshost.com/" rel="noopener">Aveshost</a> self-managed VPS hosting or fully managed VPS hosting.</p>



<p class="wp-block-paragraph">• <strong>Choose AnyDesk if:</strong> You want an out-of-the-box managed cloud service with zero VPS maintenance, rely on polished enterprise features like MSI/GPO mass rollout out of the gate, and have budget for annual commercial seats.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1536" height="1024" src="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-decision-matrix.webp" alt="Six-factor decision matrix comparing RustDesk and AnyDesk across cost, self-hosting, open source, cloud setup, enterprise console, and security" class="wp-image-6125" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-decision-matrix.webp 1536w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-decision-matrix-300x200.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-decision-matrix-1024x683.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/rustdesk-vs-anydesk-decision-matrix-768x512.webp 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></figure>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-90a79e067c204acc9eecbf707d7d5e8e" class="rank-math-list-item">
<h3 class="rank-math-question ">Is RustDesk completely free for commercial use?</h3>
<div class="rank-math-answer ">

<p>Yes, RustDesk&#8217;s open-source client and Server OSS (AGPLv3) are free to self-host on your own VPS for both personal and commercial use with no user or session caps. If you want RustDesk&#8217;s proprietary Server Pro web management console and SSO features, those require an annual Pro license.</p>

</div>
</div>
<div id="faq-question-7a8f6dd136024bd79a411a5147a63c71" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I self-host AnyDesk on my own VPS?</h3>
<div class="rank-math-answer ">

<p>Not on AnyDesk&#8217;s Solo, Standard, or Advanced plans. Self-hosting AnyDesk requires the enterprise Ultimate tier, which unlocks their closed-source On-Premises appliance via custom sales pricing.</p>

</div>
</div>
<div id="faq-question-807b672b188545499f308d6250badb1f" class="rank-math-list-item">
<h3 class="rank-math-question ">Which is more private: RustDesk or AnyDesk?</h3>
<div class="rank-math-answer ">

<p>Self-hosted RustDesk offers stronger privacy and data sovereignty because the client and Server OSS code are open source (AGPLv3) and all ID brokering and relay traffic remain on your own VPS with Ed25519 key enforcement. AnyDesk encrypts traffic with TLS 1.3 and AES-256, but standard tiers are closed source and route through AnyDesk&#8217;s cloud.</p>

</div>
</div>
<div id="faq-question-b80d5de30cb8481b9e32df7558c171ac" class="rank-math-list-item">
<h3 class="rank-math-question ">Does RustDesk require a powerful VPS to self-host?</h3>
<div class="rank-math-answer ">

<p>No. RustDesk&#8217;s hbbs and hbbr containers are lightweight Rust binaries. A 1 vCPU, 1 GB RAM Ubuntu VPS comfortably supports dozens of concurrent remote desktop sessions.</p>

</div>
</div>
<div id="faq-question-48d5affe24864adbb0b778945f0e2c87" class="rank-math-list-item">
<h3 class="rank-math-question ">Why do teams switch from AnyDesk to RustDesk?</h3>
<div class="rank-math-answer ">

<p>Teams commonly switch to avoid recurring per-seat and concurrent-connection SaaS renewals, eliminate commercial-use detection prompts, and gain full ownership of their relay infrastructure on a private Linux VPS.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/rustdesk-vs-anydesk-costs-privacy-self-hosting/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Dify vs Flowise vs n8n: Which Should You Use for AI Workflows?</title>
		<link>https://blog.aveshost.com/dify-vs-flowise-vs-n8n/</link>
					<comments>https://blog.aveshost.com/dify-vs-flowise-vs-n8n/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Sun, 15 Nov 2026 14:24:58 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[AI agents]]></category>
		<category><![CDATA[Dify]]></category>
		<category><![CDATA[Flowise]]></category>
		<category><![CDATA[n8n]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[Ubuntu VPS]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=5934</guid>

					<description><![CDATA[An engineering comparison of Dify vs Flowise vs n8n covering RAG pipelines, multi-agent orchestration, SaaS integrations, open-source licensing, and Docker VPS resource requirements.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Choosing between <strong>Dify vs Flowise vs n8n</strong> is one of the first architectural decisions teams face when building self-hosted AI agents, Retrieval-Augmented Generation (RAG) chatbots, and automated back-office pipelines. All three platforms give you a visual node-and-canvas editor in the browser, yet they were engineered to solve fundamentally different problems.</p>



<p class="wp-block-paragraph"><strong>Dify</strong> (<a href="https://github.com/langgenius/dify" rel="noopener">langgenius/dify</a>) is a full-stack LLM application studio with a built-in RAG engine and production web UIs; <strong>Flowise</strong> (<a href="https://github.com/FlowiseAI/Flowise" rel="noopener">FlowiseAI/Flowise</a>) is a lightweight visual builder for LangChain, LlamaIndex, and Agentflow v2 graphs; and <strong>n8n</strong> (<a href="https://github.com/n8n-io/n8n" rel="noopener">n8n-io/n8n</a>) is an event-driven automation powerhouse connecting AI agents to 400+ business apps and webhooks.</p>



<p class="wp-block-paragraph">Whether you deploy on an <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">Aveshost Self-Managed VPS</a>, this <strong>Dify vs Flowise vs n8n</strong> guide breaks down how each platform handles RAG accuracy, multi-agent loops, Model Context Protocol (MCP) tools, Docker RAM usage, and open-source licensing.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#dify-vs-flowise-vs-n8n-at-a-glance-core-differences">Dify vs Flowise vs n8n at a Glance: Core Differences</a></div><div><a href="#rag-pipelines-and-knowledge-bases-why-dify-leads-for-llm-apps">RAG Pipelines and Knowledge Bases: Why Dify Leads for LLM Apps</a></div><div><a href="#visual-agent-graphs-and-embeddable-widgets-where-flowise-shines">Visual Agent Graphs and Embeddable Widgets: Where Flowise Shines</a></div><div><a href="#business-automation-and-mcp-triggers-why-n8n-wins-for-operations">Business Automation and MCP Triggers: Why n8n Wins for Operations</a></div><div><a href="#self-hosting-on-an-ubuntu-vps-docker-ram-and-licensing-compared">Self-Hosting on an Ubuntu VPS: Docker, RAM and Licensing Compared</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="dify-vs-flowise-vs-n8n-at-a-glance-core-differences" class="wp-block-heading">Dify vs Flowise vs n8n at a Glance: Core Differences</h2>



<p class="wp-block-paragraph">When evaluating <strong>Dify vs Flowise vs n8n</strong>, start by asking what happens before and after the LLM generates a response. If your core product is a document-grounded chat assistant or an AI API endpoint, you need an LLMOps platform. If your goal is to read a support ticket from Gmail, query PostgreSQL, and post a summary in Slack, you need a workflow automation engine.</p>



<p class="wp-block-paragraph">Here is how the three platforms compare side by side across architecture, RAG depth, integrations, and VPS footprint:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Feature / Criterion</th><th>Dify (langgenius/dify)</th><th>Flowise (FlowiseAI/Flowise)</th><th>n8n (n8n-io/n8n)</th></tr></thead><tbody><tr><td>Primary Category</td><td>End-to-End LLMOps &amp; AI App Studio</td><td>Visual LangChain / Agentflow Builder</td><td>Workflow Automation + AI Agent Engine</td></tr><tr><td>Built-in RAG Pipeline</td><td>Turnkey (PDF parsing, parent-child chunking, hybrid search &amp; rerank)</td><td>Modular (LangChain / LlamaIndex document loaders &amp; vector nodes)</td><td>Manual (Requires wiring document loader, splitter &amp; vector store nodes)</td></tr><tr><td>SaaS &amp; Webhook Connectors</td><td>50+ built-in agent tools + custom OpenAPI / MCP tools</td><td>LangChain tool wrappers, custom JS functions &amp; HTTP requests</td><td>400+ native app triggers &amp; actions (Slack, Gmail, HubSpot, Postgres, etc.)</td></tr><tr><td>Multi-Agent Orchestration</td><td>Chatflow / Workflow DAGs, Iteration, Parallel &amp; Agent nodes</td><td>Agentflow v2 (stateful loops, human-in-the-loop &amp; multi-agent graphs)</td><td>AI Agent node with sub-workflows, memory &amp; tool calling</td></tr><tr><td>Out-of-the-Box Chat UI</td><td>Full standalone Web App, embed widget &amp; OpenAI-compatible API</td><td>Customizable JS popup/full-page chat embed &amp; prediction API</td><td>Hosted chat trigger widget or custom webhook frontend</td></tr><tr><td>Model Context Protocol (MCP)</td><td>MCP client plugins &amp; workflow tool integration</td><td>Custom MCP tool nodes inside Agentflow v2</td><td>Native MCP Client Tool node + MCP Server Trigger</td></tr><tr><td>Docker Compose Architecture</td><td>~10 containers (Python API, Celery, Next.js, Postgres, Redis, Weaviate, Sandbox)</td><td>1 Node.js container (SQLite default or Postgres + external vector DB)</td><td>1 Node.js container (SQLite default or Postgres + optional Redis queue)</td></tr><tr><td>Recommended Ubuntu VPS RAM</td><td>4 GB min / 8 GB RAM recommended</td><td>2 GB to 4 GB RAM</td><td>2 GB to 4 GB RAM</td></tr><tr><td>Source Code License</td><td>Dify Open Source License (Apache 2.0 with multi-tenant restrictions)</td><td>Apache License 2.0 (Permissive)</td><td>Sustainable Use License (Fair-code)</td></tr></tbody></table></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1264" height="848" src="https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vs-flowise-vs-n8n-architecture.webp" alt="Dify vs Flowise vs n8n architecture comparison showing Dify LLMOps and RAG, Flowise Agentflow v2, and n8n event automation and MCP" class="wp-image-5936" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vs-flowise-vs-n8n-architecture.webp 1264w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vs-flowise-vs-n8n-architecture-300x201.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vs-flowise-vs-n8n-architecture-1024x687.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vs-flowise-vs-n8n-architecture-768x515.webp 768w" sizes="(max-width: 1264px) 100vw, 1264px" /></figure>



<h2 id="rag-pipelines-and-knowledge-bases-why-dify-leads-for-llm-apps" class="wp-block-heading">RAG Pipelines and Knowledge Bases: Why Dify Leads for LLM Apps</h2>



<p class="wp-block-paragraph">If your primary goal is building an accurate knowledge base assistant over PDFs, Word files, Notion pages, or technical documentation, <strong>Dify</strong> wins hands down. In Flowise and n8n, building a production RAG pipeline means manually wiring document loaders, text splitters, embedding models, and external vector database credentials on the canvas—and building your own UI to manage document updates.</p>



<p class="wp-block-paragraph">Dify treats Knowledge Bases as a first-class feature with a dedicated management dashboard:</p>



<p class="wp-block-paragraph">• <strong>Visual Chunking &amp; Parent-Child Indexing:</strong> Upload PDFs, Markdown, CSVs, or web pages and preview how Dify splits every paragraph before indexing. Parent-child chunking matches small, precise child sentences during vector search while returning the full parent section to the LLM for richer context.</p>



<p class="wp-block-paragraph">• <strong>Hybrid Search &amp; Reranking Out of the Box:</strong> Dify bundles Weaviate in its default Docker Compose stack (and supports Qdrant, PGVector, and Milvus via <code>.env</code>), letting you combine vector similarity search with full-text keyword search and cross-encoder reranking models (such as Cohere Rerank or Jina Reranker) in two clicks.</p>



<p class="wp-block-paragraph">• <strong>Instant Web App &amp; Prompt IDE:</strong> Every Dify workflow or chatbot immediately generates a shareable web application, an embeddable script tag, and a versioned REST API with token-cost and latency logs.</p>



<h2 id="visual-agent-graphs-and-embeddable-widgets-where-flowise-shines" class="wp-block-heading">Visual Agent Graphs and Embeddable Widgets: Where Flowise Shines</h2>



<p class="wp-block-paragraph">In the <strong>Dify vs Flowise vs n8n</strong> comparison, <strong>Flowise</strong> sits in the sweet spot for JavaScript/TypeScript developers who want granular control over LangChain and LlamaIndex components without running a 10-container Python stack.</p>



<p class="wp-block-paragraph">With its <strong>Agentflow v2</strong> engine, Flowise moved beyond simple linear LangChain wrappers into stateful graph orchestration:</p>



<p class="wp-block-paragraph">• <strong>Stateful Multi-Agent Loops &amp; Human-in-the-Loop:</strong> Agentflow v2 provides a shared <code>Flow State</code> across nodes, conditional branching, iterative loops, and human approval checkpoints where an agent pauses before executing a sensitive tool.</p>



<p class="wp-block-paragraph">• <strong>Lightweight Embeddable Chat Widgets:</strong> Flowise&#8217;s <code>flowise-embed</code> library makes it trivial to drop a branded React or vanilla JavaScript chat bubble onto an existing WordPress, Next.js, or SaaS website with custom CSS, starter prompts, and source citations.</p>



<p class="wp-block-paragraph">• <strong>Permissive Apache 2.0 License &amp; Low RAM Footprint:</strong> Because Flowise runs as a single Node.js container under the permissive Apache 2.0 license, agencies and indie SaaS founders can embed it into commercial products on a 2 GB to 4 GB RAM VPS.</p>



<h2 id="business-automation-and-mcp-triggers-why-n8n-wins-for-operations" class="wp-block-heading">Business Automation and MCP Triggers: Why n8n Wins for Operations</h2>



<p class="wp-block-paragraph">Neither Dify nor Flowise was designed to replace Zapier or Make for enterprise system integration. That is where <strong>n8n</strong> dominates. Instead of starting every workflow with a user typing into a chat box, n8n workflows can start from hundreds of real-world business events:</p>



<p class="wp-block-paragraph">• <strong>400+ Native Triggers, Cron Jobs &amp; Webhooks:</strong> Trigger an AI agent automatically when a Stripe payment fails, a GitHub pull request opens, a WHMCS support ticket arrives, a new row lands in PostgreSQL, or a scheduled cron job fires at 08:00 every morning.</p>



<p class="wp-block-paragraph">• <strong>Bidirectional Model Context Protocol (MCP):</strong> As we covered in our <a href="https://blog.aveshost.com/n8n-mcp-integration-guide/">n8n MCP integration guide</a>, n8n acts as both an <strong>MCP Client</strong> (letting your n8n AI Agent call external MCP servers) and an <strong>MCP Server</strong> (exposing your n8n business workflows as callable tools inside Claude Desktop, OpenCode, or Dify).</p>



<p class="wp-block-paragraph">• <strong>Deterministic Data Plumbing + AI Reasoning:</strong> In n8n, you can fetch 500 rows from an API, filter and transform them deterministically with zero LLM token cost, pass only the 5 anomalies to an AI Agent node for classification, and route the structured JSON output to Slack and Jira.</p>



<h2 id="self-hosting-on-an-ubuntu-vps-docker-ram-and-licensing-compared" class="wp-block-heading">Self-Hosting on an Ubuntu VPS: Docker, RAM and Licensing Compared</h2>



<p class="wp-block-paragraph">One of the best parts of comparing <strong>Dify vs Flowise vs n8n</strong> is that you do not have to pick just one in isolation. Many engineering teams run <strong>Dify + n8n side by side</strong> on a single 8 GB RAM <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">Aveshost Ubuntu VPS</a>—using Dify for high-accuracy RAG knowledge bases and customer chat UIs, while calling n8n webhooks (or n8n&#8217;s MCP Server Trigger) whenever the agent needs to update a CRM, send an email, or query an internal database.</p>



<p class="wp-block-paragraph">Here are the official Docker deployment commands to spin up each platform on your Ubuntu VPS:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1264" height="848" src="https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vs-flowise-vs-n8n-decision-matrix.webp" alt="Dify vs Flowise vs n8n decision matrix covering RAG knowledge bases, chat widgets, SaaS automation, licenses, and Ubuntu VPS sizing" class="wp-image-5937" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vs-flowise-vs-n8n-decision-matrix.webp 1264w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vs-flowise-vs-n8n-decision-matrix-300x201.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vs-flowise-vs-n8n-decision-matrix-1024x687.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vs-flowise-vs-n8n-decision-matrix-768x515.webp 768w" sizes="(max-width: 1264px) 100vw, 1264px" /></figure>



<pre class="wp-block-code"><code># === OPTION 1: Self-Host Dify (Full 10-Container LLMOps + Weaviate RAG Stack) ===
# Recommended: 4 vCPU / 8 GB RAM Ubuntu VPS (see our full Dify VPS guide)
git clone https://github.com/langgenius/dify.git
cd dify/docker &amp;&amp; cp .env.example .env
docker compose up -d
# Visit http://your-vps-ip/install

# === OPTION 2: Self-Host Flowise (Lightweight Node.js Agentflow Builder) ===
# Recommended: 2 vCPU / 2-4 GB RAM Ubuntu VPS (listens on localhost:3000)
docker volume create flowise_data
docker run -d --name flowise \
  --restart unless-stopped \
  -p 127.0.0.1:3000:3000 \
  -v flowise_data:/root/.flowise \
  flowiseai/flowise:latest

# === OPTION 3: Self-Host n8n (Workflow Automation + AI Agents + MCP) ===
# Recommended: 2 vCPU / 2-4 GB RAM Ubuntu VPS (listens on localhost:5678)
docker volume create n8n_data
docker run -d --name n8n \
  --restart unless-stopped \
  -p 127.0.0.1:5678:5678 \
  -e GENERIC_TIMEZONE="UTC" \
  -e N8N_SECURE_COOKIE=true \
  -v n8n_data:/home/node/.n8n \
  docker.n8n.io/n8nio/n8n:latest</code></pre>



<p class="wp-block-paragraph">Ready to deploy your chosen AI workflow stack? Follow our step-by-step tutorial on how to <a href="https://blog.aveshost.com/self-host-dify-on-a-vps/">self-host Dify on a VPS with Docker Compose</a>, our <a href="https://blog.aveshost.com/n8n-mcp-integration-guide/">n8n MCP server and client setup guide</a>, or our comparison of <a href="https://blog.aveshost.com/hermes-agent-vs-openclaw/">Hermes Agent vs OpenClaw</a> for autonomous terminal agents.</p>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-e4ca7578ef614840bf2edf7c0957403e" class="rank-math-list-item">
<h3 class="rank-math-question ">Should I choose Dify, Flowise, or n8n for building a RAG chatbot?</h3>
<div class="rank-math-answer ">

<p>Choose Dify if you want a complete, production-ready RAG chatbot with built-in PDF/web document parsing, visual chunk previews, parent-child indexing, hybrid vector + keyword search, and cross-encoder reranking. Choose Flowise if you want a lightweight single-container builder to embed a custom LangChain chat bubble into an existing website.</p>

</div>
</div>
<div id="faq-question-aa4cefd0c8cd49c48ca7637d7311afc3" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I run Dify and n8n together on the same Ubuntu VPS?</h3>
<div class="rank-math-answer ">

<p>Yes. Running Dify and n8n together on an 8 GB RAM, 4 vCPU Ubuntu VPS is a popular production pattern: Dify manages the conversational UI, prompt versioning, and RAG knowledge base retrieval, while n8n handles backend webhooks, database updates, and 400+ SaaS integrations via HTTP or MCP.</p>

</div>
</div>
<div id="faq-question-f2352f2313024ae884e9c500bf674d39" class="rank-math-list-item">
<h3 class="rank-math-question ">Which platform uses the least RAM when self-hosted with Docker?</h3>
<div class="rank-math-answer ">

<p>Flowise and n8n use the least memory because each runs as a single Node.js container (roughly 300 MB to 800 MB of RAM at idle) and fits comfortably on a 2 GB to 4 GB RAM VPS. Dify runs around 10 containers—including PostgreSQL, Redis, Weaviate, Celery workers, and a Python API—so it requires a minimum of 4 GB RAM (8 GB recommended).</p>

</div>
</div>
<div id="faq-question-58af7005a5f74ccc8fc7d18be7695aa2" class="rank-math-list-item">
<h3 class="rank-math-question ">How do the open-source licenses compare between Dify, Flowise, and n8n?</h3>
<div class="rank-math-answer ">

<p>Flowise uses the permissive Apache 2.0 license. Dify uses an Apache 2.0-based open-source license that allows free self-hosting and commercial API use, but requires a commercial license if you rebrand Dify or sell multi-tenant workspace hosting. n8n uses the fair-code Sustainable Use License, which is free for internal business automation.</p>

</div>
</div>
<div id="faq-question-4011d0489c89468584b5f4b0ea951e29" class="rank-math-list-item">
<h3 class="rank-math-question ">Which tool has the best Model Context Protocol (MCP) support?</h3>
<div class="rank-math-answer ">

<p>n8n offers the most flexible bidirectional MCP integration out of the box: its AI Agent node includes an MCP Client Tool to consume external MCP servers, and its MCP Server Trigger lets you expose any n8n automation workflow as a tool for Claude, OpenCode, or Dify.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/dify-vs-flowise-vs-n8n/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Self-Host Dify on a VPS with Docker Compose</title>
		<link>https://blog.aveshost.com/self-host-dify-on-a-vps/</link>
					<comments>https://blog.aveshost.com/self-host-dify-on-a-vps/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Sun, 15 Nov 2026 13:45:39 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[AI agents]]></category>
		<category><![CDATA[Dify]]></category>
		<category><![CDATA[Docker Compose]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[Ubuntu VPS]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=5923</guid>

					<description><![CDATA[A complete step-by-step tutorial on how to self-host Dify on an Ubuntu VPS using Docker Compose, including hardware sizing, .env security keys, HTTPS setup, and zero-data-loss upgrades.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Learning how to <strong>self-host Dify on a VPS</strong> with Docker Compose gives you a complete, private AI application studio—combining visual agent workflows, Retrieval-Augmented Generation (RAG) knowledge bases, Model Context Protocol (MCP) tools, and 100+ LLM integrations without per-seat SaaS limits or workspace data caps. Maintained by LangGenius (<a href="https://github.com/langgenius/dify" rel="noopener">langgenius/dify</a>), Dify lets you build and deploy production chatbots, multi-step AI agents, and internal APIs on your own infrastructure.</p>



<p class="wp-block-paragraph">Because Dify&#8217;s production stack orchestrates around ten microservices—including a Python API server, Celery background workers, a Next.js web frontend, PostgreSQL, Redis, a Weaviate vector database, a code sandbox, and a plugin daemon—running it on a dedicated <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">Aveshost Self-Managed VPS</a> keeps your vector embeddings, prompts, and API keys under your full control.</p>



<p class="wp-block-paragraph">In this guide, we walk through how to <strong>self-host Dify on a VPS</strong> running Ubuntu 22.04 or 24.04 LTS, size your CPU and RAM properly, configure critical <code>.env</code> security tokens, enable Let&#8217;s Encrypt HTTPS, and upgrade Dify safely without losing your knowledge bases.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#why-self-host-dify-on-a-vps-docker-compose-architecture-and-requirements">Why Self-Host Dify on a VPS? Docker Compose Architecture and Requirements</a></div><div><a href="#step-1-prepare-your-ubuntu-vps-and-install-docker-compose-v2">Step 1: Prepare Your Ubuntu VPS and Install Docker Compose v2</a></div><div><a href="#step-2-clone-dify-and-configure-your-env-file">Step 2: Clone Dify and Configure Your .env File</a></div><div><a href="#step-3-launch-dify-with-docker-compose-and-complete-admin-setup">Step 3: Launch Dify with Docker Compose and Complete Admin Setup</a></div><div><a href="#step-4-enable-lets-encrypt-https-and-upgrade-dify-safely">Step 4: Enable Let&#8217;s Encrypt HTTPS and Upgrade Dify Safely</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="why-self-host-dify-on-a-vps-docker-compose-architecture-and-requirements" class="wp-block-heading">Why Self-Host Dify on a VPS? Docker Compose Architecture and Requirements</h2>



<p class="wp-block-paragraph">Before you <strong>self-host Dify on a VPS</strong>, it helps to understand what happens when you run <code>docker compose up -d</code> inside the <code>dify/docker</code> directory. Unlike single-binary CLI coding agents, Dify launches a complete multi-container platform wired together over an internal Docker bridge network:</p>



<p class="wp-block-paragraph">• <strong><code>nginx</code> &amp; <code>web</code>:</strong> Nginx serves as the single reverse-proxy entry point on ports <code>80</code> and <code>443</code>, routing browser traffic to the Next.js Studio frontend (<code>web</code> on port <code>3000</code>) and API requests (<code>/console/api</code>, <code>/api</code>, and <code>/v1</code>) to the backend.</p>



<p class="wp-block-paragraph">• <strong><code>api</code>, <code>worker</code> &amp; <code>worker_beat</code>:</strong> The core Python Flask backend handles workflow execution and Server-Sent Events (SSE) token streaming, while Celery workers (<code>worker</code>) asynchronously parse uploaded PDFs, chunk documents, compute vector embeddings, and run periodic scheduled tasks via <code>worker_beat</code>.</p>



<p class="wp-block-paragraph">• <strong><code>db</code> (PostgreSQL), <code>redis</code> &amp; <code>weaviate</code>:</strong> PostgreSQL stores workspaces, user accounts, workflow graphs, and conversation logs; Redis manages session caches and Celery task queues; and Weaviate serves as the default vector database for RAG retrieval (configurable via <code>VECTOR_STORE</code> in <code>.env</code> if you prefer Qdrant, PGVector, or Milvus).</p>



<p class="wp-block-paragraph">• <strong><code>sandbox</code>, <code>plugin_daemon</code> &amp; <code>ssrf_proxy</code>:</strong> The <code>dify-sandbox</code> container executes untrusted Python and Node.js code blocks inside workflows safely; <code>plugin_daemon</code> installs and runs modular model providers and agent tools; and the Squid-based <code>ssrf_proxy</code> blocks workflows from probing private RFC-1918 IP addresses or cloud metadata endpoints.</p>



<p class="wp-block-paragraph">Because all ten containers run concurrently alongside background embedding jobs, memory is the primary bottleneck on small servers. Here is how to size your Ubuntu VPS based on your expected Dify workload:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Deployment Tier</th><th>vCPU Cores</th><th>RAM (Memory)</th><th>NVMe / SSD Storage</th><th>Recommended Use Case</th></tr></thead><tbody><tr><td>Minimum (Official Spec)</td><td>2 vCPU</td><td>4 GB RAM (+ 4 GB Swap)</td><td>40 GB SSD/NVMe</td><td>Personal testing, prompt prototyping &amp; light API workflows</td></tr><tr><td>Recommended Production</td><td>4 vCPU</td><td>8 GB RAM</td><td>80 GB NVMe</td><td>Team workspace, active RAG document indexing &amp; multiple plugins</td></tr><tr><td>Heavy RAG &amp; Multi-Agent</td><td>8+ vCPU</td><td>16 GB+ RAM</td><td>160 GB+ NVMe</td><td>Large vector knowledge bases, high concurrency &amp; local embeddings</td></tr></tbody></table></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1264" height="848" src="https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vps-docker-compose-architecture.webp" alt="Dify Docker Compose architecture on an Ubuntu VPS showing Nginx, SSRF proxy, Web UI, API server, Celery workers, PostgreSQL, Weaviate, and Redis" class="wp-image-5925" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vps-docker-compose-architecture.webp 1264w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vps-docker-compose-architecture-300x201.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vps-docker-compose-architecture-1024x687.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vps-docker-compose-architecture-768x515.webp 768w" sizes="(max-width: 1264px) 100vw, 1264px" /></figure>



<h2 id="step-1-prepare-your-ubuntu-vps-and-install-docker-compose-v2" class="wp-block-heading">Step 1: Prepare Your Ubuntu VPS and Install Docker Compose v2</h2>



<p class="wp-block-paragraph">According to the official Dify documentation (<a href="https://docs.dify.ai" rel="noopener">docs.dify.ai</a>), self-hosting requires a 64-bit Linux server with Docker Engine and <strong>Docker Compose v2</strong> (version <code>2.35.0</code> or newer is recommended), along with <code>git</code> and <code>openssl</code>.</p>



<p class="wp-block-paragraph">When you <strong>self-host Dify on a VPS</strong> with 4 GB or 8 GB of RAM, configuring a 4 GB Linux swap file is essential. Whenever you install a new model provider plugin in Dify v1.x, the <code>plugin_daemon</code> container unpacks and compiles Python dependencies in the background, which can briefly spike memory consumption.</p>



<p class="wp-block-paragraph">SSH into your Ubuntu 22.04 or 24.04 LTS server, configure the UFW firewall to allow SSH, HTTP, and HTTPS, create a 4 GB swap file, and install the official Docker Engine and Compose plugin:</p>



<pre class="wp-block-code"><code># 1. Update Ubuntu packages and install prerequisites
sudo apt update &amp;&amp; sudo apt upgrade -y
sudo apt install -y ca-certificates curl gnupg git openssl ufw

# 2. Configure UFW firewall for SSH, HTTP (80), and HTTPS (443)
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw --force enable

# 3. Create a 4 GB swap file (prevents OOM kills during RAG indexing &amp; plugin installs)
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile &amp;&amp; sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

# 4. Install official Docker Engine &amp; Docker Compose v2
curl -fsSL https://get.docker.com | sudo sh
sudo usermod -aG docker $USER
newgrp docker

# 5. Verify Docker Engine and Docker Compose v2 versions
docker --version
docker compose version</code></pre>



<h2 id="step-2-clone-dify-and-configure-your-env-file" class="wp-block-heading">Step 2: Clone Dify and Configure Your .env File</h2>



<p class="wp-block-paragraph">To <strong>self-host Dify on a VPS</strong> reliably, always clone the latest tagged release from the official <code>langgenius/dify</code> GitHub repository rather than an untested development commit on the <code>main</code> branch. Inside the <code>dify/docker</code> directory, Dify provides a comprehensive <code>.env.example</code> template that controls every microservice.</p>



<p class="wp-block-paragraph">Before launching the stack, copy <code>.env.example</code> to <code>.env</code> and generate two mandatory cryptographic secrets using OpenSSL: <code>SECRET_KEY</code> (a 42-byte base64 key used to encrypt LLM provider credentials stored in PostgreSQL) and <code>DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN</code> (a 32-byte hex token that authenticates communication between the Dify API server and the code-execution sandbox):</p>



<pre class="wp-block-code"><code># 1. Fetch the latest stable release tag and clone Dify
LATEST_TAG=$(curl -s https://api.github.com/repos/langgenius/dify/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
git clone https://github.com/langgenius/dify.git --branch "${LATEST_TAG}" --depth 1
cd dify/docker

# 2. Create your active .env configuration from the official template
cp .env.example .env

# 3. Generate and inject a strong SECRET_KEY and sandbox auth token
NEW_SECRET=$(openssl rand -base64 42)
sed -i "s|^SECRET_KEY=.*|SECRET_KEY=${NEW_SECRET}|" .env

SANDBOX_TOKEN=$(openssl rand -hex 32)
if grep -q "^DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN=" .env; then
  sed -i "s|^DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN=.*|DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN=${SANDBOX_TOKEN}|" .env
else
  echo "DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN=${SANDBOX_TOKEN}" &gt;&gt; .env
fi</code></pre>



<p class="wp-block-paragraph">If you plan to serve Dify under a single custom domain (such as <code>https://dify.yourdomain.com</code>), leave <code>CONSOLE_API_URL</code>, <code>CONSOLE_WEB_URL</code>, <code>SERVICE_API_URL</code>, <code>APP_API_URL</code>, and <code>APP_WEB_URL</code> blank (<code>=</code>) in <code>.env</code>—Dify&#8217;s bundled Nginx container automatically resolves the correct origin from the incoming browser request. You can also raise <code>UPLOAD_FILE_SIZE_LIMIT=50</code> and <code>UPLOAD_FILE_BATCH_LIMIT=20</code> in <code>.env</code> if your team uploads large PDF manuals into RAG knowledge bases.</p>



<h2 id="step-3-launch-dify-with-docker-compose-and-complete-admin-setup" class="wp-block-heading">Step 3: Launch Dify with Docker Compose and Complete Admin Setup</h2>



<p class="wp-block-paragraph">With your <code>.env</code> file configured, start the Dify container stack in detached mode and verify that all containers reach an active <code>Up</code> state:</p>



<pre class="wp-block-code"><code># 1. Pull images and start all Dify containers in the background
docker compose up -d

# 2. Check container health and port bindings
docker compose ps

# 3. Tail the API container logs to watch database migrations complete
docker compose logs -f api</code></pre>



<p class="wp-block-paragraph">On first boot, the <code>api</code> container automatically executes Alembic database migrations across PostgreSQL because <code>MIGRATION_ENABLED=true</code> is enabled by default. Once the logs show Gunicorn listening on port <code>5001</code>, open your web browser and navigate to:</p>



<p class="wp-block-paragraph">• <strong>Admin Initialization URL:</strong> <code>http://your-vps-ip/install</code> (or <code>https://dify.yourdomain.com/install</code> after completing Step 4).</p>



<p class="wp-block-paragraph">Create your administrator email, username, and strong password, then log into the Dify Studio dashboard. Click your top-right profile avatar and open <strong>Settings → Model Providers</strong> to install and configure model plugins for OpenAI, Anthropic Claude, Google Gemini, DeepSeek, or OpenRouter. Once a systemic reasoning model and an embedding model (such as <code>text-embedding-3-small</code>) are connected, you can immediately build RAG pipelines and multi-step AI agent workflows.</p>



<h2 id="step-4-enable-lets-encrypt-https-and-upgrade-dify-safely" class="wp-block-heading">Step 4: Enable Let&#8217;s Encrypt HTTPS and Upgrade Dify Safely</h2>



<p class="wp-block-paragraph">When you <strong>self-host Dify on a VPS</strong> for production or team access, never transmit administrator passwords or LLM API keys over unencrypted HTTP. Dify&#8217;s <code>docker-compose.yaml</code> includes a built-in <code>certbot</code> profile that issues and renews Let&#8217;s Encrypt SSL certificates directly inside the bundled Nginx container.</p>



<p class="wp-block-paragraph">To avoid the classic Nginx SSL startup error—where Nginx refuses to boot on port <code>443</code> before the certificate files exist—keep <code>NGINX_HTTPS_ENABLED=false</code> while Certbot completes the HTTP-01 challenge on port <code>80</code>, then flip <code>NGINX_HTTPS_ENABLED=true</code> and recreate the Nginx container:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1264" height="848" src="https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vps-env-upgrade-cheatsheet.webp" alt="Self-hosting Dify on a VPS setup and upgrade checklist covering VPS sizing, .env security keys, Certbot HTTPS, and volume backups" class="wp-image-5926" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vps-env-upgrade-cheatsheet.webp 1264w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vps-env-upgrade-cheatsheet-300x201.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vps-env-upgrade-cheatsheet-1024x687.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/dify-vps-env-upgrade-cheatsheet-768x515.webp 768w" sizes="(max-width: 1264px) 100vw, 1264px" /></figure>



<pre class="wp-block-code"><code># === PART A: Enable Let's Encrypt HTTPS via Dify's built-in Certbot profile ===
cd ~/dify/docker

# 1. Enable ACME challenge on port 80 first (keep NGINX_HTTPS_ENABLED=false while requesting cert)
sed -i 's|^NGINX_ENABLE_CERTBOT_CHALLENGE=.*|NGINX_ENABLE_CERTBOT_CHALLENGE=true|' .env
sed -i 's|^CERTBOT_DOMAIN=.*|CERTBOT_DOMAIN=dify.yourdomain.com|' .env
sed -i 's|^CERTBOT_EMAIL=.*|CERTBOT_EMAIL=admin@yourdomain.com|' .env

# 2. Start the certbot profile and request your Let's Encrypt certificate
docker compose --profile certbot up -d
docker compose exec -it certbot /bin/sh /update-cert.sh

# 3. Turn on HTTPS in .env and reload the Nginx container
sed -i 's|^NGINX_HTTPS_ENABLED=.*|NGINX_HTTPS_ENABLED=true|' .env
docker compose --profile certbot up -d --no-deps --force-recreate nginx

# === PART B: Safe Zero-Data-Loss Dify Upgrade Workflow ===
cd ~/dify/docker
docker compose down
sudo cp -r volumes "volumes_backup_$(date +%Y%m%d)"
git fetch --all --tags
LATEST_TAG=$(curl -s https://api.github.com/repos/langgenius/dify/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
git checkout "${LATEST_TAG}"
docker compose pull
docker compose up -d</code></pre>



<p class="wp-block-paragraph"><strong>Critical Upgrade Rule:</strong> All of your persistent state—PostgreSQL tables, Redis keys, Weaviate vector embeddings, uploaded documents, and installed plugins—is stored on the host filesystem inside <code>dify/docker/volumes/</code>. Always back up the <code>volumes/</code> directory and your <code>.env</code> file before upgrading, and never run <code>docker compose down -v</code>, which permanently deletes Docker volumes.</p>



<p class="wp-block-paragraph">Want to expand your self-hosted AI stack on your VPS? Explore our step-by-step guides on how to <a href="https://blog.aveshost.com/run-opencode-on-a-vps/">run OpenCode on a VPS</a> for remote terminal coding, how to <a href="https://blog.aveshost.com/self-host-openhands-on-a-vps/">self-host OpenHands on a VPS</a>, and how to <a href="https://blog.aveshost.com/install-hermes-agent-on-an-ubuntu-vps/">install Hermes Agent on an Ubuntu VPS</a>.</p>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-4e1d72405e9849df8112c55c34ec5cd0" class="rank-math-list-item">
<h3 class="rank-math-question ">What are the minimum VPS requirements to self-host Dify with Docker Compose?</h3>
<div class="rank-math-answer ">

<p>Dify&#8217;s official minimum requirement is a 2 vCPU, 4 GB RAM Linux server. However, because Docker Compose runs around 10 containers—including PostgreSQL, Redis, Weaviate, Celery workers, and the plugin daemon—we recommend a 4 vCPU, 8 GB RAM Ubuntu VPS with 80 GB of NVMe storage and a 4 GB swap file for smooth production RAG indexing.</p>

</div>
</div>
<div id="faq-question-804088095e4f49bfa2780aa6e083ea27" class="rank-math-list-item">
<h3 class="rank-math-question ">Where does Dify store persistent data in a Docker Compose deployment?</h3>
<div class="rank-math-answer ">

<p>Dify mounts all persistent state directly into the dify/docker/volumes/ directory on your host VPS. This folder contains subdirectories for PostgreSQL (db), Redis (redis), Weaviate vector embeddings (weaviate), uploaded files (app/storage), and installed plugins (plugin_daemon).</p>

</div>
</div>
<div id="faq-question-f1a3b4c9251c455589db389d6cd9b444" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I update a self-hosted Dify instance without losing my workflows or knowledge bases?</h3>
<div class="rank-math-answer ">

<p>Navigate to dify/docker, stop the stack with docker compose down, copy the volumes/ folder to a timestamped backup (sudo cp -r volumes volumes_backup), check out the latest Git release tag, run docker compose pull, and start the stack with docker compose up -d. Dify automatically applies any PostgreSQL schema migrations on startup.</p>

</div>
</div>
<div id="faq-question-7db2b897b7584f9b8904b05542e3e759" class="rank-math-list-item">
<h3 class="rank-math-question ">Why are my Dify plugins or custom tools failing to connect to internal services?</h3>
<div class="rank-math-answer ">

<p>Dify routes outbound requests from workflows and tools through an isolated Squid container (ssrf_proxy) to prevent Server-Side Request Forgery attacks against private RFC-1918 networks. If your workflow needs to reach a private service or local Ollama instance, update the Squid configuration inside docker/volumes/ssrf_proxy/ or use host.docker.internal.</p>

</div>
</div>
<div id="faq-question-c577370468904026881bb6e14d04dada" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I change the default HTTP/HTTPS ports if Nginx is already running on my VPS?</h3>
<div class="rank-math-answer ">

<p>If you already run a host Nginx or Caddy reverse proxy on ports 80 and 443, edit dify/docker/.env and change EXPOSE_NGINX_PORT=8080 and EXPOSE_NGINX_SSL_PORT=8443. Restart the stack with docker compose up -d and proxy traffic from your host web server to http://127.0.0.1:8080 with proxy_buffering off; enabled for SSE streaming.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/self-host-dify-on-a-vps/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Run OpenCode on a VPS with Secure Remote Access</title>
		<link>https://blog.aveshost.com/run-opencode-on-a-vps/</link>
					<comments>https://blog.aveshost.com/run-opencode-on-a-vps/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Sun, 15 Nov 2026 13:23:27 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[AI coding]]></category>
		<category><![CDATA[OpenCode]]></category>
		<category><![CDATA[Remote Development]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[Ubuntu VPS]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=5916</guid>

					<description><![CDATA[A step-by-step guide to installing OpenCode on an Ubuntu VPS, configuring OPENCODE_SERVER_PASSWORD authentication, running it 24/7 with systemd, and connecting remotely from your browser, terminal, or phone.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Learning how to <strong>run OpenCode on a VPS</strong> lets you offload heavy AI coding sessions, Language Server Protocol (LSP) indexing, and test suites to an always-on Linux server while controlling the agent from your laptop, tablet, or phone. Built as an open-source, provider-agnostic AI coding agent (<a href="https://opencode.ai" rel="noopener">opencode.ai</a>), OpenCode separates its background agent engine from its user interface so your coding sessions keep running even when you close your laptop.</p>



<p class="wp-block-paragraph">When you deploy OpenCode on an <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">Aveshost Self-Managed VPS</a>, you can interact with your remote codebase in three ways: through a full browser-based Web UI (<code>opencode web</code>), by attaching a local terminal TUI to the remote server (<code>opencode attach</code>), or via a persistent SSH + <code>tmux</code> session.</p>



<p class="wp-block-paragraph">In this guide, we show you how to <strong>run OpenCode on a VPS</strong> running Ubuntu 22.04 or 24.04 LTS, lock down port <code>4096</code> with <code>OPENCODE_SERVER_PASSWORD</code>, run the server 24/7 with <code>systemd</code>, and set up secure remote access over SSH port forwarding, Tailscale, or an Nginx HTTPS reverse proxy.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#why-run-opencode-on-a-vps-client-server-architecture-explained">Why Run OpenCode on a VPS? Client-Server Architecture Explained</a></div><div><a href="#step-1-prepare-your-ubuntu-vps-and-install-opencode">Step 1: Prepare Your Ubuntu VPS and Install OpenCode</a></div><div><a href="#step-2-configure-opencode-web-and-serve-with-password-authentication">Step 2: Configure OpenCode Web and Serve with Password Authentication</a></div><div><a href="#step-3-keep-opencode-running-24-7-as-a-systemd-service">Step 3: Keep OpenCode Running 24/7 as a Systemd Service</a></div><div><a href="#step-4-connect-remotely-via-ssh-tunnel-tailscale-or-nginx-https">Step 4: Connect Remotely via SSH Tunnel, Tailscale or Nginx HTTPS</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="why-run-opencode-on-a-vps-client-server-architecture-explained" class="wp-block-heading">Why Run OpenCode on a VPS? Client-Server Architecture Explained</h2>



<p class="wp-block-paragraph">Most terminal AI coding tools run as a single local process that dies the moment your terminal window closes. OpenCode is architected differently: when you run <code>opencode serve</code> or <code>opencode web</code>, it launches a headless HTTP and Server-Sent Events (SSE) backend on port <code>4096</code> exposing a full OpenAPI 3.1 specification.</p>



<p class="wp-block-paragraph">Because the agent runtime, file system tools, MCP integrations, and LSP servers live on your VPS, you can start a complex refactoring task from your desktop workstation, step away from your desk, and check the live diff or approve tool calls from your phone&#8217;s browser.</p>



<p class="wp-block-paragraph">Here is how the four ways to <strong>run OpenCode on a VPS</strong> with secure remote access compare:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Remote Access Method</th><th>OpenCode Command</th><th>Client Experience</th><th>Network Exposure</th><th>Best Use Case</th></tr></thead><tbody><tr><td>1. SSH Tunnel + Local TUI Attach</td><td>opencode serve (on VPS) + opencode attach (local)</td><td>Native keyboard-driven Terminal UI on your laptop</td><td>Zero public ports (SSH port 22 only)</td><td>Solo developers who love fast terminal keybindings</td></tr><tr><td>2. Tailscale / WireGuard Private Mesh</td><td>opencode web &#8211;port 4096</td><td>Full Browser Web UI &amp; mobile companion apps</td><td>Private VPN IP only (100.x.y.z)</td><td>Seamless multi-device access from laptop, iPad &amp; phone</td></tr><tr><td>3. Nginx HTTPS Reverse Proxy</td><td>opencode web &#8211;hostname 127.0.0.1 &#8211;port 4096</td><td>Browser Web UI at https://code.yourdomain.com</td><td>HTTPS (Port 443) + Basic Auth</td><td>Accessing your coding workspace from any browser anywhere</td></tr><tr><td>4. Direct SSH + tmux Session</td><td>tmux new -s code &amp;&amp; opencode</td><td>Remote terminal TUI inside SSH</td><td>Zero public ports (SSH port 22 only)</td><td>Quick server edits without setting up a web client</td></tr></tbody></table></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1264" height="848" src="https://blog.aveshost.com/wp-content/uploads/2026/11/opencode-vps-remote-access-architecture.webp" alt="OpenCode VPS remote access architecture showing browser, local TUI, and mobile clients connecting over SSH tunnel, Tailscale, or Nginx HTTPS to port 4096" class="wp-image-5918" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/opencode-vps-remote-access-architecture.webp 1264w, https://blog.aveshost.com/wp-content/uploads/2026/11/opencode-vps-remote-access-architecture-300x201.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/opencode-vps-remote-access-architecture-1024x687.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/opencode-vps-remote-access-architecture-768x515.webp 768w" sizes="(max-width: 1264px) 100vw, 1264px" /></figure>



<h2 id="step-1-prepare-your-ubuntu-vps-and-install-opencode" class="wp-block-heading">Step 1: Prepare Your Ubuntu VPS and Install OpenCode</h2>



<p class="wp-block-paragraph">OpenCode itself is a fast, lightweight binary, but the projects you build—and the Language Server Protocol (LSP) processes OpenCode spawns for TypeScript, Python, Rust, or Go—need breathing room. An Ubuntu 22.04 or 24.04 LTS VPS with <strong>2 to 4 vCPU cores, 4 GB to 8 GB of RAM, and 40 GB of SSD/NVMe disk space</strong> provides smooth performance for multi-file edits and test runs.</p>



<p class="wp-block-paragraph">Because OpenCode can execute shell commands and modify files inside your project directory, always run it under a dedicated non-root Linux user rather than <code>root</code>. SSH into your server, enable the UFW firewall, create a <code>developer</code> user, and run the official OpenCode installer:</p>





<pre class="wp-block-code"><code># 1. Update Ubuntu packages and install essential developer tools
sudo apt update &amp;&amp; sudo apt upgrade -y
sudo apt install -y curl git tmux ufw unzip ripgrep build-essential

# 2. Lock down UFW firewall (allow SSH; add 80/443 only if using Nginx HTTPS)
sudo ufw allow OpenSSH
sudo ufw --force enable

# 3. Create a dedicated non-root developer user
sudo adduser --disabled-password --gecos &quot;&quot; developer
sudo usermod -aG sudo developer
sudo su - developer

# 4. Install OpenCode using the official install script
curl -fsSL https://opencode.ai/install | bash
source ~/.bashrc

# 5. Verify the installed OpenCode version
opencode --version</code></pre>



<p class="wp-block-paragraph">Next, authenticate your preferred LLM provider (such as Anthropic Claude, OpenAI, Google Gemini, DeepSeek, or OpenRouter) by running <code>opencode auth login</code> and selecting your provider from the interactive prompt. OpenCode stores your credentials securely in <code>~/.local/share/opencode/auth.json</code>.</p>



<h2 id="step-2-configure-opencode-web-and-serve-with-password-authentication" class="wp-block-heading">Step 2: Configure OpenCode Web and Serve with Password Authentication</h2>



<p class="wp-block-paragraph">Before you <strong>run OpenCode on a VPS</strong> as a background service, configure its built-in HTTP Basic Authentication. Both <code>opencode web</code> (which serves the browser UI + API) and <code>opencode serve</code> (headless API server for <code>opencode attach</code>) read two environment variables:</p>



<p class="wp-block-paragraph">• <code>OPENCODE_SERVER_PASSWORD</code>: Sets the required password for all HTTP, SSE, and Web UI connections.
• <code>OPENCODE_SERVER_USERNAME</code>: Sets the HTTP Basic Auth username (defaults to <code>opencode</code> if omitted).</p>



<p class="wp-block-paragraph"><strong>Critical Security Rule:</strong> Always bind OpenCode to loopback (<code>--hostname 127.0.0.1</code>) on a public VPS instead of <code>0.0.0.0</code>. Binding to <code>127.0.0.1</code> guarantees that nobody on the public internet can probe port <code>4096</code> directly—all remote traffic must pass through your encrypted SSH tunnel, Tailscale interface, or Nginx HTTPS proxy.</p>



<p class="wp-block-paragraph">Create a dedicated environment file at <code>~/.config/opencode/server.env</code> with restricted <code>600</code> permissions:</p>





<pre class="wp-block-code"><code># 1. Create the OpenCode configuration directory and project workspace
mkdir -p ~/.config/opencode ~/projects

# 2. Save your server credentials in an environment file
cat &lt;&lt; &#x27;EOF&#x27; &gt; ~/.config/opencode/server.env
OPENCODE_SERVER_USERNAME=developer
OPENCODE_SERVER_PASSWORD=ChangeThisToAStrongRandomPassword99!
EOF

# 3. Restrict file permissions so only your user can read the password
chmod 600 ~/.config/opencode/server.env</code></pre>



<h2 id="step-3-keep-opencode-running-24-7-as-a-systemd-service" class="wp-block-heading">Step 3: Keep OpenCode Running 24/7 as a Systemd Service</h2>



<p class="wp-block-paragraph">To <strong>run OpenCode on a VPS</strong> 24/7 so your coding sessions survive SSH disconnects and restart automatically if the server reboots, register it as a <code>systemd</code> service.</p>



<p class="wp-block-paragraph">Create <code>/etc/systemd/system/opencode.service</code> pointing to your <code>~/projects</code> workspace and your <code>server.env</code> credentials file:</p>





<pre class="wp-block-code"><code>sudo tee /etc/systemd/system/opencode.service &gt; /dev/null &lt;&lt; &#x27;EOF&#x27;
[Unit]
Description=OpenCode 24/7 AI Coding Server (Web &amp; API)
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=developer
Group=developer
WorkingDirectory=/home/developer/projects
EnvironmentFile=/home/developer/.config/opencode/server.env
Environment=&quot;PATH=/home/developer/.opencode/bin:/home/developer/.local/bin:/usr/local/bin:/usr/bin:/bin&quot;
ExecStart=/home/developer/.opencode/bin/opencode web --hostname 127.0.0.1 --port 4096
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
EOF

# Reload systemd, enable auto-start on boot, and launch OpenCode
sudo systemctl daemon-reload
sudo systemctl enable --now opencode.service
sudo systemctl status opencode.service</code></pre>



<p class="wp-block-paragraph">Because <code>opencode web</code> serves both the browser Web UI and the OpenAPI backend on port <code>4096</code>, this single <code>systemd</code> unit supports both browser access and terminal <code>opencode attach</code> connections simultaneously.</p>



<h2 id="step-4-connect-remotely-via-ssh-tunnel-tailscale-or-nginx-https" class="wp-block-heading">Step 4: Connect Remotely via SSH Tunnel, Tailscale or Nginx HTTPS</h2>



<p class="wp-block-paragraph">With <code>opencode.service</code> listening safely on <code>127.0.0.1:4096</code>, choose the remote access workflow that best fits how you work:</p>



<p class="wp-block-paragraph"><strong>Method A — SSH Port Forwarding + <code>opencode attach</code> or Browser (Zero Extra Software):</strong> On your local laptop, open a terminal and forward local port <code>4096</code> to your VPS over SSH. You can then either open <code>http://localhost:4096</code> in your browser or attach a native local OpenCode TUI directly to the remote VPS backend:</p>



<p class="wp-block-paragraph"><strong>Method B — Private Tailscale HTTPS Mesh (Best for Mobile &#038; Tablet Coding):</strong> If you use Tailscale on your VPS and phone, run <code>sudo tailscale serve --bg 4096</code>. Tailscale automatically provisions a private HTTPS certificate on your tailnet domain without opening any public ports on your VPS firewall.</p>



<p class="wp-block-paragraph"><strong>Method C — Nginx Reverse Proxy with Let&#8217;s Encrypt HTTPS (Access from Any Device):</strong> If you want a custom domain like <code>https://opencode.yourdomain.com</code>, configure Nginx with <code>proxy_buffering off</code> so OpenCode&#8217;s real-time Server-Sent Events (SSE) stream token-by-token without lag:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1264" height="848" src="https://blog.aveshost.com/wp-content/uploads/2026/11/opencode-vps-command-cheatsheet.webp" alt="OpenCode VPS command cheat sheet for installation, authentication, loopback web server, SSH tunnel attach, and systemd service" class="wp-image-5919" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/opencode-vps-command-cheatsheet.webp 1264w, https://blog.aveshost.com/wp-content/uploads/2026/11/opencode-vps-command-cheatsheet-300x201.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/opencode-vps-command-cheatsheet-1024x687.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/opencode-vps-command-cheatsheet-768x515.webp 768w" sizes="(max-width: 1264px) 100vw, 1264px" /></figure>





<pre class="wp-block-code"><code># === METHOD A: Run on your LOCAL laptop to tunnel &amp; attach ===
ssh -N -L 4096:127.0.0.1:4096 developer@your-vps-ip &amp;
# Open http://localhost:4096 in your browser, OR attach your local TUI:
opencode attach http://127.0.0.1:4096

# === METHOD C: Nginx Reverse Proxy on the VPS for https://opencode.yourdomain.com ===
sudo apt install -y nginx certbot python3-certbot-nginx
sudo ufw allow 80/tcp &amp;&amp; sudo ufw allow 443/tcp

sudo tee /etc/nginx/sites-available/opencode &gt; /dev/null &lt;&lt; &#x27;EOF&#x27;
server {
    listen 80;
    server_name opencode.yourdomain.com;

    location / {
        proxy_pass http://127.0.0.1:4096;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # Required for real-time OpenCode SSE &amp; WebSocket streaming
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection &quot;upgrade&quot;;
        proxy_buffering off;
        proxy_cache off;
        proxy_read_timeout 3600s;
    }
}
EOF

sudo ln -s /etc/nginx/sites-available/opencode /etc/nginx/sites-enabled/
sudo nginx -t &amp;&amp; sudo systemctl reload nginx
sudo certbot --nginx -d opencode.yourdomain.com --redirect</code></pre>



<p class="wp-block-paragraph">Looking to compare other self-hosted AI developer stacks on your VPS? Check out our tutorial on how to <a href="https://blog.aveshost.com/self-host-openhands-on-a-vps/">self-host OpenHands on a VPS</a> for full Docker-sandboxed coding, our guide to <a href="https://blog.aveshost.com/install-hermes-agent-on-an-ubuntu-vps/">installing Hermes Agent on an Ubuntu VPS</a>, and our <a href="https://blog.aveshost.com/vibe-coding-security-checklist/">vibe coding security checklist</a>.</p>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-0961ffd69ad544a39cc654ba5138f59b" class="rank-math-list-item">
<h3 class="rank-math-question ">What is the difference between opencode serve and opencode web?</h3>
<div class="rank-math-answer ">

<p>Both commands start the OpenCode HTTP and OpenAPI 3.1 server on port 4096. The opencode serve command runs a headless API backend intended for programmatic clients or attaching a remote terminal via opencode attach, while opencode web also serves the full browser-based Web UI so you can code directly from any web browser.</p>

</div>
</div>
<div id="faq-question-98b5d031d9a54ea099d9a97db67ce060" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I password-protect OpenCode when running it on a VPS?</h3>
<div class="rank-math-answer ">

<p>Set the OPENCODE_SERVER_PASSWORD environment variable (and optionally OPENCODE_SERVER_USERNAME, which defaults to opencode) before launching opencode web or opencode serve. Combine this with binding to 127.0.0.1 and accessing the server over an SSH tunnel, Tailscale, or an Nginx HTTPS reverse proxy.</p>

</div>
</div>
<div id="faq-question-f802c263a5b545af91605860f4322705" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I use my local terminal TUI while OpenCode runs on a remote VPS?</h3>
<div class="rank-math-answer ">

<p>Yes. Start opencode serve or opencode web on your VPS, forward port 4096 over an SSH tunnel (ssh -L 4096:127.0.0.1:4096 user@vps-ip), and run opencode attach http://127.0.0.1:4096 on your laptop. You get the snappy local terminal UI while all file edits, language servers, and builds execute on the VPS.</p>

</div>
</div>
<div id="faq-question-ecceb99db3594c2ba83a97af07e6842f" class="rank-math-list-item">
<h3 class="rank-math-question ">How much RAM do I need to run OpenCode on an Ubuntu VPS?</h3>
<div class="rank-math-answer ">

<p>OpenCode itself uses very little memory and runs on a 2 GB RAM VPS, but the Language Server Protocol (LSP) processes, compilers, and test runners it launches for TypeScript, Python, Go, or Rust require extra headroom. We recommend a 2 to 4 vCPU Ubuntu VPS with 4 GB to 8 GB of RAM.</p>

</div>
</div>
<div id="faq-question-92f6eaadce6d4e6584aacb4d2f2f56ca" class="rank-math-list-item">
<h3 class="rank-math-question ">Why is my OpenCode Web UI lagging or not streaming responses behind Nginx?</h3>
<div class="rank-math-answer ">

<p>OpenCode streams token responses and tool events using Server-Sent Events (SSE). If Nginx buffers the upstream response, output appears frozen until the turn finishes. Add proxy_buffering off;, proxy_cache off;, and proxy_read_timeout 3600s; inside your Nginx location block and reload Nginx.</p>

</div>
</div>
</div>
</div>

]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/run-opencode-on-a-vps/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Self-Host OpenHands on a VPS for AI Coding Projects</title>
		<link>https://blog.aveshost.com/self-host-openhands-on-a-vps/</link>
					<comments>https://blog.aveshost.com/self-host-openhands-on-a-vps/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Sun, 15 Nov 2026 12:48:27 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[AI coding]]></category>
		<category><![CDATA[Docker Compose]]></category>
		<category><![CDATA[OpenHands]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[Ubuntu VPS]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=5908</guid>

					<description><![CDATA[A complete step-by-step guide to self-hosting OpenHands (formerly OpenDevin) on an Ubuntu VPS with Docker Compose, sibling sandbox containers, and Nginx HTTPS authentication.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Learning how to <strong>self-host OpenHands on a VPS</strong> gives you a dedicated, browser-accessible AI software engineer that can clone repositories, run test suites, debug full-stack applications, and open GitHub pull requests without slowing down your local laptop. Formerly known as OpenDevin, <a href="https://github.com/All-Hands-AI/OpenHands" rel="noopener">OpenHands</a> is an MIT-licensed open-source platform built specifically for autonomous AI coding projects.</p>



<p class="wp-block-paragraph">Unlike lightweight chat bots that only generate code snippets, OpenHands spins up a full Linux developer workspace inside an isolated Docker sandbox container—complete with Python, Node.js, Git, a bash terminal, and a headless Chromium browser. Deploying that stack on an <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">Aveshost Self-Managed VPS</a> keeps heavy container builds and long-running refactoring jobs online 24/7.</p>



<p class="wp-block-paragraph">In this guide, we walk through the exact hardware requirements, Docker socket security rules, <code>docker-compose.yml</code> configuration, and Nginx HTTPS + WebSocket reverse proxy setup required to <strong>self-host OpenHands on a VPS</strong> safely in production.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#how-openhands-works-on-a-vps-app-vs-sandbox-containers">How OpenHands Works on a VPS: App vs Sandbox Containers</a></div><div><a href="#step-1-prepare-your-ubuntu-vps-and-install-docker">Step 1: Prepare Your Ubuntu VPS and Install Docker</a></div><div><a href="#step-2-self-host-openhands-on-a-vps-with-docker-compose">Step 2: Self-Host OpenHands on a VPS with Docker Compose</a></div><div><a href="#step-3-secure-openhands-with-nginx-https-and-basic-auth-or-ssh-tunnel">Step 3: Secure OpenHands with Nginx HTTPS &amp; Basic Auth (or SSH Tunnel)</a></div><div><a href="#step-4-connect-your-llm-api-key-and-github-repositories">Step 4: Connect Your LLM API Key and GitHub Repositories</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="how-openhands-works-on-a-vps-app-vs-sandbox-containers" class="wp-block-heading">How OpenHands Works on a VPS: App vs Sandbox Containers</h2>



<p class="wp-block-paragraph">Before you <strong>self-host OpenHands on a VPS</strong>, it helps to understand its two-container architecture. When you start OpenHands, you are not running a single monolithic container. Instead, the main <strong>OpenHands Application Container</strong> (listening on port <code>3000</code>) mounts your host server&#8217;s Docker socket (<code>/var/run/docker.sock</code>) so it can dynamically launch sibling <strong>Sandbox Runtime Containers</strong> (<code>SANDBOX_RUNTIME_CONTAINER_IMAGE</code>).</p>



<p class="wp-block-paragraph">Every time you start an AI coding session, the agent executes bash commands, installs npm or pip packages, and runs tests inside that isolated runtime container rather than on your underlying Ubuntu host. However, because the application container has access to the Docker socket and stores your LLM API keys, you must <strong>never</strong> expose port <code>3000</code> directly to the public internet without authentication.</p>



<p class="wp-block-paragraph">Here is how the recommended hardware tiers compare when you <strong>self-host OpenHands on a VPS</strong>:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>VPS Tier / Workload</th><th>Recommended vCPU &amp; RAM</th><th>NVMe / SSD Storage</th><th>Ideal AI Coding Use Case</th></tr></thead><tbody><tr><td>Starter Coding VPS (Single Active Session)</td><td>2 vCPU / 4 GB RAM (+ 4 GB Swap)</td><td>30 GB – 40 GB SSD/NVMe</td><td>Frontend/backend scripts, bug fixes, and single-repo pull requests</td></tr><tr><td>Standard Developer VPS (Recommended)</td><td>4 vCPU / 8 GB RAM</td><td>50 GB – 80 GB NVMe</td><td>Full-stack Next.js/Python apps, automated test suites, and headless browser debugging</td></tr><tr><td>Heavy Multi-Agent VDS</td><td>6+ vCPU / 16 GB+ RAM</td><td>100+ GB NVMe</td><td>Concurrent coding sessions, Docker-in-Docker builds, and local Ollama/vLLM routing</td></tr></tbody></table></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1264" height="848" src="https://blog.aveshost.com/wp-content/uploads/2026/11/openhands-vps-docker-sandbox-architecture.webp" alt="OpenHands VPS Docker sandbox architecture showing Nginx HTTPS proxy, app container, and isolated runtime containers" class="wp-image-5910" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/openhands-vps-docker-sandbox-architecture.webp 1264w, https://blog.aveshost.com/wp-content/uploads/2026/11/openhands-vps-docker-sandbox-architecture-300x201.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/openhands-vps-docker-sandbox-architecture-1024x687.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/openhands-vps-docker-sandbox-architecture-768x515.webp 768w" sizes="(max-width: 1264px) 100vw, 1264px" /></figure>



<h2 id="step-1-prepare-your-ubuntu-vps-and-install-docker" class="wp-block-heading">Step 1: Prepare Your Ubuntu VPS and Install Docker</h2>



<p class="wp-block-paragraph">Start with a clean Ubuntu 22.04 LTS or 24.04 LTS server. Because OpenHands pulls a pre-built developer runtime image (<code>runtime:0.51-nikolaik</code>) that weighs several gigabytes uncompressed, configuring a 4 GB swap file on 4 GB or 8 GB RAM servers prevents out-of-memory kills during heavy compilation or test runs.</p>



<p class="wp-block-paragraph">Connect to your VPS over SSH, create a dedicated non-root Linux user, configure UFW so only SSH and HTTPS are open, and install the official Docker Engine and Compose plugin:</p>



<pre class="wp-block-code"><code># 1. Update packages and configure UFW firewall
sudo apt update &amp;&amp; sudo apt upgrade -y
sudo apt install -y curl git ufw ca-certificates apache2-utils
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw --force enable

# 2. Add a 4 GB swap file to cushion heavy container builds
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

# 3. Install official Docker Engine &amp; Docker Compose plugin
curl -fsSL https://get.docker.com | sudo sh

# 4. Create a dedicated non-root user and grant Docker permissions
sudo adduser --disabled-password --gecos "" openhands
sudo usermod -aG docker,sudo openhands
sudo su - openhands</code></pre>



<p class="wp-block-paragraph">Verify that Docker is working under your new user by running <code>docker compose version</code> before moving to the next step.</p>



<h2 id="step-2-self-host-openhands-on-a-vps-with-docker-compose" class="wp-block-heading">Step 2: Self-Host OpenHands on a VPS with Docker Compose</h2>



<p class="wp-block-paragraph">When you <strong>self-host OpenHands on a VPS</strong>, two details in your <code>docker-compose.yml</code> file are critical for stability and security:</p>



<p class="wp-block-paragraph"><strong>1. Bind Port 3000 to Localhost (<code>127.0.0.1:3000:3000</code>):</strong> Docker automatically manipulates Linux <code>iptables</code> rules, which means publishing <code>-p 3000:3000</code> on all interfaces bypasses UFW and exposes your unauthenticated agent UI to the entire internet. Binding to <code>127.0.0.1:3000:3000</code> ensures only your local Nginx reverse proxy or an SSH tunnel can reach OpenHands.</p>



<p class="wp-block-paragraph"><strong>2. Match the App and Runtime Image Versions:</strong> Always pin the exact same version tag on both <code>openhands</code> and <code>SANDBOX_RUNTIME_CONTAINER_IMAGE</code> so the agent protocol and runtime container stay in sync.</p>



<p class="wp-block-paragraph">Create your project directory, pre-pull the sandbox runtime image, and launch the stack with Docker Compose:</p>



<pre class="wp-block-code"><code># 1. Create persistent directories for OpenHands state and project workspaces
mkdir -p ~/openhands ~/.openhands-state ~/openhands-workspace
cd ~/openhands

# 2. Create the production docker-compose.yml file
cat &lt;&lt; 'EOF' &gt; docker-compose.yml
services:
  openhands:
    image: docker.all-hands.dev/all-hands-ai/openhands:0.51
    container_name: openhands-app
    restart: unless-stopped
    ports:
      - "127.0.0.1:3000:3000"
    environment:
      - SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.51-nikolaik
      - LOG_ALL_EVENTS=true
      - SANDBOX_USER_ID=1000
      - WORKSPACE_MOUNT_PATH=/home/openhands/openhands-workspace
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /home/openhands/.openhands-state:/.openhands-state
      - /home/openhands/openhands-workspace:/opt/workspace_base
    extra_hosts:
      - "host.docker.internal:host-gateway"
EOF

# 3. Pre-pull the sandbox runtime image so your first coding session starts instantly
docker pull docker.all-hands.dev/all-hands-ai/runtime:0.51-nikolaik

# 4. Start OpenHands in the background
docker compose up -d</code></pre>



<p class="wp-block-paragraph">Run <code>docker ps</code> to confirm that <code>openhands-app</code> is up and listening solely on <code>127.0.0.1:3000</code>.</p>



<h2 id="step-3-secure-openhands-with-nginx-https-and-basic-auth-or-ssh-tunnel" class="wp-block-heading">Step 3: Secure OpenHands with Nginx HTTPS &amp; Basic Auth (or SSH Tunnel)</h2>



<p class="wp-block-paragraph">Once you <strong>self-host OpenHands on a VPS</strong> and bind it to localhost, you have two secure ways to access the web interface from your laptop:</p>



<p class="wp-block-paragraph"><strong>Option A — Zero-Config SSH Port Forwarding (Fastest for Solo Developers):</strong> If you do not want to point a domain name or manage SSL certificates, simply run <code>ssh -L 3000:127.0.0.1:3000 openhands@your-vps-ip</code> on your laptop and open <code>http://localhost:3000</code> in your browser. All traffic travels over your encrypted SSH connection.</p>



<p class="wp-block-paragraph"><strong>Option B — Custom Domain with Nginx HTTPS, WebSockets &amp; Password Protection:</strong> If you want to access OpenHands from any device at <code>https://code.yourdomain.com</code>, place Nginx in front of port <code>3000</code> with Let&#8217;s Encrypt TLS, HTTP Basic Auth (<code>htpasswd</code>), and WebSocket upgrade headers (required so the live terminal and browser preview stream properly):</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1264" height="848" src="https://blog.aveshost.com/wp-content/uploads/2026/11/openhands-vps-deployment-checklist.webp" alt="OpenHands VPS deployment cheat sheet covering localhost port binding, image tags, Nginx WebSockets, and GitHub tokens" class="wp-image-5911" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/openhands-vps-deployment-checklist.webp 1264w, https://blog.aveshost.com/wp-content/uploads/2026/11/openhands-vps-deployment-checklist-300x201.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/openhands-vps-deployment-checklist-1024x687.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/openhands-vps-deployment-checklist-768x515.webp 768w" sizes="(max-width: 1264px) 100vw, 1264px" /></figure>



<pre class="wp-block-code"><code># 1. Install Nginx and Certbot, then create your Basic Auth password file
sudo apt install -y nginx certbot python3-certbot-nginx
sudo htpasswd -c /etc/nginx/.openhands_htpasswd developer

# 2. Create the Nginx reverse proxy configuration
sudo tee /etc/nginx/sites-available/openhands &gt; /dev/null &lt;&lt; 'EOF'
server {
    listen 80;
    server_name code.yourdomain.com;

    location / {
        auth_basic "Restricted AI Coding Workspace";
        auth_basic_user_file /etc/nginx/.openhands_htpasswd;

        proxy_pass http://127.0.0.1:3000;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # Essential for OpenHands real-time WebSocket agent streams
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";

        # Prevent timeouts during long LLM reasoning &amp; test runs
        proxy_read_timeout 3600s;
        proxy_send_timeout 3600s;
    }
}
EOF

# 3. Enable the site and issue a free Let's Encrypt SSL certificate
sudo ln -s /etc/nginx/sites-available/openhands /etc/nginx/sites-enabled/
sudo nginx -t &amp;&amp; sudo systemctl reload nginx
sudo certbot --nginx -d code.yourdomain.com --redirect</code></pre>



<p class="wp-block-paragraph">For additional best practices on locking down AI-generated code and secrets, review our <a href="https://blog.aveshost.com/vibe-coding-security-checklist/">vibe coding security checklist</a> and our guide on how to <a href="https://blog.aveshost.com/host-mcp-server-on-vps-https-authentication/">host a remote MCP server on a VPS with HTTPS and authentication</a>.</p>



<h2 id="step-4-connect-your-llm-api-key-and-github-repositories" class="wp-block-heading">Step 4: Connect Your LLM API Key and GitHub Repositories</h2>



<p class="wp-block-paragraph">After you <strong>self-host OpenHands on a VPS</strong>, open your browser, log in through your Nginx Basic Auth prompt (or localhost SSH tunnel), and complete the initial workspace setup:</p>



<p class="wp-block-paragraph"><strong>1. Choose Your Coding LLM Provider:</strong> Click the <strong>Settings (gear icon)</strong> in the bottom-left corner of the OpenHands UI. OpenHands uses LiteLLM under the hood, so you can connect Anthropic (such as Claude Sonnet for high SWE-bench accuracy), OpenAI, OpenRouter, DeepSeek, or a local Ollama endpoint. Paste your API key and save your settings—OpenHands persists these encrypted settings inside <code>~/.openhands-state/</code>.</p>



<p class="wp-block-paragraph"><strong>2. Connect GitHub with Fine-Grained Repository Tokens:</strong> Instead of granting an AI agent unrestricted access to every repository in your GitHub account, generate a <strong>Fine-Grained Personal Access Token</strong> in GitHub scoped strictly to the specific project repositories you want OpenHands to work on (with Read/Write permissions for <em>Contents</em> and <em>Pull Requests</em>). Paste that token into the GitHub integration field inside OpenHands.</p>



<p class="wp-block-paragraph"><strong>3. Manage Disk Space and Prune Old Sandbox Images:</strong> Over weeks of coding, stopped sandbox containers and old build caches can accumulate on your VPS disk. Run these maintenance commands periodically (or via a weekly cron job) to keep your VPS lean:</p>



<pre class="wp-block-code"><code># 1. View active OpenHands application and sibling sandbox containers
docker ps

# 2. Stream live agent orchestration logs
docker logs -f openhands-app

# 3. Reclaim disk space from exited sandbox containers and dangling build caches
docker container prune -f
docker image prune -f</code></pre>



<p class="wp-block-paragraph">If you also want a 24/7 personal AI assistant on Telegram or Discord alongside your coding workspace, see our guides on how to <a href="https://blog.aveshost.com/install-hermes-agent-on-an-ubuntu-vps/">install Hermes Agent on an Ubuntu VPS</a> and our comparison of <a href="https://blog.aveshost.com/hermes-agent-vs-openclaw/">Hermes Agent vs OpenClaw</a>.</p>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-b2fbf5ec870e460ebbc3a80b56fe9a1c" class="rank-math-list-item">
<h3 class="rank-math-question ">What are the minimum VPS requirements to self-host OpenHands?</h3>
<div class="rank-math-answer ">

<p>To self-host OpenHands on a VPS reliably, start with an Ubuntu 22.04 or 24.04 LTS server with at least 2 vCPU cores, 4 GB of RAM (plus a 4 GB swap file), and 30 GB of SSD or NVMe storage. For full-stack projects that run automated test suites and headless Chromium browsers simultaneously, 4 vCPU cores and 8 GB of RAM is the sweet spot.</p>

</div>
</div>
<div id="faq-question-603135d5870a474597bfa3b7a7901eaa" class="rank-math-list-item">
<h3 class="rank-math-question ">Why does OpenHands need access to /var/run/docker.sock on my VPS?</h3>
<div class="rank-math-answer ">

<p>OpenHands isolates every AI coding session inside a separate sibling Docker container (the sandbox runtime image) so the agent can install packages, run bash scripts, and execute code without modifying your host Ubuntu operating system. Mounting /var/run/docker.sock allows the main OpenHands app container to spawn and manage those sandbox containers.</p>

</div>
</div>
<div id="faq-question-e268313b3f244e27b65099851dfe8853" class="rank-math-list-item">
<h3 class="rank-math-question ">Is it safe to expose OpenHands port 3000 directly to the internet?</h3>
<div class="rank-math-answer ">

<p>No. You should never bind OpenHands port 3000 directly to 0.0.0.0 on a public VPS because anyone who discovers your IP address could access your coding workspace, Docker socket, and stored LLM API keys. Always bind the container to 127.0.0.1:3000:3000 and access it through an Nginx HTTPS reverse proxy with password authentication or an encrypted SSH tunnel.</p>

</div>
</div>
<div id="faq-question-14fd5321d5aa4e629c335d3c603faa14" class="rank-math-list-item">
<h3 class="rank-math-question ">Which LLM models work best with a self-hosted OpenHands VPS?</h3>
<div class="rank-math-answer ">

<p>OpenHands supports dozens of providers via LiteLLM, including Anthropic Claude Sonnet and Opus, OpenAI GPT models, DeepSeek Coder/V3, Qwen Coder, and OpenRouter. Because agentic coding loops send large repository context windows and terminal outputs on each turn, models that support prompt caching (such as Claude Sonnet or DeepSeek) deliver the best balance of coding accuracy and token cost.</p>

</div>
</div>
<div id="faq-question-e1941180926748d4a64078b15b92a8c2" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I update my self-hosted OpenHands instance on Ubuntu?</h3>
<div class="rank-math-answer ">

<p>To update OpenHands, edit your docker-compose.yml file to set the new release version tag on both the openhands image and the SANDBOX_RUNTIME_CONTAINER_IMAGE environment variable. Then run docker compose pull followed by docker compose up -d, and prune the old runtime image with docker image prune -f.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/self-host-openhands-on-a-vps/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Hermes Agent vs OpenClaw: Features, Hosting and Running Costs Compared</title>
		<link>https://blog.aveshost.com/hermes-agent-vs-openclaw/</link>
					<comments>https://blog.aveshost.com/hermes-agent-vs-openclaw/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Sun, 15 Nov 2026 11:38:54 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[AI agents]]></category>
		<category><![CDATA[Hermes Agent]]></category>
		<category><![CDATA[OpenClaw]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[Ubuntu VPS]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=5901</guid>

					<description><![CDATA[A side-by-side breakdown of Nous Research's Hermes Agent vs OpenClaw covering architecture, persistent memory, skill ecosystems, Ubuntu VPS requirements, and real-world monthly running costs.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Choosing between <strong>Hermes Agent vs OpenClaw</strong> comes down to whether you want a Python-based agent built around a self-improving learning loop or a TypeScript-powered multi-channel gateway with the largest community skill marketplace. Both <a href="https://github.com/NousResearch/hermes-agent" rel="noopener">Hermes Agent</a> (developed by Nous Research) and <a href="https://github.com/openclaw/openclaw" rel="noopener">OpenClaw</a> are completely free, MIT-licensed open-source AI assistant frameworks that you can self-host 24/7 on your own server.</p>



<p class="wp-block-paragraph">While both frameworks connect large language models (LLMs) to real-world tools, terminal sandboxes, and chat apps like Telegram, Discord, Slack, and WhatsApp, their internal architectures lead to noticeably different server footprints and monthly API token bills when deployed on an <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">Aveshost Self-Managed VPS</a> .</p>



<p class="wp-block-paragraph">In this guide, we compare <strong>Hermes Agent vs OpenClaw</strong> across core features, memory and skill management, Ubuntu VPS hardware requirements, and realistic monthly running costs so you can deploy the right autonomous agent for your workflow.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#hermes-agent-vs-openclaw-at-a-glance">Hermes Agent vs OpenClaw at a Glance: Core Architecture</a></div><div><a href="#features-compared-memory-skills-and-channel-integrations">Features Compared: Memory, Skills and Channel Integrations</a></div><div><a href="#hosting-compared-ubuntu-vps-requirements-and-deployment">Hosting Compared: Ubuntu VPS Requirements and Deployment</a></div><div><a href="#running-costs-compared-vps-hosting-vs-llm-api-token-spend">Running Costs Compared: VPS Hosting vs LLM API Token Spend</a></div><div><a href="#which-ai-agent-should-you-choose-decision-checklist">Which AI Agent Should You Choose? (Decision Checklist)</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="hermes-agent-vs-openclaw-at-a-glance" class="wp-block-heading">Hermes Agent vs OpenClaw at a Glance: Core Architecture</h2>



<p class="wp-block-paragraph">At a high level, <strong>Hermes Agent</strong> is engineered around a closed-loop learning cycle in Python. Instead of treating every chat session as a disposable conversation, Hermes extracts durable lessons from completed tasks, writes its own procedural skill files, and indexes every session in a local SQLite database with FTS5 full-text search.</p>



<p class="wp-block-paragraph"><strong>OpenClaw</strong>, by contrast, is architected in TypeScript (Node.js) as a centralized <strong>Gateway Control Plane</strong> (running by default on port <code>18789</code>). Its primary strength is broad channel and device reach—routing events across 50+ messaging platforms, native desktop/mobile companion nodes, and thousands of community-built skills on ClawHub.</p>



<p class="wp-block-paragraph">Here is how <strong>Hermes Agent vs OpenClaw</strong> compare side by side across their core technical specifications:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Comparison Dimension</th><th>Hermes Agent (Nous Research)</th><th>OpenClaw</th></tr></thead><tbody><tr><td>License &amp; Core Stack</td><td>MIT License — Python (uv virtual environment)</td><td>MIT License — TypeScript / Node.js (Node 22+)</td></tr><tr><td>Core Architectural Focus</td><td>Closed-loop autonomous learning, self-generated skills &amp; curated memory</td><td>Multi-channel Gateway Control Plane (port 18789) &amp; device-aware routing</td></tr><tr><td>Memory &amp; Recall Engine</td><td>Capped MEMORY.md &amp; USER.md + SQLite FTS5 cross-session search + Honcho user modeling</td><td>File-based workspace (SOUL.md, MEMORY.md, daily logs) + full transcript compaction</td></tr><tr><td>Skill Ecosystem</td><td>Autonomous self-authored SKILL.md files + Skills Hub + ClawHub &amp; MCP compatibility</td><td>ClawHub community marketplace (thousands of plug-and-play skills) + MCP support</td></tr><tr><td>Messaging &amp; Interfaces</td><td>CLI/TUI, Telegram, Discord, Slack, WhatsApp, Signal, Email, OpenAI-compatible API</td><td>50+ messaging apps, Web Control UI, plus native macOS, iOS, and Android companion nodes</td></tr><tr><td>Code Execution Sandboxes</td><td>6 backends: local, Docker, SSH, Singularity, Modal, and Daytona</td><td>Local host shell/Node runtime or Gateway-managed Docker containers</td></tr><tr><td>Recommended Ubuntu VPS Specs</td><td>2 vCPU, 2 GB – 4 GB RAM, 25 GB SSD/NVMe</td><td>2 vCPU, 4 GB – 8 GB RAM, 25+ GB SSD/NVMe</td></tr></tbody></table></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1264" height="848" src="https://blog.aveshost.com/wp-content/uploads/2026/11/hermes-agent-vs-openclaw-architecture.webp" alt="Hermes Agent vs OpenClaw architecture comparison showing Python closed-loop learning vs TypeScript Gateway Control Plane" class="wp-image-5903" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/hermes-agent-vs-openclaw-architecture.webp 1264w, https://blog.aveshost.com/wp-content/uploads/2026/11/hermes-agent-vs-openclaw-architecture-300x201.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/hermes-agent-vs-openclaw-architecture-1024x687.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/hermes-agent-vs-openclaw-architecture-768x515.webp 768w" sizes="(max-width: 1264px) 100vw, 1264px" /></figure>



<h2 id="features-compared-memory-skills-and-channel-integrations" class="wp-block-heading">Features Compared: Memory, Skills and Channel Integrations</h2>



<p class="wp-block-paragraph">When evaluating <strong>Hermes Agent vs OpenClaw</strong> for daily production work, the biggest day-to-day differences show up in how each agent remembers past instructions, acquires new capabilities, and connects to your tools.</p>



<p class="wp-block-paragraph"><strong>1. Persistent Memory and Context Window Efficiency:</strong> OpenClaw stores workspace context in local Markdown files (<code>SOUL.md</code>, <code>MEMORY.md</code>, and daily journals) and retains raw conversational transcripts until the model&#8217;s context window fills up, at which point it triggers context compaction. Hermes Agent takes a more structured, token-frugal approach: it enforces a strict character cap on <code>MEMORY.md</code> and <code>USER.md</code> so your system prompt stays lean, while offloading historical recall to a local SQLite FTS5 search engine paired with a fast, inexpensive auxiliary summarization model.</p>



<p class="wp-block-paragraph"><strong>2. Self-Improving Skills vs Community Marketplace:</strong> If you want instant plug-and-play integrations for smart home devices, SaaS webhooks, or niche productivity apps, OpenClaw&#8217;s <strong>ClawHub</strong> registry gives you thousands of ready-made community packages. Hermes Agent, however, shines when your workflows are custom: after solving a multi-step engineering or research problem, Hermes autonomously drafts a reusable <code>SKILL.md</code> procedure in <code>~/.hermes/skills/</code> and refines it on future runs—while still letting you import skills from ClawHub and connect <a href="https://blog.aveshost.com/host-mcp-server-on-vps-https-authentication/">remote MCP servers</a>.</p>



<p class="wp-block-paragraph"><strong>3. Execution Sandboxes and Multi-Agent Delegation:</strong> For developers who let their AI agent run bash scripts or repository builds, Hermes Agent natively supports six execution backends right out of the box—including local execution, Docker, remote SSH, Singularity, and serverless cloud sandboxes via Modal and Daytona. It can also spawn isolated subagents in parallel for heavy coding or research tasks.</p>



<h2 id="hosting-compared-ubuntu-vps-requirements-and-deployment" class="wp-block-heading">Hosting Compared: Ubuntu VPS Requirements and Deployment</h2>



<p class="wp-block-paragraph">Because both frameworks are designed to listen for incoming Telegram, Discord, or WhatsApp messages and execute scheduled cron jobs around the clock, running them on a personal laptop quickly becomes frustrating whenever your machine sleeps. Deploying on an Ubuntu 22.04 or 24.04 LTS VPS gives your agent a dedicated 24/7 home.</p>



<p class="wp-block-paragraph"><strong>Hermes Agent Hosting Footprint:</strong> Because Hermes runs on a lean Python + <code>uv</code> stack and keeps its active memory footprint small, an entry-level Ubuntu VPS with <strong>2 vCPU cores and 2 GB to 4 GB of RAM</strong> is more than enough. You can follow our step-by-step guide on how to <a href="https://blog.aveshost.com/install-hermes-agent-on-an-ubuntu-vps/">install Hermes Agent on an Ubuntu VPS</a> to configure its built-in <code>systemd</code> gateway service in under 10 minutes.</p>



<p class="wp-block-paragraph"><strong>OpenClaw Hosting Footprint:</strong> OpenClaw&#8217;s Node.js 22+ Gateway daemon and Web Control UI use slightly more baseline memory, and many popular ClawHub skills spin up headless Chromium via Playwright for web scraping and browser automation. For smooth 24/7 operation without out-of-memory kills, provision at least <strong>2 vCPU cores and 4 GB to 8 GB of RAM</strong> (see our tutorial on how to <a href="https://blog.aveshost.com/build-an-ai-help-desk-with-openclaw/">build an AI help desk with OpenClaw</a>).</p>



<p class="wp-block-paragraph"><strong>Can You Host Both on the Same Ubuntu VPS?</strong> Yes. Because Hermes Agent uses outbound HTTPS/WebSocket polling for Telegram and Discord and stores all state inside <code>~/.hermes/</code>, while OpenClaw stores its workspace in <code>~/.openclaw/</code> and binds its gateway to <code>127.0.0.1:18789</code>, you can easily run both agents side by side on a single 4 GB or 8 GB RAM <a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">Aveshost Self-Managed VPS</a>:</p>





<pre class="wp-block-code"><code># Check resource usage when running Hermes Agent and OpenClaw on the same Ubuntu VPS
sudo systemctl status hermes-gateway.service
sudo systemctl status openclaw-gateway.service

# Inspect live RAM consumption per agent daemon
ps -o pid,user,%cpu,%mem,rss,comm -C python3,node</code></pre>



<p class="wp-block-paragraph">If you prefer a visual server control panel alongside your SSH terminal for managing domains, SSL certificates, or web webhooks, you can also deploy on an <a href="https://www.aveshost.com/fully-managed-vps-hosting" rel="noopener">Aveshost Fully Managed VPS</a> (which includes DirectAdmin by default).</p>



<h2 id="running-costs-compared-vps-hosting-vs-llm-api-token-spend" class="wp-block-heading">Running Costs Compared: VPS Hosting vs LLM API Token Spend</h2>



<p class="wp-block-paragraph">Although both Hermes Agent and OpenClaw are free to download, your actual monthly running cost consists of two parts: <strong>server infrastructure</strong> and <strong>LLM API token consumption</strong>.</p>



<p class="wp-block-paragraph">First, avoid high-markup third-party managed agent wrappers that charge a steep monthly premium just to run a single container for you. Self-hosting on your own Ubuntu VPS gives you full root control, dedicated NVMe or SSD storage, and predictable infrastructure billing. For example, if a self-managed VPS plan costs GH₵120 per month while a third-party managed wrapper costs the equivalent of GH₵450 per month, self-hosting saves GH₵330 every month before you even count API tokens. (These figures illustrate the calculation; check the live plan page for current billing options.)</p>



<p class="wp-block-paragraph">Second, pay close attention to how each agent&#8217;s memory architecture impacts your monthly LLM API token consumption across providers like OpenRouter, Anthropic Claude, OpenAI, DeepSeek, or Nous Portal:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Cost Component / Usage Tier</th><th>Hermes Agent (Self-Hosted on VPS)</th><th>OpenClaw (Self-Hosted on VPS)</th><th>3rd-Party Turnkey Managed Hosts</th></tr></thead><tbody><tr><td>Software License</td><td>Free (MIT Open Source)</td><td>Free (MIT Open Source)</td><td>Free software bundled with high hosting markup</td></tr><tr><td>Monthly VPS Infrastructure</td><td>Low (2 vCPU / 2–4 GB RAM Ubuntu VPS)</td><td>Low–Medium (2 vCPU / 4–8 GB RAM Ubuntu VPS)</td><td>High (3x to 5x the cost of a standard Linux VPS)</td></tr><tr><td>LLM Token Footprint — Light Daily Use</td><td>Very Low (capped MEMORY.md + selective FTS5 recall)</td><td>Moderate (workspace file injection + periodic heartbeats)</td><td>Moderate to High (BYOK or credit markup)</td></tr><tr><td>LLM Token Footprint — Heavy Cron &amp; Tool Loops</td><td>Controlled (uses cheap auxiliary model for search summarization)</td><td>High if unoptimized (full-session transcript compaction on frontier models)</td><td>High (scales with raw token volume)</td></tr><tr><td>Zero-API-Cost Local Model Support</td><td>Excellent (optimized for Nous Hermes, DeepSeek, Qwen &amp; Ollama)</td><td>Supported (via Ollama, OpenRouter &amp; custom endpoints)</td><td>Restricted to provider&#x27;s hosted model list</td></tr></tbody></table></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1264" height="848" src="https://blog.aveshost.com/wp-content/uploads/2026/11/hermes-agent-vs-openclaw-cost-comparison.webp" alt="Hermes Agent vs OpenClaw Ubuntu VPS hosting footprint and monthly LLM API token running cost breakdown" class="wp-image-5904" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/hermes-agent-vs-openclaw-cost-comparison.webp 1264w, https://blog.aveshost.com/wp-content/uploads/2026/11/hermes-agent-vs-openclaw-cost-comparison-300x201.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/hermes-agent-vs-openclaw-cost-comparison-1024x687.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/hermes-agent-vs-openclaw-cost-comparison-768x515.webp 768w" sizes="(max-width: 1264px) 100vw, 1264px" /></figure>





<p class="wp-block-paragraph"><strong>Why Hermes Agent Is Easier on Your API Budget:</strong> Because Hermes caps the size of its injected <code>MEMORY.md</code> file and uses a lightweight model to summarize FTS5 search hits before passing them to your primary reasoning model, its per-turn input token count remains flat even after months of daily conversations. OpenClaw users who enable frequent background heartbeat checks (for instance, every 15 minutes) with a large <code>MEMORY.md</code> file on a frontier model like Claude Sonnet can burn through input tokens rapidly unless they route background heartbeats to a lower-cost model like DeepSeek V3 or Gemini Flash.</p>



<h2 id="which-ai-agent-should-you-choose-decision-checklist" class="wp-block-heading">Which AI Agent Should You Choose? (Decision Checklist)</h2>



<p class="wp-block-paragraph">Both projects represent the cutting edge of open-source autonomous agents, and neither locks you in—in fact, Hermes Agent can read OpenClaw-compatible <code>SKILL.md</code> packages, and both store your memories in portable plain-text Markdown files.</p>



<p class="wp-block-paragraph"><strong>Choose Hermes Agent if:</strong></p>



<p class="wp-block-paragraph">• You want an agent that genuinely improves over time by authoring and refining its own reusable skills after completing tasks.
• You want predictable, lower monthly LLM token costs thanks to bounded system prompts and SQLite FTS5 cross-session search.
• You work heavily in Python, run coding/research subagents, or want native support for Docker, SSH, Modal, and Daytona execution sandboxes.</p>



<p class="wp-block-paragraph"><strong>Choose OpenClaw if:</strong></p>



<p class="wp-block-paragraph">• You need broad multi-channel connectivity across 50+ messaging platforms, smart home systems, or native macOS/iOS/Android companion nodes.
• You want immediate access to thousands of pre-built community automations on ClawHub without writing custom skills from scratch.
• Your team prefers extending and customizing a TypeScript / Node.js gateway architecture.</p>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-ebcd3a60a486499ababaa3770a4ba1c5" class="rank-math-list-item">
<h3 class="rank-math-question ">Is Hermes Agent more cost-effective to run than OpenClaw?</h3>
<div class="rank-math-answer ">

<p>Yes, in most 24/7 production setups Hermes Agent uses fewer server resources and fewer LLM API tokens. Its Python runtime runs comfortably on a 2 GB to 4 GB RAM Ubuntu VPS, and its capped MEMORY.md plus SQLite FTS5 search architecture keeps prompt token usage low compared to compacting raw conversation transcripts.</p>

</div>
</div>
<div id="faq-question-074c591677634fa8a389a05e85fed659" class="rank-math-list-item">
<h3 class="rank-math-question ">Can Hermes Agent use skills built for OpenClaw and ClawHub?</h3>
<div class="rank-math-answer ">

<p>Yes. Both frameworks follow open SKILL.md conventions and support the Model Context Protocol (MCP). Hermes Agent includes a built-in Skills Hub that can search, inspect, and install skills from multiple registries, including ClawHub-compatible repositories.</p>

</div>
</div>
<div id="faq-question-fa5faa98e9a14c839b94721bc888710a" class="rank-math-list-item">
<h3 class="rank-math-question ">What Ubuntu VPS specs do I need for Hermes Agent vs OpenClaw?</h3>
<div class="rank-math-answer ">

<p>For Hermes Agent, an Ubuntu 22.04 or 24.04 LTS VPS with 2 vCPU cores, 2 GB to 4 GB of RAM, and 25 GB of SSD or NVMe storage is ideal. For OpenClaw, we recommend 2 vCPU cores and 4 GB to 8 GB of RAM, especially if your skills launch headless Chromium browsers via Playwright.</p>

</div>
</div>
<div id="faq-question-174c6ada268f41a8b9e66717cb6292fb" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I run both Hermes Agent and OpenClaw on the same Ubuntu VPS?</h3>
<div class="rank-math-answer ">

<p>Yes. Hermes Agent stores its data in ~/.hermes/ and connects to Telegram or Discord via outbound connections, while OpenClaw stores its files in ~/.openclaw/ and runs its Gateway on localhost port 18789. On a 4 GB or 8 GB RAM VPS, both systemd services can run side by side without port conflicts.</p>

</div>
</div>
<div id="faq-question-c18b645d0d0f45498668fb4ee430b23a" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I keep my monthly LLM API costs low when running a 24/7 agent?</h3>
<div class="rank-math-answer ">

<p>Route routine background cron jobs, heartbeats, and session summarization to fast, low-cost models (such as DeepSeek V3, Qwen, or Gemini Flash via OpenRouter) and reserve premium frontier models (like Claude Sonnet/Opus or GPT-4o) for complex coding and reasoning tasks.</p>

</div>
</div>
</div>
</div>

]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/hermes-agent-vs-openclaw/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Supabase VPS Requirements: How Much RAM, CPU and Storage Do You Need?</title>
		<link>https://blog.aveshost.com/supabase-vps-requirements/</link>
					<comments>https://blog.aveshost.com/supabase-vps-requirements/#respond</comments>
		
		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Sat, 07 Nov 2026 23:43:52 +0000</pubDate>
				<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[self-hosting]]></category>
		<category><![CDATA[Supabase]]></category>
		<category><![CDATA[vps]]></category>
		<guid isPermaLink="false">https://blog.aveshost.com/?p=5830</guid>

					<description><![CDATA[Learn the real RAM, CPU, and storage requirements for self-hosted Supabase on a Linux VPS—including per-container memory usage, Logflare overhead, pgvector sizing, and swap tuning.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Understanding the real <strong>Supabase VPS requirements</strong> before you provision a server is the easiest way to avoid silent Linux Out-Of-Memory (OOM) crashes, sluggish API responses, and unexpected disk exhaustion. Unlike a standalone PostgreSQL server that can comfortably idle on 1 GB of memory, self-hosted Supabase deploys an integrated microservices stack of roughly a dozen Docker containers.</p>



<p class="wp-block-paragraph">At a bare minimum, you need <strong>4 GB of RAM, 2 vCPU cores, and 40 GB of SSD storage</strong> to run a stable development, staging, or light MVP instance of self-hosted Supabase. For a production application—especially if you enable the built-in Logflare analytics engine, serve concurrent Realtime WebSockets, or run on-the-fly image transformations—we recommend starting with <strong>8 GB of RAM, 4 vCPU cores, and at least 80 GB of fast SSD or NVMe storage</strong>.</p>



<p class="wp-block-paragraph">In this guide, we break down what every container in the self-hosted Supabase Docker stack actually consumes, how to size your RAM, CPU, and disk space for different workloads (including AI embeddings with <code>pgvector</code>), and how to tune your Linux VPS so your backend stays fast under load.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><div><div><a href="#quick-sizing-summary">Quick Answer: Minimum vs Recommended Supabase VPS Specs</a></div><div><a href="#why-self-hosted-supabase-uses-so-much-ram">Why Self-Hosted Supabase Needs More RAM Than Plain PostgreSQL</a></div><div><a href="#how-much-ram-do-you-need">How Much RAM Do You Need for Self-Hosted Supabase?</a></div><div><a href="#how-many-cpu-cores-do-you-need">How Many vCPU Cores Does Supabase Require?</a></div><div><a href="#storage-and-disk-io-requirements">Storage and Disk I/O: Sizing for Database, Buckets, Logs, and Backups</a></div><div><a href="#linux-vps-tuning-tips">How to Optimise a Linux VPS for Self-Hosted Supabase</a></div><div><a href="#choosing-the-right-aveshost-vps">Choosing the Right Aveshost VPS or VDS Plan for Supabase</a></div><div><a href="#faq">Frequently asked questions</a></div></div></nav></div>



<h2 id="quick-sizing-summary" class="wp-block-heading">Quick Answer: Minimum vs Recommended Supabase VPS Specs</h2>



<p class="wp-block-paragraph">When you deploy <a href="https://blog.aveshost.com/self-host-supabase-on-a-vps/">self-hosted Supabase on a Linux VPS</a>, your baseline hardware footprint is determined by the Docker Compose services running in the background—even before your first user signs in. If you size your server as if it were only running PostgreSQL, the Linux kernel OOM killer will eventually terminate either your database container (<code>supabase-db</code>) or your API gateway (<code>supabase-kong</code>) during a traffic spike.</p>



<p class="wp-block-paragraph">Use the sizing matrix below to match your workload to the right VPS tier right from day one:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Workload Tier</th><th>RAM</th><th>CPU</th><th>Storage</th><th>Stack Configuration &amp; Best Use Case</th></tr></thead><tbody><tr><td>Minimum (Dev / Staging / MVP)</td><td>4 GB (+ 4 GB Swap)</td><td>2 vCPU Cores</td><td>40 GB SSD</td><td>Core stack only (Logflare disabled); internal tools, staging servers, and early MVPs</td></tr><tr><td>Recommended Production</td><td>8 GB</td><td>4 vCPU Cores</td><td>80 GB–120 GB SSD/NVMe</td><td>Full stack + Logflare enabled; production SaaS apps, mobile backends, and multi-tenant databases</td></tr><tr><td>High-Concurrency Production</td><td>16 GB</td><td>8 vCPU Cores</td><td>160 GB–250 GB NVMe</td><td>Heavy Realtime WebSockets, dynamic imgproxy image resizing, and high-throughput REST/Auth APIs</td></tr><tr><td>AI &amp; Vector Search (pgvector)</td><td>32 GB+</td><td>8–16 vCPU Cores</td><td>250 GB+ NVMe</td><td>Large HNSW vector indexes kept in RAM, RAG pipelines, and heavy analytical queries</td></tr></tbody></table></figure>



<h2 id="why-self-hosted-supabase-uses-so-much-ram" class="wp-block-heading">Why Self-Hosted Supabase Needs More RAM Than Plain PostgreSQL</h2>



<p class="wp-block-paragraph">Many developers are surprised when a fresh <code>docker compose up -d</code> consumes 1.8 GB to 3.2 GB of RAM with zero active users. That footprint makes sense once you inspect the <a href="https://supabase.com/docs/guides/self-hosting/docker" target="_blank" rel="noopener">official Supabase Docker architecture</a>: instead of a monolithic binary, Supabase coordinates separate containers written in C (PostgreSQL), Lua/Nginx (Kong), Go (GoTrue Auth), Haskell (PostgREST), Elixir/Erlang BEAM (Realtime, Supavisor, and Logflare), Rust (Vector), and TypeScript/Node/Deno (Studio and Edge Functions).</p>



<p class="wp-block-paragraph">Each runtime maintains its own memory heap, garbage collector, and connection pool. Here is what each container in the stack consumes at idle and under normal production load:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Docker Container</th><th>Role in the Stack</th><th>Idle RAM</th><th>Active Production RAM</th><th>Primary Resource Driver</th></tr></thead><tbody><tr><td>supabase-db</td><td>PostgreSQL 15/17 database + extensions</td><td>350 MB</td><td>1 GB – 8 GB+</td><td>shared_buffers, active connections, and index cache</td></tr><tr><td>supabase-kong</td><td>API Gateway &amp; request router</td><td>180 MB</td><td>300 MB – 900 MB</td><td>Worker processes and concurrent HTTP/WebSocket routing</td></tr><tr><td>supabase-realtime</td><td>Elixir Phoenix WebSocket server</td><td>150 MB</td><td>250 MB – 700 MB+</td><td>Concurrent open WebSocket channels and WAL broadcast rate</td></tr><tr><td>supabase-pooler</td><td>Supavisor connection pooler (Elixir)</td><td>130 MB</td><td>200 MB – 450 MB</td><td>Pooled client connections and transaction multiplexing</td></tr><tr><td>supabase-storage + imgproxy</td><td>Object storage API &amp; image resizer</td><td>140 MB</td><td>250 MB – 800 MB+</td><td>Concurrent file streams and on-the-fly image transformations</td></tr><tr><td>supabase-auth (GoTrue)</td><td>JWT authentication &amp; OAuth server</td><td>55 MB</td><td>90 MB – 180 MB</td><td>Concurrent login bursts (CPU-bound password hashing)</td></tr><tr><td>supabase-rest (PostgREST)</td><td>Auto-generated RESTful API layer</td><td>65 MB</td><td>100 MB – 250 MB</td><td>Schema cache size and JSON serialisation throughput</td></tr><tr><td>supabase-edge-functions</td><td>Deno serverless function runtime</td><td>85 MB</td><td>150 MB – 500 MB+</td><td>Number of isolated Deno workers and outbound API calls</td></tr><tr><td>supabase-studio + meta</td><td>Admin dashboard UI &amp; postgres-meta</td><td>160 MB</td><td>220 MB – 400 MB</td><td>Active admin browser sessions and schema introspection</td></tr><tr><td>supabase-analytics + vector</td><td>Logflare &amp; Vector log ingestion (Opt-in)</td><td>550 MB</td><td>900 MB – 1.8 GB</td><td>BEAM VM memory + high-volume log parsing and querying</td></tr></tbody></table></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1376" height="768" src="https://blog.aveshost.com/wp-content/uploads/2026/11/supabase-docker-container-memory-breakdown.webp" alt="Self-hosted Supabase Docker container memory and CPU breakdown across database, core services, and Logflare analytics" class="wp-image-5832" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/supabase-docker-container-memory-breakdown.webp 1376w, https://blog.aveshost.com/wp-content/uploads/2026/11/supabase-docker-container-memory-breakdown-300x167.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/supabase-docker-container-memory-breakdown-1024x572.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/supabase-docker-container-memory-breakdown-768x429.webp 768w" sizes="(max-width: 1376px) 100vw, 1376px" /></figure>



<h2 id="how-much-ram-do-you-need" class="wp-block-heading">How Much RAM Do You Need for Self-Hosted Supabase?</h2>



<p class="wp-block-paragraph">Memory is the single most critical resource in your Supabase VPS requirements calculation. While CPU bottlenecks merely slow down responses for a few hundred milliseconds, running out of RAM causes the Linux kernel to abruptly kill containers—most commonly <code>supabase-db</code>, <code>supabase-analytics</code>, or <code>supabase-kong</code>.</p>



<p class="wp-block-paragraph"><strong>Why 2 GB RAM is not enough:</strong> Even with every optional service stripped out, the core containers plus the Ubuntu operating system and Docker daemon require roughly 1.6 GB to 2.1 GB of memory at startup. The moment you open Supabase Studio or run a database migration, memory usage crosses 2 GB and triggers swap thrashing or an OOM crash.</p>



<p class="wp-block-paragraph"><strong>When 4 GB RAM works well:</strong> In recent releases, Supabase moved the memory-heavy logging stack (<code>supabase-analytics</code> / Logflare and <code>supabase-vector</code>) out of the default <code>docker-compose.yml</code> file into an opt-in overlay file (<code>docker-compose.logs.yml</code>). Because a standard <code>docker compose up -d</code> no longer launches Logflare by default, a <strong>4 GB RAM VPS</strong> with a 4 GB swap file can reliably run the core stack for development environments, staging servers, and low-traffic applications.</p>



<p class="wp-block-paragraph"><strong>Why 8 GB RAM is the production sweet spot:</strong> Once you move a live business application onto your server—or if you enable the Logs Explorer inside Supabase Studio via <code>docker-compose.logs.yml</code>—<strong>8 GB of RAM</strong> gives you the headroom required for stability. On an 8 GB VPS, you can allocate 2 GB to PostgreSQL <code>shared_buffers</code>, allow Logflare and Vector to use 1 GB without starving other containers, and still keep 2 GB to 3 GB free for the Linux page cache.</p>



<p class="wp-block-paragraph"><strong>Sizing RAM for AI and <code>pgvector</code>:</strong> If your application stores OpenAI, Gemini, or local embedding vectors using the <code>pgvector</code> extension, your memory requirements scale directly with the number and dimensionality of your vectors. High-speed HNSW (Hierarchical Navigable Small World) indexes perform best when the entire index graph fits inside RAM. For example, indexing 500,000 vectors with 1,536 dimensions (<code>halfvec</code> or <code>vector</code>) can easily require 4 GB to 6 GB of dedicated memory just for the index, making a <strong>16 GB or 32 GB RAM server</strong> essential.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1376" height="768" src="https://blog.aveshost.com/wp-content/uploads/2026/11/supabase-vps-sizing-tiers-comparison.webp" alt="Recommended VPS sizing tiers for self-hosted Supabase comparing 4 GB MVP, 8 GB production, and 16-32 GB pgvector workloads" class="wp-image-5833" srcset="https://blog.aveshost.com/wp-content/uploads/2026/11/supabase-vps-sizing-tiers-comparison.webp 1376w, https://blog.aveshost.com/wp-content/uploads/2026/11/supabase-vps-sizing-tiers-comparison-300x167.webp 300w, https://blog.aveshost.com/wp-content/uploads/2026/11/supabase-vps-sizing-tiers-comparison-1024x572.webp 1024w, https://blog.aveshost.com/wp-content/uploads/2026/11/supabase-vps-sizing-tiers-comparison-768x429.webp 768w" sizes="(max-width: 1376px) 100vw, 1376px" /></figure>



<h2 id="how-many-cpu-cores-do-you-need" class="wp-block-heading">How Many vCPU Cores Does Supabase Require?</h2>



<p class="wp-block-paragraph">At idle, a self-hosted Supabase stack barely touches the CPU, typically hovering between 2% and 5% utilisation across cores. However, under real production traffic, five distinct operations can saturate a 1-vCPU or 2-vCPU server simultaneously:</p>



<p class="wp-block-paragraph"><strong>Password Hashing in GoTrue (<code>supabase-auth</code>):</strong> Every user sign-up and password login computes a <code>bcrypt</code> or <code>argon2</code> hash, which is intentionally CPU-intensive. A burst of 30 concurrent logins can pin two CPU cores at 100% for several seconds.</p>



<p class="wp-block-paragraph"><strong>Dynamic Image Transformations (<code>supabase-imgproxy</code>):</strong> If you use Supabase Storage&#8217;s built-in image transformation parameters to resize user uploads into WebP or AVIF on the fly, <code>imgproxy</code> uses significant multi-threaded CPU power.</p>



<p class="wp-block-paragraph"><strong>Complex PostgreSQL Queries and RLS Evaluation:</strong> Row-Level Security (RLS) policies execute on every row matched by a PostgREST query. Unindexed foreign keys or complex JWT payload checks inside RLS policies directly increase PostgreSQL CPU usage.</p>



<p class="wp-block-paragraph"><strong>Elixir Realtime Broadcasts:</strong> When database changes are streamed over WebSockets via Logical Replication (<code>wal2json</code>), the Elixir BEAM runtime uses multiple threads to filter RLS permissions and fan messages out to connected clients.</p>



<p class="wp-block-paragraph"><strong>Nightly Database Compression:</strong> Running <a href="https://blog.aveshost.com/backup-and-restore-self-hosted-supabase/">automated Supabase database and storage backups</a> with <code>gzip</code> or <code>zstd</code> compression adds temporary CPU load alongside live traffic.</p>



<p class="wp-block-paragraph">For development and staging, <strong>2 vCPU cores</strong> are sufficient. For any production workload serving real users, provision at least <strong>4 vCPU cores</strong> so background tasks, image resizing, and authentication bursts never block database query execution.</p>



<h2 id="storage-and-disk-io-requirements" class="wp-block-heading">Storage and Disk I/O: Sizing for Database, Buckets, Logs, and Backups</h2>



<p class="wp-block-paragraph">When estimating disk space for self-hosted Supabase, remember that your PostgreSQL tables are only one of four storage consumers on the host filesystem:</p>



<p class="wp-block-paragraph"><strong>Docker Images &amp; Ubuntu OS (12 GB – 18 GB):</strong> The unpacked Docker images for Postgres, Kong, Studio, Elixir, Deno, and Vector—plus Ubuntu system packages—consume around 15 GB before you store a single row of application data.</p>



<p class="wp-block-paragraph"><strong>PostgreSQL Data &amp; WAL Segments (Variable):</strong> Stored inside <code>./volumes/db/data</code>. In addition to your table rows, indexes typically add 30% to 50% overhead, and Write-Ahead Log (WAL) files require several gigabytes of breathing room during heavy writes. Additionally, PostgreSQL requires at least 20% free disk space to run <code>VACUUM</code> and index rebuilds safely.</p>



<p class="wp-block-paragraph"><strong>Supabase Storage Buckets (Variable):</strong> Unlike Supabase Cloud (which stores files in AWS S3 by default), self-hosted Supabase writes uploaded files directly to your VPS disk under <code>./volumes/storage</code> unless you explicitly configure an external S3-compatible backend. If your users upload PDFs, high-resolution photos, or videos, your disk usage will grow rapidly.</p>



<p class="wp-block-paragraph"><strong>Local Backup Staging &amp; Container Logs (10 GB – 30 GB):</strong> Before your nightly backup script uploads archives to off-server object storage, it needs enough local free space to write the compressed <code>.sql.gz</code> and <code>.tar.gz</code> files.</p>



<p class="wp-block-paragraph">Equally important is <strong>disk I/O speed</strong>. Because PostgreSQL commits every transaction to the Write-Ahead Log on disk and PostgREST queries rely on fast random reads, always choose <strong>SSD or NVMe storage</strong> over spinning HDDs. Start with <strong>40 GB SSD</strong> for testing, and <strong>80 GB to 160 GB+ SSD/NVMe</strong> for production—or pair your VPS with external S3-compatible object storage if your app handles terabytes of media uploads.</p>



<h2 id="linux-vps-tuning-tips" class="wp-block-heading">How to Optimise a Linux VPS for Self-Hosted Supabase</h2>



<p class="wp-block-paragraph">Once you have provisioned your server (or after you <a href="https://blog.aveshost.com/migrate-supabase-cloud-to-self-hosted-vps/">migrate from Supabase Cloud to a self-hosted VPS</a>), three quick Linux and Docker configurations will dramatically improve stability and prevent resource exhaustion.</p>



<p class="wp-block-paragraph">First, always configure a <strong>4 GB Linux swap file</strong> with conservative swappiness (<code>vm.swappiness=10</code>). Swap is not a substitute for physical RAM, but it acts as a crucial safety valve during brief memory spikes (such as pulling updated Docker images or building a large PostgreSQL index) so the Linux OOM killer does not terminate your database:</p>



<pre class="wp-block-code"><code># Create and activate a 4 GB swap file on Ubuntu/Debian
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

# Only use swap under genuine memory pressure
sudo sysctl vm.swappiness=10
echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf</code></pre>



<p class="wp-block-paragraph">Second, cap Docker container log growth so verbose API and database logs never fill up your SSD over time. Create or update <code>/etc/docker/daemon.json</code> to rotate container logs automatically at 50 MB:</p>



<pre class="wp-block-code"><code>{
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "50m",
    "max-file": "3"
  }
}</code></pre>



<p class="wp-block-paragraph">Third, check your live per-container memory and CPU consumption at any time using <code>docker stats --no-stream</code>. On an 8 GB production VPS, you can also tune PostgreSQL inside your database configuration so <code>shared_buffers</code> uses roughly 25% of total system RAM (<code>2GB</code>) and <code>effective_cache_size</code> is set to 50%–70% (<code>5GB</code>), allowing frequent queries to be served directly from memory rather than disk.</p>



<h2 id="choosing-the-right-aveshost-vps" class="wp-block-heading">Choosing the Right Aveshost VPS or VDS Plan for Supabase</h2>



<p class="wp-block-paragraph">Because self-hosted Supabase runs a multi-container Docker stack with persistent PostgreSQL and storage volumes, it cannot run on standard shared cPanel or DirectAdmin web hosting. You need full root SSH access and isolated kernel resources on a Linux Virtual Private Server (VPS) or Virtual Dedicated Server (VDS).</p>



<p class="wp-block-paragraph">At Aveshost, you can match your Supabase deployment to two infrastructure options depending on your traffic and latency goals:</p>



<p class="wp-block-paragraph"><strong><a href="https://www.aveshost.com/self-managed-vps-hosting" rel="noopener">Aveshost Self-Managed VPS Hosting</a>:</strong> Built on fast SSD storage with full root access and Ubuntu LTS support. A 4 GB RAM / 2 vCPU plan is ideal for staging environments, internal tools, and early MVPs, while an 8 GB RAM / 4 vCPU plan gives you comfortable production headroom for the complete Supabase stack.</p>



<p class="wp-block-paragraph"><strong><a href="https://www.aveshost.com/vds-ghana" rel="noopener">Aveshost Ghana VDS (Accra NVMe)</a>:</strong> If your users are primarily in Ghana or West Africa and your application runs heavy database transactions, Realtime WebSockets, or <code>pgvector</code> queries, our Accra-based VDS plans deliver dedicated CPU cores, high-speed local NVMe storage, and ultra-low local network latency.</p>



<p class="wp-block-paragraph">Best of all, starting on a smaller tier never locks you in—as your user base grows, you can scale your VPS RAM, vCPU cores, and disk capacity vertically without rebuilding your Docker stack from scratch. Need help sizing a server for your specific database workload? <a href="https://www.aveshost.com/support" rel="noopener">Contact our technical team</a> and we will help you choose the right configuration.</p>



<h2 id="faq" class="wp-block-heading">Frequently asked questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-916e9da621cc428cba3f069b2d0467bd" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I run self-hosted Supabase on a 1 GB or 2 GB RAM VPS?</h3>
<div class="rank-math-answer ">

<p>No. Even at idle with zero traffic, the ~11 core Docker containers in self-hosted Supabase require roughly 1.6 GB to 2.1 GB of memory. Running the stack on a 1 GB or 2 GB VPS leads to severe swap thrashing and frequent Linux Out-Of-Memory (OOM) kills. Use at least 4 GB of RAM for development and 8 GB of RAM for production.</p>

</div>
</div>
<div id="faq-question-b1ac42f68b0d43829f3b287509fb3cd8" class="rank-math-list-item">
<h3 class="rank-math-question ">Why is the supabase-analytics (Logflare) container using so much RAM?</h3>
<div class="rank-math-answer ">

<p>Logflare runs on the Erlang/Elixir BEAM virtual machine and ingests, parses, and indexes logs from every container in your stack via Vector. Together, Logflare and Vector can consume 500 MB to 1.8 GB of RAM. In recent Supabase Docker releases, Logflare is separated into an opt-in overlay (docker-compose.logs.yml) so 4 GB servers can run the core stack without Logflare enabled.</p>

</div>
</div>
<div id="faq-question-d6317780562741f883396259a3093561" class="rank-math-list-item">
<h3 class="rank-math-question ">Does Supabase Studio need to stay running in production?</h3>
<div class="rank-math-answer ">

<p>Supabase Studio (supabase-studio) and its companion metadata service (supabase-meta) only provide the browser-based admin dashboard—they are not in the request path of your live application&#8217;s REST, Auth, Realtime, or Storage APIs. If you are on a tight 4 GB RAM budget, you can stop supabase-studio when you are not actively managing the database to free up roughly 150 MB to 250 MB of RAM.</p>

</div>
</div>
<div id="faq-question-5a1158fb3ee0483fb2283c5ac11e3188" class="rank-math-list-item">
<h3 class="rank-math-question ">How much extra RAM do I need if I use pgvector for AI embeddings?</h3>
<div class="rank-math-answer ">

<p>For fast similarity searches, pgvector HNSW indexes should fit entirely in RAM alongside your standard PostgreSQL shared_buffers. As a rule of thumb, 100,000 vectors with 1,536 dimensions require roughly 800 MB to 1.2 GB of RAM for the HNSW index. If you store hundreds of thousands or millions of vectors, plan for a 16 GB or 32 GB RAM VPS.</p>

</div>
</div>
<div id="faq-question-c59c4153702f465792110a3a0f075a08" class="rank-math-list-item">
<h3 class="rank-math-question ">Can I upgrade my VPS RAM and CPU later without losing Supabase data?</h3>
<div class="rank-math-answer ">

<p>Yes. Because all stateful Supabase data lives in persistent Docker volumes (./volumes/db, ./volumes/storage, and ./volumes/functions), vertically scaling your VPS to a higher RAM and vCPU tier takes only a brief reboot and automatically gives your existing containers access to the upgraded hardware.</p>

</div>
</div>
</div>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://blog.aveshost.com/supabase-vps-requirements/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
