Skip to content

armgit / kwant

Public Imported from GitHub
0

Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.

31.1 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Run Claude Code on a VPS and reach it from your phone · kwant</title>
<meta name="description" content="Three ways to run Claude Code on a VPS and reach it from your phone: SSH and tmux, Anthropic&#x27;s Remote Control, or a self-hosted AI agent team with kwant.">
<meta name="theme-color" content="#0d0a1f">
<meta name="color-scheme" content="dark">
<link rel="canonical" href="https://kwant.si/blog/claude-code-on-a-vps">
<meta property="og:type" content="article">
<meta property="og:site_name" content="kwant">
<meta property="og:locale" content="en_US">
<meta property="og:title" content="Run Claude Code on a VPS and reach it from your phone · kwant">
<meta property="og:description" content="Three ways to run Claude Code on a VPS and reach it from your phone: SSH and tmux, Anthropic&#x27;s Remote Control, or a self-hosted AI agent team with kwant.">
<meta property="og:url" content="https://kwant.si/blog/claude-code-on-a-vps">
<meta property="og:image" content="https://kwant.si/assets/og/blog-claude-code-on-a-vps.png?v=3dd3b9e0c8">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Run Claude Code on a VPS and reach it from your phone: SSH and tmux, Remote Control, or a kwant bot team.">
<meta property="article:published_time" content="2026-10-31">
<meta property="article:modified_time" content="2026-10-31">
<meta property="article:tag" content="claude-code">
<meta property="article:tag" content="vps">
<meta property="article:tag" content="self-hosted">
<meta property="article:tag" content="how-to">
<meta property="article:tag" content="ai-agents">
<link rel="alternate" type="application/rss+xml" title="kwant blog" href="https://kwant.si/blog/feed.xml">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@kwantbot">
<meta name="twitter:title" content="Run Claude Code on a VPS and reach it from your phone · kwant">
<meta name="twitter:description" content="Three ways to run Claude Code on a VPS and reach it from your phone: SSH and tmux, Anthropic&#x27;s Remote Control, or a self-hosted AI agent team with kwant.">
<meta name="twitter:image" content="https://kwant.si/assets/og/blog-claude-code-on-a-vps.png?v=3dd3b9e0c8">
<meta name="twitter:image:alt" content="Run Claude Code on a VPS and reach it from your phone: SSH and tmux, Remote Control, or a kwant bot team.">
<link rel="icon" href="../favicon.svg?v=0abbeedab4" type="image/svg+xml">
<link rel="icon" href="../favicon-32.png?v=ac1a1e97c4" sizes="32x32" type="image/png">
<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39">
<link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=4840ba0cdf" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="../assets/fonts/inter-var.woff2?v=977e43492e" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="../assets/fonts/jetbrains-mono.woff2?v=8247becaf0" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="../assets/css/site.css?v=9c69cd7fc5">
</head>
<body class="page-blog">
<a class="skip" href="#main">Skip to content</a>
<header class="topbar">
  <nav class="pill px" aria-label="Main">
    <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 16 17" width="38" height="38" shape-rendering="crispEdges" aria-hidden="true"><rect x="10" y="4" width="1" height="1" fill="#1d1147"/><rect x="10" y="1" width="2" height="2" fill="#ddd5ff"/><rect x="4" y="5" width="8" height="1" fill="#fff"/><rect x="3" y="6" width="10" height="1" fill="#fff"/><rect x="2" y="7" width="12" height="7" fill="#fff"/><rect x="3" y="14" width="10" height="1" fill="#fff"/><rect x="4" y="15" width="8" height="1" fill="#ddd5ff"/><rect x="13" y="7" width="1" height="7" fill="#ddd5ff"/><rect x="5" y="8" width="2" height="3" fill="#1d1147"/><rect x="9" y="8" width="2" height="3" fill="#1d1147"/><rect x="3" y="11" width="2" height="1" fill="#b8a9fb"/><rect x="11" y="11" width="2" height="1" fill="#b8a9fb"/><rect x="6" y="12" width="1" height="1" fill="#1d1147"/><rect x="9" y="12" width="1" height="1" fill="#1d1147"/><rect x="7" y="13" width="2" height="1" fill="#1d1147"/><rect x="4" y="16" width="2" height="1" fill="#ddd5ff"/><rect x="10" y="16" width="2" height="1" fill="#ddd5ff"/></svg><span>kwant</span></a>
    <a class="nl" href="/features">Features</a>
    <a class="nl" href="/docs/quickstart">Docs</a>
    <a class="nl" href="/blog/" aria-current="page">Blog</a>
    <a class="nl stars" href="https://github.com/alexsergivan/kwant" rel="noopener" aria-label="kwant on GitHub, 683 stars"><svg viewBox="0 0 16 16" width="17" height="17" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><b>★ 683</b></a>
    <a class="btn btn-solid btn-get px" href="/docs/quickstart">Get started</a>
  </nav>
</header>
<main id="main">
<section class="page-head post-head">
  <div class="wrap">
    <nav class="crumbs" aria-label="Breadcrumb"><a href="/">kwant</a> <span aria-hidden="true">/</span> <a href="/blog/">Blog</a></nav>
    <p class="kicker">claude-code, vps, self-hosted, how-to, ai-agents</p>
    <h1>Run Claude Code on a VPS and reach it from your phone</h1>
    <p class="lede">Three ways to run Claude Code on a VPS and reach it from your phone: SSH and tmux, Anthropic&#x27;s Remote Control, or a self-hosted AI agent team with kwant.</p>
    <p class="post-meta">The kwant team · <time datetime="2026-10-31">October 31, 2026</time> · 7 min read</p>
  </div>
</section>

<div class="wrap">
  <article class="prose solo post">
<p>A laptop that sleeps is a poor home for a coding agent. A small server that stays on is better, and the question that follows is how to reach it from your phone. This guide covers three routes, what each one needs, and when each is the right pick. One of them is kwant, the self-hosted AI agent team we build. It is not the right answer for everyone, and we say where it isn't.</p>
<h2 id="what-you-need-before-you-start">What you need before you start</h2>
<ul><li>A VPS you can SSH into. Anything small that runs Linux works for the first two options. The Docker route for kwant needs about 4 GB of free RAM (<a href="https://kwant.si/docs/install">install guide</a>, checked 2026-10-31).</li><li>Claude Code installed on that server. Anthropic's recommended install is <code>curl -fsSL https://claude.ai/install.sh | bash</code> (<a href="https://code.claude.com/docs/en/overview" rel="noopener">Anthropic docs</a>, as of 2026-10-31).</li><li>A Claude login the CLI can use. Which kind matters for option 2; see below.</li></ul>
<h2 id="option-1-ssh-and-tmux">Option 1: SSH and tmux</h2>
<p>This is the simplest route and it needs nothing beyond Claude Code.</p>
<ol><li>SSH into the server and start a session that survives disconnects: <code>tmux new -s claude</code>.</li><li>Run <code>claude</code> inside it and detach with <code>Ctrl-b d</code>.</li><li>Reconnect later with <code>tmux attach -t claude</code>.</li></ol>
<p>On a phone, use any SSH app. The cost is the experience: you are typing into a terminal on a small screen, and approving a command means reading it in a terminal.</p>
<p><strong>Pick this if</strong> you already live in a terminal and want no extra software.</p>
<h2 id="option-2-claude-code-s-remote-control">Option 2: Claude Code's Remote Control</h2>
<p>Anthropic's own route is <a href="https://code.claude.com/docs/en/remote-control" rel="noopener">Remote Control</a>. It connects claude.ai/code or the Claude mobile app to a Claude Code session running on your machine. Run <code>claude remote-control</code> in your project directory; the process stays running and shows a session URL, and you can press the spacebar to show a QR code for your phone (Anthropic docs, as of 2026-10-31).</p>
<p>Two requirements from the docs are worth knowing before you plan around it:</p>
<ul><li>It needs a claude.ai subscription login on a Pro, Max, Ultra, Team or Enterprise plan. The docs say API keys are not supported, and on Team and Enterprise an Owner must first turn on the Remote Control toggle in Claude Code admin settings.</li><li>The session runs on your machine, so "your computer has to stay on and the claude process has to keep running." A VPS is such a machine, but we have not tested this route on a headless server, so check the docs for the sign-in step before relying on it.</li></ul>
<p><strong>Pick this if</strong> you pay for a Claude subscription, want the official mobile app experience, and mainly work with one Claude Code session at a time.</p>
<h2 id="option-3-kwant-on-the-same-server-with-a-phone-friendly-web-app">Option 3: kwant on the same server, with a phone-friendly web app</h2>
<p><a href="https://kwant.si/">kwant</a> is an open-source, self-hosted team of AI agents ("bots" in its own wording) in one binary, <code>kwnt</code>. It runs the bots with the CLIs you already use, and its web app works on a phone, so you can read the team's summary or approve an action away from your desk (<a href="https://kwant.si/">home page</a>, checked 2026-10-31). kwant is licensed AGPL-3.0, with a commercial option.</p>
<p>This is a bigger step than the other two: you are adding a small server application, not only reaching a CLI. It makes sense if you want several bots, approvals in one place, and scheduled work on your own server. If you only want one Claude Code session on your phone, option 1 or 2 is less to set up.</p>
<h2 id="set-up-kwant-on-a-vps">Set up kwant on a VPS</h2>
<p>The <a href="https://kwant.si/docs/install">install guide</a> documents a Docker Compose route that starts kwant, its router and a private browser for the bots:</p>
<pre><code>git clone https://github.com/alexsergivan/kwant.git &amp;&amp; cd kwant
KWNT_CLIS=claude,codex docker compose up -d --build
docker compose exec kwnt kwnt doctor
docker compose exec kwnt claude auth login
docker compose exec kwnt kwnt signin-link</code></pre>
<p><code>kwnt doctor</code> reports what works and the fix for what doesn't. <code>kwnt signin-link</code> prints a one-time sign-in link and a QR code that work once, for 15 minutes; set <code>KWNT_ALLOWED_ORIGINS</code> first (below) so the link has your HTTPS address. The guide also mentions <code>kwnt token --raw</code>, which prints the permanent API token: keep that for scripts and treat it like a password. Instead of a CLI sign-in you can add an API key in the app under Space settings → Accounts (<a href="https://kwant.si/docs/install">install guide</a>). Read the <a href="https://kwant.si/docs/accounts">accounts page</a> for how several accounts and failover work, and check your provider's terms for whatever you sign in with.</p>
<p>The guide also describes a single-binary route. Build with <code>make build</code>, copy the binary to the server, and run <code>kwnt serve --host 0.0.0.0 --port 8799</code>. <code>make build</code> needs Rust and Node, and makes a binary for the machine it runs on, so build on the server itself or on a Linux machine with the same CPU type and the same or an older distribution (a binary built on a Mac won't run on Linux). Or use the Docker route. The server prints a one-time sign-in link that works once, for 15 minutes.</p>
<h3 id="put-https-in-front">Put HTTPS in front</h3>
<p>With Docker, the web app is published on 127.0.0.1:8799 only. Put an HTTPS reverse proxy in front and set <code>KWNT_ALLOWED_ORIGINS</code> to your HTTPS address. The guide's Caddy example is two lines: <code>your.domain { reverse_proxy 127.0.0.1:8799 }</code>. HTTPS also matters for the phone: the guide notes that browsers only install the web app from pages served over https or from 127.0.0.1.</p>
<p>If you would rather not expose anything, the guide shows an SSH tunnel: <code>ssh -N -L 8799:127.0.0.1:8799 user@your-vps</code>, then open <code>http://127.0.0.1:8799</code> on your computer.</p>
<h3 id="sign-in-from-your-phone">Sign in from your phone</h3>
<p>Once you are signed in, open Settings → Signed-in devices and choose Add a phone or browser. kwant shows a one-time QR code that works once, for 15 minutes. Scan it with your phone's camera. The page then offers to install kwant as a web app (<a href="https://kwant.si/docs/install">install guide</a>).</p>
<h3 id="keep-it-running">Keep it running</h3>
<p>The guide includes a systemd unit that runs <code>kwnt serve</code> as its own user with <code>Restart=always</code> and <code>KWNT_DATA_DIR=/var/lib/kwnt</code>, so kwant starts again after a reboot.</p>
<h2 id="security-checklist-for-a-server-that-runs-a-coding-agent">Security checklist for a server that runs a coding agent</h2>
<ul><li><strong>Decide what the agent may do without asking.</strong> kwant has three approval modes (ask, smart, off) and, in every mode, anything that looks like a payment asks first (<a href="https://kwant.si/docs/approvals">approvals</a>). Its own docs say the middle mode "guards against accidents. It isn't a sandbox." Use the strictest mode for bots or folders you don't trust.</li><li><strong>Never expose Chromium's debugging port or the Docker socket.</strong> The install guide says so in as many words.</li><li><strong>Keep the sign-in link private.</strong> Anyone who can read the server's output can use it.</li><li><strong>Use a dedicated user.</strong> The systemd example creates one for kwant.</li><li><strong>Limit freedom per bot.</strong> <a href="https://kwant.si/docs/flight-school">Flight School</a> lets you set Observe, Sandbox or Act per bot and per kind of work. It is off until you switch it on, and tiers apply to tasks on the Mission board.</li></ul>
<h2 id="which-option-should-you-pick">Which option should you pick?</h2>
<div class="table-wrap"><table><thead><tr><th scope="col">If you…</th><th scope="col">Pick</th></tr></thead><tbody><tr><td>live in a terminal and want nothing extra</td><td>SSH and tmux</td></tr><tr><td>pay for Claude and want Anthropic's mobile experience</td><td>Remote Control</td></tr><tr><td>want several bots, approvals and scheduled work on your own server</td><td>kwant</td></tr><tr><td>want a hosted service with no server to look after</td><td>None of these; look at hosted options</td></tr></tbody></table></div>
<p>A note on the name: "kwant" here means the open-source AI agent team at kwant.si. It is not the Kwant physics package or Kwant.ai, and kwant is not affiliated with or endorsed by Anthropic, OpenAI, xAI, Google or Apple.</p>
<p>Ready to try it? Start with the <a href="https://kwant.si/docs/install">install guide</a> or the <a href="https://kwant.si/docs/quickstart">quickstart</a>.</p>
    <aside class="post-cta" aria-label="Try kwant">
      <p><strong>Try kwant.</strong> A self-hosted team of AI agents in one binary, free and open source.</p>
      <p class="cta"><a class="btn btn-violet" href="/docs/install">Install kwant</a> <a class="btn btn-soft" href="https://github.com/alexsergivan/kwant" rel="noopener">See it on GitHub</a></p>
    </aside>
  </article>
  <aside class="related" aria-labelledby="related-title"><h2 id="related-title">Related posts</h2><div class="post-grid"><article class="post-card"><h3><a href="/blog/self-host-grok-bot-alternative-free-oracle-cloud">Self-host a Grok Bot alternative for free on Oracle Cloud</a></h3><p>Run kwant free on Oracle Cloud&#x27;s Always Free Arm server with Docker, connect Claude, ChatGPT, Grok or another model, and bring your Grok bots across.</p><p class="post-meta">The kwant team · <time datetime="2026-11-05">November 5, 2026</time> · Updated <time datetime="2026-11-06">November 6, 2026</time> · 18 min read</p><ul class="tags" aria-label="Tags"><li>grok</li><li>claude</li><li>chatgpt</li><li>self-hosted</li><li>how-to</li><li>vps</li><li>oracle-cloud</li><li>ai-agents</li></ul></article><article class="post-card"><h3><a href="/blog/control-home-assistant-with-a-self-hosted-bot">Control Home Assistant from a self-hosted AI bot</a></h3><p>Connect Home Assistant to kwant 0.9.21: official MCP server, two-field Connect sheet, the Home team and House, plus what a 7B local model got right and wrong.</p><p class="post-meta">The kwant team · <time datetime="2026-11-17">November 17, 2026</time> · 16 min read</p><ul class="tags" aria-label="Tags"><li>home-assistant</li><li>mcp</li><li>self-hosted</li><li>how-to</li><li>ai-agents</li><li>kwant</li></ul></article><article class="post-card"><h3><a href="/blog/openclaw-vs-hermes-agent-vs-kwant">OpenClaw vs Hermes Agent vs kwant: self-hosted AI agents</a></h3><p>A fair look at OpenClaw, Hermes Agent and kwant, three self-hosted AI agents. What each is built for, where each is the better pick, and how they install.</p><p class="post-meta">The kwant team · <time datetime="2026-11-01">November 1, 2026</time> · 8 min read</p><ul class="tags" aria-label="Tags"><li>openclaw</li><li>hermes-agent</li><li>kwant</li><li>self-hosted</li><li>comparison</li><li>ai-agents</li></ul></article></div></aside>
</div>

</main>
<footer class="site-footer">
  <div class="ground" aria-hidden="true"><div class="crew"><svg class="char-svg" viewBox="5 1 16 20" shape-rendering="crispEdges" aria-hidden="true"><rect x="7" y="20" width="12" height="1" fill="#261d4a"/><rect x="12" y="2" width="2" height="1" fill="#ffe066"/><rect x="11" y="3" width="4" height="2" fill="#ffe066"/><rect x="12" y="3" width="1" height="1" fill="#ffffff"/><rect x="12" y="5" width="2" height="1" fill="#8a8aa8"/><rect x="12" y="6" width="2" height="1" fill="#1b1033"/><rect x="9" y="7" width="8" height="1" fill="#9be564"/><rect x="8" y="8" width="10" height="1" fill="#9be564"/><rect x="7" y="9" width="12" height="7" fill="#9be564"/><rect x="8" y="16" width="10" height="1" fill="#9be564"/><rect x="9" y="17" width="8" height="1" fill="#5e9e33"/><rect x="18" y="9" width="1" height="7" fill="#5e9e33"/><rect x="17" y="16" width="1" height="1" fill="#5e9e33"/><rect x="7" y="15" width="1" height="1" fill="#5e9e33"/><rect x="8" y="16" width="1" height="1" fill="#5e9e33"/><rect x="10" y="8" width="2" height="1" fill="#e2ffc7"/><rect x="9" y="9" width="1" height="1" fill="#e2ffc7"/><rect x="10" y="10" width="2" height="3" fill="#1b1033"/><rect x="14" y="10" width="2" height="3" fill="#1b1033"/><rect x="10" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="14" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="8" y="13" width="2" height="1" fill="#ff6b81"/><rect x="16" y="13" width="2" height="1" fill="#ff6b81"/><rect x="11" y="14" width="1" height="1" fill="#1b1033"/><rect x="14" y="14" width="1" height="1" fill="#1b1033"/><rect x="12" y="15" width="2" height="1" fill="#1b1033"/><rect x="9" y="18" width="2" height="1" fill="#1b1033"/><rect x="15" y="18" width="2" height="1" fill="#1b1033"/></svg><svg class="char-svg" viewBox="5 1 16 20" shape-rendering="crispEdges" aria-hidden="true"><rect x="7" y="20" width="12" height="1" fill="#261d4a"/><rect x="9" y="5" width="8" height="2" fill="#6d4fd6"/><rect x="8" y="6" width="1" height="1" fill="#6d4fd6"/><rect x="13" y="4" width="1" height="1" fill="#6d4fd6"/><rect x="10" y="5" width="2" height="1" fill="#9a7cff"/><rect x="9" y="7" width="8" height="1" fill="#ff8a7a"/><rect x="8" y="8" width="10" height="1" fill="#ff8a7a"/><rect x="7" y="9" width="12" height="7" fill="#ff8a7a"/><rect x="8" y="16" width="10" height="1" fill="#ff8a7a"/><rect x="9" y="17" width="8" height="1" fill="#cf5446"/><rect x="18" y="9" width="1" height="7" fill="#cf5446"/><rect x="17" y="16" width="1" height="1" fill="#cf5446"/><rect x="7" y="15" width="1" height="1" fill="#cf5446"/><rect x="8" y="16" width="1" height="1" fill="#cf5446"/><rect x="10" y="8" width="2" height="1" fill="#ffd6cf"/><rect x="9" y="9" width="1" height="1" fill="#ffd6cf"/><rect x="10" y="10" width="2" height="3" fill="#1b1033"/><rect x="14" y="10" width="2" height="3" fill="#1b1033"/><rect x="10" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="14" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="8" y="13" width="2" height="1" fill="#ff6b81"/><rect x="16" y="13" width="2" height="1" fill="#ff6b81"/><rect x="11" y="14" width="1" height="1" fill="#1b1033"/><rect x="14" y="14" width="1" height="1" fill="#1b1033"/><rect x="12" y="15" width="2" height="1" fill="#1b1033"/><rect x="9" y="18" width="2" height="1" fill="#1b1033"/><rect x="15" y="18" width="2" height="1" fill="#1b1033"/></svg><svg class="char-svg" viewBox="5 1 16 20" shape-rendering="crispEdges" aria-hidden="true"><rect x="7" y="20" width="12" height="1" fill="#261d4a"/><rect x="15" y="6" width="1" height="1" fill="#1b1033"/><rect x="15" y="3" width="2" height="2" fill="#5ce1ff"/><rect x="15" y="3" width="1" height="1" fill="#ffffff"/><rect x="9" y="7" width="8" height="1" fill="#fdc934"/><rect x="8" y="8" width="10" height="1" fill="#fdc934"/><rect x="7" y="9" width="12" height="7" fill="#fdc934"/><rect x="8" y="16" width="10" height="1" fill="#fdc934"/><rect x="9" y="17" width="8" height="1" fill="#d98a1f"/><rect x="18" y="9" width="1" height="7" fill="#d98a1f"/><rect x="17" y="16" width="1" height="1" fill="#d98a1f"/><rect x="7" y="15" width="1" height="1" fill="#d98a1f"/><rect x="8" y="16" width="1" height="1" fill="#d98a1f"/><rect x="10" y="8" width="2" height="1" fill="#fff0a0"/><rect x="9" y="9" width="1" height="1" fill="#fff0a0"/><rect x="10" y="10" width="2" height="3" fill="#1b1033"/><rect x="14" y="10" width="2" height="3" fill="#1b1033"/><rect x="10" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="14" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="8" y="13" width="2" height="1" fill="#ff6b81"/><rect x="16" y="13" width="2" height="1" fill="#ff6b81"/><rect x="11" y="14" width="1" height="1" fill="#1b1033"/><rect x="14" y="14" width="1" height="1" fill="#1b1033"/><rect x="12" y="15" width="2" height="1" fill="#1b1033"/><rect x="9" y="18" width="2" height="1" fill="#1b1033"/><rect x="15" y="18" width="2" height="1" fill="#1b1033"/></svg><svg class="char-svg" viewBox="5 1 16 20" shape-rendering="crispEdges" aria-hidden="true"><rect x="7" y="20" width="12" height="1" fill="#261d4a"/><rect x="9" y="5" width="8" height="1" fill="#ff6b81"/><rect x="8" y="6" width="1" height="3" fill="#ff6b81"/><rect x="17" y="6" width="1" height="3" fill="#ff6b81"/><rect x="6" y="10" width="2" height="3" fill="#ff6b81"/><rect x="18" y="10" width="2" height="3" fill="#ff6b81"/><rect x="9" y="7" width="8" height="1" fill="#5ce1ff"/><rect x="8" y="8" width="10" height="1" fill="#5ce1ff"/><rect x="7" y="9" width="12" height="7" fill="#5ce1ff"/><rect x="8" y="16" width="10" height="1" fill="#5ce1ff"/><rect x="9" y="17" width="8" height="1" fill="#2a92c9"/><rect x="18" y="9" width="1" height="7" fill="#2a92c9"/><rect x="17" y="16" width="1" height="1" fill="#2a92c9"/><rect x="7" y="15" width="1" height="1" fill="#2a92c9"/><rect x="8" y="16" width="1" height="1" fill="#2a92c9"/><rect x="10" y="8" width="2" height="1" fill="#d2f7ff"/><rect x="9" y="9" width="1" height="1" fill="#d2f7ff"/><rect x="10" y="10" width="2" height="3" fill="#1b1033"/><rect x="14" y="10" width="2" height="3" fill="#1b1033"/><rect x="10" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="14" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="8" y="13" width="2" height="1" fill="#ff6b81"/><rect x="16" y="13" width="2" height="1" fill="#ff6b81"/><rect x="11" y="14" width="1" height="1" fill="#1b1033"/><rect x="14" y="14" width="1" height="1" fill="#1b1033"/><rect x="12" y="15" width="2" height="1" fill="#1b1033"/><rect x="9" y="18" width="2" height="1" fill="#1b1033"/><rect x="15" y="18" width="2" height="1" fill="#1b1033"/></svg><svg class="char-svg" viewBox="5 1 16 20" shape-rendering="crispEdges" aria-hidden="true"><rect x="7" y="20" width="12" height="1" fill="#261d4a"/><rect x="9" y="7" width="8" height="1" fill="#ff6b6b"/><rect x="8" y="8" width="10" height="1" fill="#ff6b6b"/><rect x="7" y="9" width="12" height="7" fill="#ff6b6b"/><rect x="8" y="16" width="10" height="1" fill="#ff6b6b"/><rect x="9" y="17" width="8" height="1" fill="#c43c4c"/><rect x="18" y="9" width="1" height="7" fill="#c43c4c"/><rect x="17" y="16" width="1" height="1" fill="#c43c4c"/><rect x="7" y="15" width="1" height="1" fill="#c43c4c"/><rect x="8" y="16" width="1" height="1" fill="#c43c4c"/><rect x="10" y="8" width="2" height="1" fill="#ffc9c9"/><rect x="9" y="9" width="1" height="1" fill="#ffc9c9"/><rect x="10" y="10" width="2" height="3" fill="#1b1033"/><rect x="14" y="10" width="2" height="3" fill="#1b1033"/><rect x="10" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="14" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="8" y="13" width="2" height="1" fill="#ff6b81"/><rect x="16" y="13" width="2" height="1" fill="#ff6b81"/><rect x="11" y="14" width="1" height="1" fill="#1b1033"/><rect x="14" y="14" width="1" height="1" fill="#1b1033"/><rect x="12" y="15" width="2" height="1" fill="#1b1033"/><rect x="9" y="18" width="2" height="1" fill="#1b1033"/><rect x="15" y="18" width="2" height="1" fill="#1b1033"/><rect x="7" y="8" width="12" height="1" fill="#1b1033"/><rect x="9" y="7" width="3" height="2" fill="#5ce1ff"/><rect x="14" y="7" width="3" height="2" fill="#5ce1ff"/><rect x="9" y="7" width="1" height="1" fill="#ffffff"/><rect x="14" y="7" width="1" height="1" fill="#ffffff"/></svg></div></div>
  <div class="wrap">
    <div class="foot-grid">
    <div class="foot-brand">
      <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 16 17" width="38" height="38" shape-rendering="crispEdges" aria-hidden="true"><rect x="10" y="4" width="1" height="1" fill="#1d1147"/><rect x="10" y="1" width="2" height="2" fill="#ddd5ff"/><rect x="4" y="5" width="8" height="1" fill="#fff"/><rect x="3" y="6" width="10" height="1" fill="#fff"/><rect x="2" y="7" width="12" height="7" fill="#fff"/><rect x="3" y="14" width="10" height="1" fill="#fff"/><rect x="4" y="15" width="8" height="1" fill="#ddd5ff"/><rect x="13" y="7" width="1" height="7" fill="#ddd5ff"/><rect x="5" y="8" width="2" height="3" fill="#1d1147"/><rect x="9" y="8" width="2" height="3" fill="#1d1147"/><rect x="3" y="11" width="2" height="1" fill="#b8a9fb"/><rect x="11" y="11" width="2" height="1" fill="#b8a9fb"/><rect x="6" y="12" width="1" height="1" fill="#1d1147"/><rect x="9" y="12" width="1" height="1" fill="#1d1147"/><rect x="7" y="13" width="2" height="1" fill="#1d1147"/><rect x="4" y="16" width="2" height="1" fill="#ddd5ff"/><rect x="10" y="16" width="2" height="1" fill="#ddd5ff"/></svg><span>kwant</span></a>
      <p>A self-hosted team of AI bots in one binary. Free and open source under AGPL-3.0.</p>
      <p class="foot-star">kwant runs on coffee and GitHub stars. <a href="https://github.com/alexsergivan/kwant" rel="noopener">Toss one our way <svg class="pi" viewBox="0 0 9 8" shape-rendering="crispEdges" fill="currentColor" aria-hidden="true"><rect x="4" y="0" width="1" height="1"/><rect x="3" y="1" width="3" height="1"/><rect x="0" y="2" width="9" height="1"/><rect x="1" y="3" width="7" height="1"/><rect x="2" y="4" width="5" height="1"/><rect x="2" y="5" width="2" height="1"/><rect x="5" y="5" width="2" height="1"/><rect x="1" y="6" width="2" height="1"/><rect x="6" y="6" width="2" height="1"/></svg></a></p>
    </div>
    <nav aria-label="Product">
      <h2>Product</h2>
      <a href="/features">Features</a>
      <a href="/docs/quickstart">Quickstart</a>
      <a href="/docs/install">Install &amp; run</a>
      <a href="/docs/phone">On your phone</a>
      <a href="/self-hosted-ai-agents">Self-hosted AI agents</a>
      <a href="/blog/">Blog</a>
      <a href="/docs/mcp">MCP tools</a>
    </nav>
    <nav aria-label="Using kwant">
      <h2>Using kwant</h2>
      <a href="/docs/spaces">Spaces</a>
      <a href="/docs/accounts">Accounts</a>
      <a href="/docs/approvals">Approvals</a>
      <a href="/docs/routines">Routines</a>
    </nav>
    <nav aria-label="Project">
      <h2>Project</h2>
      <a href="https://github.com/alexsergivan/kwant" rel="noopener">GitHub</a>
      <a href="https://github.com/alexsergivan/kwant/issues" rel="noopener">Issues</a>
      <a href="https://github.com/alexsergivan/kwant/blob/main/SECURITY.md" rel="noopener">Security</a>
      <a href="/contact">Contact</a>
      <a href="https://x.com/kwantbot" rel="noopener">X (@kwantbot)</a>
    </nav>
    <nav aria-label="Legal">
      <h2>Legal</h2>
      <a href="/privacy">Privacy</a>
      <a href="/terms">Terms of use</a>
      <a href="/terms#license">License</a>
    </nav>
    </div>
    <div class="foot-base">
      <p class="foot-legal">kwant is not affiliated with or endorsed by Anthropic, OpenAI, xAI, Google or Apple. Their names and products are trademarks of their owners.</p>
      <p class="foot-notice"><strong>kwant has no token.</strong> Official X account is <a href="https://x.com/kwantbot" rel="noopener">@kwantbot</a>.</p>
      <p class="foot-made">Made in Germany with <svg class="pi" viewBox="0 0 7 6" shape-rendering="crispEdges" fill="currentColor" role="img" aria-label="love"><rect x="1" y="0" width="2" height="1"/><rect x="4" y="0" width="2" height="1"/><rect x="0" y="1" width="7" height="1"/><rect x="0" y="2" width="7" height="1"/><rect x="1" y="3" width="5" height="1"/><rect x="2" y="4" width="3" height="1"/><rect x="3" y="5" width="1" height="1"/></svg></p>
    </div>
  </div>
</footer>
<script src="../assets/js/site.js?v=02a491b838" defer></script>
<script src="../assets/js/pixel.js?v=0a1a3bf1e2" defer></script>
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"BlogPosting","@id":"https://kwant.si/blog/claude-code-on-a-vps#post","headline":"Run Claude Code on a VPS and reach it from your phone","description":"Three ways to run Claude Code on a VPS and reach it from your phone: SSH and tmux, Anthropic's Remote Control, or a self-hosted AI agent team with kwant.","url":"https://kwant.si/blog/claude-code-on-a-vps","mainEntityOfPage":"https://kwant.si/blog/claude-code-on-a-vps","image":"https://kwant.si/assets/og/blog-claude-code-on-a-vps.png?v=3dd3b9e0c8","inLanguage":"en","datePublished":"2026-10-31","dateModified":"2026-10-31","author":{"@id":"https://kwant.si/#org"},"publisher":{"@id":"https://kwant.si/#org"},"wordCount":1406,"isPartOf":{"@id":"https://kwant.si/blog/#blog"},"about":{"@id":"https://kwant.si/#app"},"keywords":["claude-code","vps","self-hosted","how-to","ai-agents"]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"kwant","item":"https://kwant.si/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://kwant.si/blog/"},{"@type":"ListItem","position":3,"name":"Run Claude Code on a VPS and reach it from your phone","item":"https://kwant.si/blog/claude-code-on-a-vps"}]},{"@type":"Organization","@id":"https://kwant.si/#org","name":"kwant","alternateName":"kwnt","url":"https://kwant.si/","logo":"https://kwant.si/apple-touch-icon.png","sameAs":["https://github.com/alexsergivan/kwant"]}]}</script>
<script type="application/json" id="cf-beacon">{"token": "7f6ed395033a43eea3885ad0943890c2"}</script>
</body>
</html>