Guide

Using Claude Code and Codex from your phone, with the whole computer

When I leave Claude Code working on my Mac in the office and head out, it sometimes stops to ask me a question. This is how I answer it from my phone, how to set it up, and how it compares to the other ways of doing it.

By Sheroze, who built Nightdesk · All guides

01The problem

When the agent stops and you’re away

Coding agents can work for a long time on their own now, but they still stop to ask things, like whether to run the tests or commit. At your desk that’s one keypress. When you’re out, or in bed with the computer in another room, the whole job waits on you.

That kept happening to me, so I built Nightdesk for myself first.

02What you get

Your desktop, plus keys for the agent

Nightdesk puts your Mac or Linux desktop on your Android phone, live. It’s the real screen, so it works with whatever the agent runs in: Terminal, iTerm, Ghostty, the terminal inside Cursor or VS Code, or tmux on a Linux box. Three parts make it work well for agents:

  • Agent keys. When Claude Code, Codex or another coding tool is in the terminal in front, a strip of keys appears above the dock: Stop, Mode, /compact, /model, /usage and the 1, 2 and 3 answers. A tap types the command, and holding it types and sends it. Typing 1 into a picture of a terminal felt silly to me, which is why the answers became keys.
  • Terminal view. A whole desktop on a phone makes terminal text tiny. One tap zooms to the terminal you’re in, with the text large enough to read. One finger scrolls back through the output, a tap places the cursor, and Back returns to the whole screen.
  • Write. Type or dictate a whole prompt with your phone’s own keyboard, then send it. It lands in the terminal in one piece, as a paste, so a line break doesn’t send half of it early.

Agent keys, the terminal view and Write: on Android now, coming to iPhone and iPad.

Nightdesk on a phone held sideways: Claude Code asks “Do you want to proceed?”, with Stop, 1, 2, 3, Mode and /compact keys below.
Claude Code asks before it carries on, and its answers are keys. A capture of the Android app.
Nightdesk’s terminal view on a phone: Claude Code’s summary of a finished fix, in large, sharp text.
The terminal view: the terminal you’re in, filling the phone.

03Set it up

Five steps, most of them once.

  1. Install Nightdesk on the computer

    On a Mac, download it from the Mac page and drag it to Applications (macOS 14 or later). It asks for Screen Recording and Accessibility, one click each. On Linux with GNOME, it’s one command. It’s free on the computer.

  2. Get the Android app and scan the code

    Install Nightdesk from Google Play (Android 12 or later) and scan the code your computer shows. That’s the pairing. There’s no account to make.

  3. Keep the computer awake

    A sleeping computer can’t answer, so keep it plugged in. On a MacBook, set up lid-closed mode in Nightdesk’s window and it stays awake with the lid shut while it’s on power.

  4. Start the agent the way you always do

    Run claude or codex in your terminal as usual. There’s nothing to wrap and no special command.

  5. Pick it up from anywhere

    Open Nightdesk on your phone. At home it links straight to the computer. Anywhere else it goes through an end-to-end encrypted relay, usually in about a second. If the agent is waiting, its keys are already there.

04Good to know

What it does well, and where it falls short.

Away from home

Through the relay the picture is capped at 12 Mbps and the delay is usually 50 to 100 ms. That’s plenty for reading output and answering. At home it’s quicker, and a Mac with an Android phone plugged in uses the cable.

Privacy

Everything is end-to-end encrypted with a key made when you pair. The relay in the middle only ever sees encrypted data, and nothing is recorded or kept. Nightdesk doesn’t sit between you and Anthropic or OpenAI either: the agent runs on your computer exactly as before.

Limits and notifications

If you use more than one account, Nightdesk can also tell you when one hits its usage limit and when it’s free again. And Nightdesk for Mac and Linux are MCP servers, so you can ask Claude Code to buzz your phone when the tests pass.

05Other ways

Other ways to do this, and when they fit better.

Anthropic has Remote Control for Claude Code: you run claude remote-control (or /remote-control in a session) on the computer and carry on the conversation in the Claude app or at claude.ai/code. It comes with Claude’s paid plans, so if you mostly want to keep talking to Claude, it’s a good place to start. OpenAI has Codex in the ChatGPT app, in preview, connected to the Codex app on a Mac.

Happy is a free, open source app for running Claude Code and Codex, with a phone app of its own. And plenty of people do fine with tmux, Tailscale and an SSH app.

Those give you the agent or a shell. I wanted the whole computer, like the browser with the page the agent built or a second terminal running the dev server. That’s the part Nightdesk does, and it works with any agent that runs in a terminal because it doesn’t wrap the agent or change how you start it.

What it looks like on an ordinary day

A dark bedroom on a rainy night: someone sits up in bed, lit by the phone in their hands.
Nightdesk on a phone held sideways: Claude Code asks “Do you want to proceed?”, with Stop, 1, 2, 3, Mode and /compact keys below.

Answer Claude Code from your bed

2:07 a.m.Priya, backend engineer

Priya left claude refactoring the billing service on her desktop downstairs and went to bed. An hour in, it stopped to ask before running the test suite.

The whole night’s work is waiting on one key, and the keyboard is a flight of stairs away.

How

  1. She opens Nightdesk on her phone. It links to her desktop in about a second.
  2. Claude Code is the tool in front, so its keys are already above the dock: Stop, Mode, /compact and the answers 1, 2 and 3.
  3. She taps 1. The tests start, the first ones pass, and she puts the phone down.

One tap from bed, and the night’s work carries on.

A noodle bar counter at night, rain on the window, a phone glowing beside a steaming bowl.
Nightdesk’s terminal view on a phone: Claude Code’s summary of a finished fix, in large, sharp text.

Read what your agent changed before you say yes

8:40 p.m.Mateo, full-stack developer

Mateo asked Claude Code for a database migration and went out for noodles. By the time his bowl arrives, three screens of output are waiting in a terminal at home.

A whole desktop shrunk onto a phone makes a terminal unreadable, and he won’t approve what he hasn’t read.

How

  1. Nightdesk offers the terminal view. One tap fills the phone with the terminal alone, in large, sharp text.
  2. One finger scrolls back through the output; a tap puts the cursor where he wants it.
  3. He writes the next instruction in Write, and it arrives in one piece.

All three screens read and answered before the bill comes.

A hand holding a phone by a rain-streaked train window, the city’s lights smeared into streaks.
Nightdesk’s Write panel with a long prompt typed in, and Type it, Paste and Send buttons.

Write a long prompt on the train and send it in one piece

7:52 a.m.Aisha, ML engineer

On the train into town, Aisha knows exactly what her agent should do today. It takes a paragraph to say.

Typed straight into a terminal, the first Enter sends half a thought.

How

  1. She opens Write and types the prompt with her phone’s own keyboard, or dictates it, autocorrect and all.
  2. She taps Send. It lands in the terminal on her desktop in one piece, and the agent starts.

By the time she sits down at work, the agent is well into it.

Nightdesk’s Home on a phone: a card for Studio Mac, a MacBook Pro, nearby, with a big Link button.

Look after two agents on two computers

11:30 a.m.Wen, indie developer

Wen runs Claude Code on her MacBook and Codex on the Linux workstation under the desk, each on its own branch.

Checking on both meant two SSH sessions and a lot of tmux.

How

  1. Home in Nightdesk is a deck of her computers. She swipes to one and taps Link.
  2. The agent keys follow the tool in front: Claude Code’s on the Mac, Codex’s on Linux.
  3. Switch computer jumps to the other one without going back to Home.

Both agents answered from one app, with no SSH in between.

Every use case

More guides

Try it on your own computer.

The Mac and Linux apps are free. On Android, everything is on for 3 days from your first link, with no card and no account, and after that it’s $4.99 a month or $57 once (US prices; Google Play shows yours). Nightdesk for iPhone and iPad is coming to the App Store.