AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Nov 8, 2026, 19:01 JST

Claude Code on a home server, reachable from your phone

Send on LINE
Claude Code on a home server, reachable from your phone

3 Key Points

  1. What happened

    A walkthrough shows Claude Code 2.1.319 running on an Ubuntu 26.04 LTS home server as a dedicated non-sudo user under systemd and tmux, reachable from the Claude Android app with no port forwarding or VPN.

  2. Why it matters

    The setup gives a phone the ability to direct work on a server's actual files, while the account's lack of sudo rights and a deny list act as safeguards against destructive actions.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The appeal of the home-server setup is location. Claude Code's built-in Code tab already offers cloud sessions, but those run in Anthropic's disposable environment on a copy of code from GitHub. The author's setup flips that: the work happens on the server itself, so tasks like aggregating home-server logs or editing a test machine's configuration files become practical. The trade-off is that responsibility for safety shifts to the user, since the server's power and a persistent process are both required.

The author's approach to that responsibility is layered. The primary defense is a dedicated claude user with no sudo privileges, created with adduser and checked with groups. On top of that, a permission deny list blocks sudo, su, rm -rf, and reads of credential and SSH files. The author calls the list a form of insurance, with the non-sudo user as the real protection. A CLAUDE.md file also tells Claude to stay within ~/work and to present steps rather than execute system changes.

The setup has several practical snags the author documents. claude.ai returns a 403 to curl, so the startup script checks reachability against https://api.anthropic.com instead and drops curl's -f flag. The first launch must be done manually because the initial prompts (enable Remote Control, spawn mode, trust folder) cannot be answered unattended. Recent versions start in Auto mode, so permissions may not prompt unless configured otherwise. Automatic updates are not applied until a restart, which the author handles with a daily 04:30 timer. The author also notes that claude.ai account connectors can carry over to a fresh server, and that pasting long commands can introduce line breaks around pipes.

FAQ
What are the requirements to use Remote Control this way?
A paid plan such as Pro or Max is needed, and you must log in with a claude.ai account. API keys and long-term tokens (claude setup-token) do not work with Remote Control.
Does a continuously running server mean unlimited usage?
No. While idle it does not consume usage, but each instruction you send counts toward your normal usage limits.
How does this differ from Claude Code's cloud sessions?
Cloud sessions run in Anthropic's disposable cloud environment on a copy of code fetched from GitHub. The home-server setup runs on the server itself and can touch real files on that machine.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articlePangram AI Detection test: ChatGPT and Qwen Image 2.1 images caught