← Reddit

Your old phone is a Linux server. Use it.

Reddit · RealCharzard · May 6, 2026
A developer moved Claude Code from a MacBook to an old Galaxy phone running Termux and proot Ubuntu to solve battery drain problems. The phone was configured with SSH access from the Mac and SSHFS file mounting, allowing it to handle computational tasks while keeping the laptop cool and maintaining full battery charge throughout the day.

Detailed Analysis

A developer running Anthropic's Claude Code agentic coding tool on a MacBook encountered significant battery drain and responded by repurposing an old Samsung Galaxy smartphone as a dedicated Linux server to handle the workload. The solution relies on Termux, a terminal emulator and Linux environment for Android, combined with proot to run a full Ubuntu environment without requiring root access. The Mac connects to the phone via SSH, and files are shared bidirectionally using SSHFS, creating a clean separation between the user-facing machine and the compute-intensive Claude Code process. The developer published the configuration publicly on GitHub under the project name "pocket-devbox," inviting others to replicate the setup.

The approach directly addresses one of the most tangible friction points emerging as agentic AI coding tools enter mainstream developer workflows: local resource consumption. Claude Code, Anthropic's terminal-based coding agent, operates in persistent loops — reading files, writing code, running tests, and iterating — which sustains CPU and memory pressure in a way that traditional IDE usage does not. Offloading that process to a secondary device, even one as modest as a mid-range Android smartphone, is a pragmatic engineering response that preserves the primary machine's battery life and thermal performance without requiring cloud infrastructure or additional paid compute.

The broader significance lies in what it reveals about the current state of agentic AI tooling. As tools like Claude Code become more capable and are used for longer autonomous sessions, developers are organically discovering that their existing hardware ecosystems — not just their primary laptops — can be recruited into service. The Android-as-Linux-server pattern is not new; projects like UserLAnd and various Termux-based setups have existed for years. What is new is the specific motivation: AI agents running locally are now resource-intensive enough to drive developers toward multi-device architectures that were previously associated only with professional server environments or embedded systems hobbyists.

This mirrors a wider trend in which the operational demands of AI tooling are reshaping developer infrastructure decisions at every level of the stack. Enterprises are investing in GPU clusters; individual developers, it turns out, are raiding their junk drawers. The pocket-devbox project is a grassroots signal that the resource profile of agentic coding assistants has crossed a threshold where hardware routing and load distribution have become genuine quality-of-life concerns, not just theoretical scalability questions. It also underscores the enduring value of open, composable Unix-style tooling — SSH, SSHFS, and proot remain the primitives that make such improvised architectures possible with minimal configuration overhead.

Read original article →