Home / Guides

How to Manage a Linux Server From Your Phone With AI

Check logs, restart services and free disk space on a Linux server or VPS from your phone with ChatGPT or Claude: connectors, chat-app agents and SSH apps compared.

By Sandeep Kumar Saini, founder of Shellway · Published 28 Nov 2026 · Updated 28 Nov 2026

Short answer: to manage a Linux server from your phone with AI, run a small agent on the server that ChatGPT or Claude can call, then ask in the normal phone app: "check disk space", "why did nginx stop?", "show the last 50 error lines". ChatGPT's built-in Remote pairs Mac and Windows computers (Linux only as an SSH host for Codex), so a headless VPS needs a connector such as Shellway, a chat-app agent such as OpenClaw, or an SSH app.

Shellway is our product. Facts about the other options come from their own pages, linked under Sources, checked 28 November 2026.

What you can do from your phone

Option 1: a connector in the ChatGPT or Claude phone app (Shellway)

The AI app on your phone talks to Shellway; a small agent on the server does the work and sends the result back. The server only makes an outgoing connection, so port 22 can stay closed to the world.

  1. On the server, as a normal user (not root), paste the one-line setup command from your Shellway dashboard. It brings its own Node if needed and says "paired".
  2. Run npx -y shellway@latest service install --readonly so it starts with the server and can only look, not change, for now. On a server, an admin runs sudo loginctl enable-linger <user> once so it keeps running when nobody is logged in.
  3. In the ChatGPT or Claude app, add Shellway (ChatGPT setup, Claude setup).
  4. Ask a read-only question first: "Is my server healthy?"

Free plan: 50 actions a day on 1 computer after a 7-day trial; Starter $5 a month (₹499 in India) for unlimited use on one server. Full server guide: run a Linux server or VPS from ChatGPT or Claude.

Option 2: a chat-app agent (OpenClaw)

OpenClaw is an open-source (MIT) gateway you host yourself. It connects chat apps such as Telegram and WhatsApp to an AI agent that can run commands on the machine, with approval gates and optional sandboxes. It is free software, but you run and update the gateway, bring the model account or API key, and decide how much the agent may do. Good fit if you prefer Telegram over the ChatGPT app and like running your own tools.

Option 3: an SSH app (Termius and others)

An SSH app on iPhone or Android gives you a real terminal on the server. Termius's free plan includes AI-powered autocomplete, which helps you type commands. You still do the work yourself and need port 22 (or another SSH port) reachable. Best when you know Linux and want full control.

Why not ChatGPT Remote or Claude Remote Control?

Both are good for a desktop computer, less so for a headless server. OpenAI's Remote lets the ChatGPT phone app guide work on a paired Mac or Windows PC with the desktop app, or an SSH host where Codex is installed; the host must stay awake and online. Claude Code's Remote Control lets the Claude app continue a Claude Code session on your machine, but the computer has to stay on and the claude process has to keep running in a terminal; it needs a Pro, Max, Team or Enterprise plan.

The options compared

Connector (Shellway)Chat-app agent (OpenClaw)SSH app (Termius)ChatGPT RemoteClaude Remote Control
Ask in the ChatGPT or Claude phone appYes, bothNo: Telegram, WhatsApp and othersNoChatGPT onlyClaude only
Headless Linux serverYesYesYesOnly as an SSH host for CodexYes, while a claude session runs
No inbound portYesDepends on the channel set-upNo: SSH must be reachablePairs through the desktop appYes
Keeps running without a terminal openYes (service)Yes (gateway)Not applicableDesktop app must stay openNo
Read-only mode and blocked commandsYes, set on the serverApproval gates and sandboxesYou type every commandHost settingsClaude Code permissions
Open sourceNo (plugin files MIT)Yes (MIT)NoNoNo
PriceFree 50/day; from $5/monthFree software + your model costsFree plan; Pro $10/month billed yearlyIn your ChatGPT plan, where rolled outClaude Pro or higher

Safety rules for a production server

  • Never as root. Create a separate user and give it access only to your app folder and logs. The agent can do exactly what that user can do.
  • No password sudo. If the AI should restart one service, allow only that command with a sudoers rule.
  • Read-only for the first week (read-only first week), then allow changes step by step.
  • Block what you never want run and keep backups on before edits. These rules live on the server, so the chat cannot change them:
npx shellway start --readonly              # read-only: look, never change
npx shellway policy allow ~/projects        # only this folder (repeat for more)
npx shellway policy block-deletes           # block delete commands
npx shellway policy commands off            # file tools only, no commands
npx shellway policy backups on              # back up every file before it changes
npx shellway policy show                    # see the current rules

Be honest with yourself about limits: allowed folders cover file tools; a terminal command can still reach other folders the user can read, so choose the user carefully (security).

Common questions

Can ChatGPT SSH into my server?

Not by itself. Something has to run on or next to the server: a connector's agent, Codex as an SSH host for Remote, or your own SSH app.

Do I need to open port 22?

Not with a connector such as Shellway: the server connects outward. An SSH app does need SSH reachable.

Does it work on a Raspberry Pi?

Yes. Shellway runs on Linux, including a Raspberry Pi; the setup is the same as on a VPS.

Can I restart services from my phone?

Yes, once you allow it: give the AI's user a sudoers rule for that one restart command, then ask "restart myapp and check it stays up".

Is it safe to give AI root?

No. Use a normal user with the least access that does the job, start read-only, and block risky commands.

Does it work with Claude on iPhone?

Yes. Add Shellway in Claude, and the Claude app on iPhone or Android can use your server. See Claude from your phone.

Sources

Checked on 28 November 2026. These products change often; tell us via contact if something here is out of date.