BuyRDPs.

Ismail

Ismail writes about VPS, RDP and self-hosted AI at BuyRDPs.

RDP error 0xC000000D dialog on a laptop screen

How to Fix RDP Error 0xC000000D After the October 2026 Windows Update

There’s a special kind of panic when Remote Desktop — the thing that just works, every single day — suddenly refuses to connect. You type your credentials, hit Connect, and instead of your desktop you get a cryptic dialog: error 0xC000000D, “The token that was passed to the function is invalid.” If that started happening in the last couple of weeks, it’s probably not your network, your firewall, or a typo in your password. Microsoft has confirmed that the September 2026 preview update (KB5124010) and the October 2026 Patch Tuesday update (KB5127648) broke RDP for non-admin users on Windows 11 machines with Administrator Protection switched on. The good news: it’s a known issue with a documented workaround. This guide explains what’s actually happening, how to check whether you’re affected in about a minute, and how to fix RDP error 0xC000000D safely — without permanently trading away the security feature that triggered it. Table of Contents What RDP Error 0xC000000D Actually Means Which Windows Updates Broke RDP Are You Affected? A 60-Second Check Fix 1 — Microsoft’s Official Workaround (For IT Admins) Fix 2 — Group Policy Steps, Click by Click Fix 3 — If It’s Your Own Windows VPS What Not to Do When Will Microsoft Fix This Permanently? FAQ Conclusion What RDP Error 0xC000000D Actually Means Let’s decode the message first, because “The token that was passed to the function is invalid” sounds like your login token expired — and that’s not what’s going on. This error fires on the host side (the PC or server you’re connecting to), not on your client. When Administrator Protection is enabled, Windows changes how user tokens are built at logon. The October updates introduced a mismatch in that token-building path for Remote Desktop sessions: the RDP service hands the logon process a token the updated code no longer accepts, and the connection dies before you ever see a desktop. Your credentials are fine. Your network is fine. The handshake itself is what’s broken. That’s also why this error looks different from the usual RDP failures. Timeouts, “cannot connect to the remote computer,” and credential rejections each point at network, firewall, or account problems — and if you’ve ruled out the October update, our general RDP connection troubleshooting guide covers those usual suspects. Error 0xC000000D is narrower: it means this specific update bug, on this specific configuration. Which brings us to the updates in question. Which Windows Updates Broke RDP Two updates are at the center of this, and understanding which one got you matters for the fix: Error 0xC000000D appears at connection time — your credentials and network are usually fine. Update Released Type What it did to RDP KB5124010 September 22, 2026 Optional preview (non-security) First introduced the bug — but only for people who install optional previews KB5127648 October 13, 2026 (Patch Tuesday) Cumulative security update Carried the bug to everyone; this is when most people started seeing it Microsoft’s confirmed scope: Windows 11 versions 24H2, 25H2, 26H1, and 26H2 acting as Remote Desktop hosts, with Administrator Protection enabled, when the connecting user doesn’t have admin rights. All four conditions have to be true. Miss any one of them and you’re looking at a different problem. A quick word on Administrator Protection, since it’s the co-star of this bug. It’s a UAC-hardening feature Microsoft started rolling out in October 2025: instead of your account quietly holding admin rights, you’re always a standard user, and anything needing elevation asks you to authenticate with Windows Hello (PIN or fingerprint). It’s genuinely good security — which is why it’s now switched on by default in Microsoft’s published security baselines for 24H2 and later. Plenty of organizations adopted those baselines as-is, so the October update effectively flipped the bug on for their whole fleet at once. One honest caveat on scope: you’ll see reports online about Windows Server 2019/2022/2025 having RDP meltdowns after the September updates too — sessions stuck at “Connecting…”, servers needing hard resets, traced to a deadlock in the RDS teardown routine. Those reports are real, but they’re a related, separate issue. Microsoft’s confirmed 0xC000000D notice covers Windows 11 only. Don’t conflate the two when you’re diagnosing. Are You Affected? A 60-Second Check Before touching any settings, run through this checklist on the host machine (the one you’re trying to reach). You need all four to be true: The host runs Windows 11 24H2 or newer. Press Win+R, type winver, hit Enter. If it says 23H2 or Windows 10, this isn’t your bug. KB5124010, KB5127648, or a later cumulative update is installed. Open PowerShell as admin and run: Get-HotFix | Where-Object {$_.HotFixID -match “KB5124010|KB5127648″} | Select-Object HotFixID, InstalledOn If either shows up — or if your last cumulative update is dated after October 13, 2026 — you’re in the window. Administrator Protection is on. Go to Settings → Accounts → Sign-in options, or check with your IT admin. If your organization uses Microsoft’s security baselines, assume it’s on. The account you’re connecting with is NOT an administrator. This is the cruelest part of the bug: admins connect fine, standard users get 0xC000000D. If you’re unsure which kind of account you have, our guide on creating and managing RDP users explains the difference. All four true? You’ve found your culprit. Now the fixes — in order of “official” to “pragmatic.” Fix 1 — Microsoft’s Official Workaround (For IT Admins) Microsoft’s published workaround is straightforward: temporarily disable Administrator Protection on the affected host through your policy management tool. In practice that means resetting the “User Account Control: Type of Admin Approval Mode” policy via Microsoft Intune or Group Policy. Here’s the honest part most write-ups skip: this is a real security downgrade, not a harmless toggle. Administrator Protection exists to keep admin rights out of every process’s hands until explicitly approved. Turning it off — even temporarily — reopens the exact attack surface it was closing. Microsoft calls the workaround temporary for a reason, and so should you: Apply it only to

How to Fix RDP Error 0xC000000D After the October 2026 Windows Update Read More »

Server rack with a glowing AI automation workflow hologram, illustrating how much VPS for AI automation you need

How Much VPS Power Do You Need for AI Automation? A Complete Guide

Ask ten people how much server you need for AI automation and you’ll get eleven answers — most of them “just get the biggest one.” That’s expensive advice, and it’s wrong more often than it’s right. The truth is that most AI automation barely sips server resources. A workflow that sends a daily AI-generated report, a bot that summarizes your emails, a cron job that classifies support tickets — these run happily on a small VPS that costs less than a streaming subscription. But undersize it and you’ll hit the wall in the ugliest ways: workflows timing out at 3 AM, a chatbot that takes 40 seconds to answer, a server that falls over the moment two jobs overlap. This guide gives you a complete, honest breakdown of how much VPS for AI automation you actually need — the four resources that matter, the three workload patterns everything falls into, concrete spec tiers with real prices, when a GPU is genuinely worth it, and the warning signs that tell you it’s time to upgrade. No upsell, no padding. This is the canonical sizing post for BuyRDPs. If you arrived here from our n8n guide, our AI agents guide, or our AI websites guide, this is the table those posts point to — we keep the sizing in one place so it stays consistent and current. Table of Contents What AI automation actually asks of a server How much VPS for AI automation: sizing by workload pattern The four tiers: concrete VPS specs for AI automation Do you actually need a GPU for AI automation? Check your real usage before you upgrade The money math: what each tier really costs 5 warning signs it’s time to upgrade FAQ What AI Automation Actually Asks of a Server Forget marketing terms for a minute. Every automation workload, from a five-line cron script to a self-hosted AI agent swarm, draws on the same four resources. Understanding which one your workload leans on is the whole game — because the wrong bottleneck is how you end up paying for 8 GB of RAM when you needed faster CPU, or vice versa. CPU (vCPUs). How much thinking happens at once. Webhooks arriving simultaneously, parallel workflow executions, Python scripts crunching data — that’s CPU. Most automation is bursty: idle, idle, idle, then a spike. RAM. How much your jobs can hold in their heads at once. Each running workflow, each Python process, each loaded AI model eats RAM. This is the resource people run out of first, because it’s invisible until the server starts swapping and everything slows to a crawl. Disk (storage + speed). Automation generates logs, caches, databases, model weights, file attachments. A few dozen GB goes fast. And disk speed matters: an NVMe drive makes database-heavy workflows feel snappy where a spinning-disk VPS feels broken. Network + uptime. Automations run on schedules — they’re useless if the server sleeps. And many call external APIs, so decent bandwidth and a datacenter near your users (or your API providers) cuts latency. The honest summary: for pure automation (workflows, scripts, schedulers), RAM and CPU are king, disk is the runner-up, and a GPU is almost never the answer. That last point deserves its own section, because it’s where the most money gets wasted. How Much VPS for AI Automation: Sizing by Workload Pattern Nearly every AI automation setup falls into one of three patterns. Figure out which one you’re building and the specs pick themselves. Pattern 1 — Workflow automation (n8n, Make-style self-hosted) This is the most common pattern: a self-hosted workflow tool like n8n that calls external AI APIs (OpenAI, Anthropic, Gemini) and shuffles data between services. The key insight is that the AI itself runs elsewhere. Your VPS is just the traffic cop — receiving webhooks, running JavaScript logic, making HTTP calls, writing to a database. A single n8n instance idles at a few hundred MB of RAM and handles dozens of daily executions on 2 GB without breaking a sweat. What eats resources here: concurrent executions (a webhook storm hitting 50 times at once), heavy data transformations (parsing a 100 MB CSV in a Code node), and long-running workflows that hold memory while waiting. If your workflows are sequential and modest, stay small. If you’re running hundreds of executions an hour with big payloads, size up RAM first. Recommended starting point: 2 vCPU, 4 GB RAM, 80 GB NVMe. Roughly $6–12/month. This comfortably runs n8n with a PostgreSQL database and dozens of daily AI workflows. If you’re setting this up for the first time, our guide on building an AI automation server with n8n on a VPS walks through the full install, and our new VPS setup checklist covers the hardening basics you should do before anything goes live. Pattern 2 — Always-on AI agents and scheduled scripts This is the DIY tier: Python agents, Telegram/Discord bots, cron jobs, scrapers with AI summarization, trading assistants. These are real processes that live on your server 24/7. Each bot or agent is its own Python process holding its own RAM — a LangChain-style agent can idle at 200–500 MB before it does anything, because it’s holding conversation state, loaded libraries, and embedding caches. The trap here is process sprawl. One agent feels fine on 4 GB. Then you add a second bot, a scheduler, a vector database for RAG, a Redis queue — and suddenly you’re at 90% memory with the OOM killer eyeing your processes. Count your always-on processes and multiply. If you run 4–6 persistent agents plus supporting services, 8 GB is the realistic floor, not 4. Recommended starting point: 4 vCPU, 8 GB RAM, 160 GB NVMe. Roughly $15–30/month. This gives a few agents, a vector DB (Qdrant or Chroma), and a queue room to breathe. Pair it with our roundup of the best VPS options for AI agents if you’re comparing providers, and if agents are your thing, our guide to running AI coding agents on a VPS covers the same

How Much VPS Power Do You Need for AI Automation? A Complete Guide Read More »

Host your own AI API on a VPS — server with API endpoint illustration

How to Host Your Own AI API on a VPS

There’s a specific dread that hits when your AI app starts getting traction: the API bill. What started as a few cents a day in testing quietly becomes a line item you flinch at every month. Then come the rate limits, the surprise model deprecations that break your app overnight, and the nagging feeling that your users’ prompts are training someone else’s model. When you host your own AI API on a VPS, all of that changes. Your endpoints, your keys, your rate limits, your data never leaving your server. An OpenAI-compatible API running on a $20–40/month VPS can serve real traffic for a fraction of what per-token pricing costs at scale — and nothing goes down because a provider changed their pricing page. This guide walks through the two practical ways to do it, the VPS specs that actually matter, a full step-by-step setup with auth and HTTPS, and the honest cost math. Table of Contents Why Host Your Own AI API? The Real Reasons Pick Your Approach: Ollama vs LiteLLM vs Custom FastAPI VPS Specs That Matter for an AI API How to Host Your Own AI API on a VPS: Step-by-Step Cost Math: Self-Hosted vs Pay-Per-Token (Honest Numbers) Security Checklist: Don’t Skip This Common Mistakes That Bite Self-Hosted API Owners FAQ Conclusion Why Host Your Own AI API? The Real Reasons Most tutorials frame self-hosting as a cost hack. It can be, but the deeper reasons are control and predictability: Fixed costs. Per-token pricing is wonderful at zero traffic and brutal at scale. A VPS costs the same whether you serve 10 requests or 10,000. If you can predict your traffic, you can beat the API bill. Your data stays yours. User prompts, internal documents, proprietary workflows — none of it transits a third-party API. For internal tools, client work, or anything regulated, this alone justifies the setup. No rate-limit roulette. Your concurrency limit is your server’s capacity, not a tier a provider assigned you. No 429s at the worst moment. No surprise deprecations. When a hosted provider sunsets the model your app depends on, you rewrite or scramble. Your own API runs the same weights until you decide to change them. Drop-in compatibility. Modern open models serve an OpenAI-compatible endpoint, so your existing code usually changes one line: the base URL. The honest caveat: you become the ops team. Uptime, updates, and scaling are your problem. If your app makes three API calls a week, just pay per token — self-hosting is for steady, real traffic. New to servers entirely? Read our VPS hosting primer first. Pick Your Approach: Ollama vs LiteLLM vs Custom FastAPI There are three serious ways to serve an AI API from a VPS, and the right one depends on what you’re actually building: Approach What it is Best for Biggest weakness Ollama’s built-in server Ollama exposes an OpenAI-compatible API out of the box on port 11434 Single-model chat/completion APIs, personal projects, internal tools One model family per setup; minimal auth and rate-limiting built in LiteLLM proxy Open-source gateway that unifies 100+ providers and local models behind one OpenAI-compatible endpoint Mixing self-hosted + paid APIs, multiple keys, usage tracking, fallbacks Another service to run and secure Custom FastAPI wrapper Your own Python service in front of a local model (llama.cpp, vLLM, transformers) Custom logic: RAG, tool use, validation, bespoke billing You’re building and maintaining real software My recommendation: start with Ollama’s server, graduate to LiteLLM when you need keys and routing. Ollama gets you a working, OpenAI-compatible API in minutes. LiteLLM becomes worth it the day you want per-user API keys, spend tracking, or to route cheap requests to your VPS and overflow to a paid provider. A custom FastAPI wrapper only earns its keep when your API needs logic that isn’t just “talk to a model.” If serving models is your main goal, pair this guide with our deep dive on running AI models on a VPS for the model-selection side. VPS Specs That Matter for an AI API An API server’s specs are driven by the model, not the API layer. The web server part is trivially light — it’s inference that eats RAM. Quantized open models (4-bit) are the sweet spot for VPS hosting: Tier Workload RAM CPU Disk Approx. cost Starter 1–3B models, dev/test API, low concurrency 8 GB 2–4 vCPU 100 GB SSD $10–20/mo Sweet spot 7–8B models (Llama 3.1 8B, Qwen 2.5 7B), small production API 16 GB 4–6 vCPU 200 GB NVMe $20–40/mo Serious 13–14B models, higher concurrency, embeddings + chat together 32–64 GB 8–12 vCPU 400+ GB NVMe $50–100/mo GPU Fast responses, 30B+ models, real-time feel 16–32 GB 4–8 vCPU + NVIDIA GPU 200+ GB NVMe $80–300+/mo Concurrency is the hidden spec. A 7B model on CPU might take 5–10 seconds per response with one user; with five simultaneous users, requests queue and everyone waits. If your API will see real concurrent traffic, either size up, add a GPU, or be honest about expected wait times. Our roundup of cheap VPS plans that don’t sacrifice performance covers good CPU tiers, and server location matters too — put the VPS near your users, because API latency is user-facing latency. How to Host Your Own AI API on a VPS: Step-by-Step This assumes a fresh Ubuntu 22.04 or 24.04 VPS. First run through our new VPS setup checklist — firewall, SSH keys, updates — then work as a non-root user with sudo. Step 1 — Install Ollama and pull a model curl -fsSL https://ollama.com/install.sh | sh ollama pull llama3.1:8b For an API, pick a model with strong instruction-following in its size class — Llama 3.1 8B and Qwen 2.5 7B are the safe defaults in 2026. Download once; the weights live on your disk and never phone home. Step 2 — Make Ollama listen beyond localhost By default Ollama binds to 127.0.0.1, which is fine for local testing. For a real API you want it reachable through your reverse proxy — but never expose port

How to Host Your Own AI API on a VPS Read More »

Server running AI apps with Docker containers on a VPS

How to Run AI Apps with Docker on a VPS

There’s a special kind of pain only AI developers know: it works on your machine, you deploy it to the server, and it explodes. Wrong CUDA version. A Python package that compiled fine locally but refuses on the VPS. A model file that was supposed to be there and isn’t. You fix one thing, break two more, and by midnight you’re rebuilding an environment you built last week. When you run AI apps with Docker on a VPS, that whole class of problem disappears. The app, its dependencies, its CUDA libraries, and its config all live inside a container that behaves identically on your laptop and your server. Build once, pull on the VPS, and it runs. This guide covers why Docker fits AI workloads, the VPS specs that matter, full setup with GPU passthrough, a real docker-compose stack, and the security and cost realities nobody mentions upfront. Why Docker for AI Apps? (The Honest Pitch) AI apps are dependency nightmares. A typical stack pulls in PyTorch or llama.cpp, a specific CUDA toolkit, tokenizers, model weights in the tens of gigabytes, and a dozen pinned Python packages. On a bare server, one careless pip install and two projects start fighting over CUDA libraries. Docker fixes this with boring, reliable isolation: The tradeoff: a learning curve, plus a sharp edge or two in GPU setup (covered below). For AI apps, it isn’t close. New to servers? Our VPS hosting primer covers the fundamentals first. VPS Specs That Matter for AI-in-Docker Docker itself is light — your specs are driven entirely by what the AI app does inside the container. A chatbot UI sipping from an API needs almost nothing; a local 8B-parameter LLM needs serious RAM; fast inference needs a GPU. For CPU-only AI apps (API-backed chatbots, embedding pipelines, small models), RAM is king, then CPU cores, then disk: Tier Workload RAM CPU Disk Approx. cost Starter Chatbot UI, API proxies, n8n automations, small embedding jobs 4 GB 2 vCPU 80 GB SSD $6–12/mo Sweet spot Ollama with 7–8B models, RAG pipelines, Open WebUI + vector DB 16 GB 4–6 vCPU 200 GB NVMe $20–40/mo Heavy CPU 13B+ models on CPU, batch embedding, multiple AI services 32–64 GB 8–12 vCPU 400+ GB NVMe $50–100/mo GPU Fast local inference, image generation, fine-tuning 16–32 GB 4–8 vCPU 200+ GB NVMe $80–300+/mo Local LLMs are RAM-hungry in a way that surprises people: a 7B model in 4-bit quantization needs ~6–8 GB just for weights, plus server and OS overhead. That’s why the sweet spot starts at 16 GB. If serving models is your real goal, read our guide to running AI models on a VPS alongside this one. Start CPU-only, measure whether inference speed is actually your bottleneck, then pay the GPU tax — our roundup of cheap VPS options that don’t sacrifice performance covers the CPU tiers above. And budget 2x the disk you think you need: AI images run 5–10 GB, model weights 5–50 GB, and Docker’s build cache quietly eats the rest. Docker vs Bare Metal vs Virtualenv: Which Should You Pick? Approach Best for Biggest strength Biggest weakness Docker Most AI apps: chatbots, RAG, model servers, multi-service stacks Reproducible, isolated, one-command deploys Learning curve; overkill for single tiny scripts Bare metal Max-performance single workloads, squeezing every token/sec from one model Zero container overhead, simplest debugging Dependency conflicts; messy uninstalls Virtualenv Quick experiments, single Python scripts Zero setup, familiar Doesn’t isolate system deps (CUDA!); not reproducible across machines If the app has more than one moving part, or you ever want to run it on a second machine, use Docker. A single API-calling script? Virtualenv is fine. An Ollama server plus a web UI plus a vector database? That’s Docker’s home turf. Bare metal only wins when you’re chasing the last 2–3% of performance on one dedicated workload. How to Run AI Apps with Docker on a VPS: Step-by-Step Setup This assumes a fresh Ubuntu 22.04 or 24.04 VPS. If you haven’t hardened a fresh box yet, run through our new VPS setup checklist first — firewall, SSH keys, updates — then follow along as a non-root user with sudo. Step 1 — Install Docker and the Compose plugin Skip the distro’s outdated Docker package and use Docker’s official repository. Details change over time, so I’ll point you at Docker’s official Ubuntu install docs as the canonical reference — the short version: Then allow Docker without sudo (log out and back in after): Step 2 — GPU support: the NVIDIA Container Toolkit (GPU servers only) Skip this on a CPU-only VPS. With an NVIDIA GPU on the server, this is what makes it visible inside containers: The moment of truth — verify the GPU is reachable from inside a container: If your GPU appears in the output, passthrough works. If not, check troubleshooting first — it’s almost always a driver/toolkit version mismatch, not a Docker problem. Step 3 — Your first AI container: Ollama Ollama is the perfect first container: a real AI workload in one command. This pulls the image, starts the server, and keeps it running: Two deliberate choices: -p 127.0.0.1:11434:11434 binds the API to localhost only — never internet-exposed (see security) — and -v ollama-data:/root/.ollama keeps models in a named volume so they survive restarts. On a GPU server, add –gpus all and Ollama uses it automatically. That pull downloads ~4.7 GB — your first taste of why disk space matters. You’re now running a local LLM in a container on a VPS. Everything next makes this robust and multi-service. A Real Stack: Ollama + Open WebUI with Docker Compose Single containers are toys; real AI apps are stacks. The setup I run myself: Ollama serving models plus Open WebUI as a ChatGPT-style interface, wired together with Docker Compose. One YAML file, one command: The services talk over Docker’s internal network via service names (http://ollama:11434) — no host networking hacks. Both ports bind to 127.0.0.1 only; reach the UI through an SSH tunnel or reverse proxy. The

How to Run AI Apps with Docker on a VPS Read More »

AI coding agent running on a VPS — laptop connected to a server with an AI assistant

How to Run AI Coding Agents on a VPS

There’s a moment every developer has with an AI coding agent. You’re on your laptop at a café, you ask it to refactor an old module, and then… your fan starts screaming, your battery starts melting, and you realize the agent has been spinning for ten minutes while your whole machine crawls. I love these tools, but running them on the machine you actually work on is asking for pain. When you run AI coding agents on a VPS, all of that goes away. The agent lives on a server with dedicated resources, it keeps working when you close your laptop, and you can hand it a task at midnight and wake up to a pull request. In this guide I’ll walk you through why it works so well, the specs that actually matter, which agents to pick, a step-by-step setup, the security rules you absolutely shouldn’t skip, and what it really costs. Why Run AI Coding Agents on a VPS Instead of Your Laptop? AI coding agents — tools like Claude Code, Aider, and OpenHands — aren’t like a chatbot in a browser tab. They read your whole codebase, run tests, execute shell commands, install dependencies, and sometimes spin up services. That behavior has real consequences for the machine they run on: If you’re new to the concept, our primer on what VPS hosting is explains the basics — but the short version is: a virtual private server is your own slice of a powerful machine in a datacenter, and it’s the ideal home for an AI agent. The Specs That Actually Matter (And the Ones That Don’t) Here’s the first thing to understand: most AI coding agents don’t do the heavy AI lifting on your server. The big language model runs in the cloud (Anthropic, OpenAI, whoever powers your agent), and your VPS is doing the “hands” work — reading files, running git, executing tests, managing processes. That changes the spec calculus completely. The spec that matters most is RAM, then CPU cores, then disk speed. A GPU is almost never necessary — unless you’re also running a local model on the same box (see our guide to running AI models on a VPS if that’s your plan). Here’s a realistic breakdown: Use case RAM CPU Disk Approx. cost Light — one agent, small repos, occasional sessions 4 GB 2 vCPU 60 GB SSD $6–12/mo Standard — daily driver, medium repos, parallel agents 8 GB 4 vCPU 120 GB NVMe $15–25/mo Heavy — big monorepos, test suites, multiple agents + services 16–32 GB 6–8 vCPU 200+ GB NVMe $30–60/mo Honest opinion: start at 8 GB RAM / 4 vCPU. It’s the sweet spot where agents feel snappy, you can run two sessions at once, and you’re not paying for capacity you’ll never touch. You can always resize a VPS in minutes — every provider lets you scale up without rebuilding. Our breakdown of cheap VPS options that don’t sacrifice performance is a good place to hunt for that tier. One more spec note: location matters more than people think. Every keystroke round-trips between you and the agent, so pick a datacenter near you. A 200ms difference in latency is the difference between an agent that feels alive and one that feels laggy. We covered the full decision in our VPS server location guide. Pick Your Agent: Claude Code vs Aider vs OpenHands The agent landscape moves fast, but three options cover nearly everyone’s needs right now. Here’s the honest comparison: Agent Best for How it runs Model cost model Claude Code Terminal-first developers who want the smartest agent available CLI on your server, you connect over SSH API usage or subscription Aider Pair-programming style, works with many models, great git integration CLI, pairs nicely with tmux for persistence Bring your own API key (pay per use) OpenHands A full agent “workspace” with web UI, sandboxed execution Docker container with browser-based interface Bring your own API key My take: if you’re already comfortable in a terminal, start with Claude Code or Aider — they’re the fastest to get running and the easiest to reason about. OpenHands is genuinely impressive, but it’s a heavier lift (Docker, more RAM) and shines when you want a self-contained agent environment with a GUI. There’s no wrong answer here; you can run all three on the same VPS. A quick word on model costs, because nobody warns you about this: the VPS is the cheap part. API usage for a heavy agent session can run anywhere from a few cents to a few dollars, and an enthusiastic weekend of agent-driven refactoring can surprise you. Set a spending alert on your API account on day one. Seriously. Step-by-Step: Setting Up Your VPS for AI Coding Agents This walkthrough assumes a fresh Ubuntu 22.04/24.04 server. If you haven’t hardened a fresh box yet, run through our new VPS setup checklist first — it takes ten minutes and saves you from the classic mistakes. 1. Create a dedicated agent user Never run agents as root. Create a locked-down user whose damage radius is limited to its own home directory: 2. Install the essentials tmux is non-negotiable. It keeps your agent session alive when SSH drops. Start every agent inside a tmux session and you’ll never lose work to a flaky connection again. 3. Install your agent For Claude Code (npm-based): For Aider (pip-based): For OpenHands (Docker): Then open http://your-server-ip:3000 in a browser (lock this down — more on that in the security section). The Aider documentation is genuinely excellent if you want to go deeper on configuration. 4. Clone your repos and set up SSH keys Generate a deploy key on the VPS (never copy your personal SSH private key onto a server): 5. Connect and go SSH in, attach to your tmux session (tmux attach -t claude), and start giving the agent tasks. From here on, your laptop is just a window into a machine that never sleeps. Lock It Down: Security Rules You Shouldn’t

How to Run AI Coding Agents on a VPS Read More »