Run Claude Code from your phone while execution stays on your computer
To use Claude Code from your phone, install the Cohub CLI and Claude Code on your computer and sign in to both, run cohub runtime up --harness claude in the project folder, check that cohub runtime status lists claude, then open that Space in your phone's browser, choose Claude Code and send the task; the edits land in your local repository, where git diff shows them.
- Who
- Developers who use Claude Code on their own computer and want to hand it small tasks from their phone while away from the desk.
- When
- Your computer can stay on and online, the task fits in one message, and you will look over the change in git afterwards.
- Why
- Claude Code keeps running on your computer, in your project, with your own sign-in and settings; the Space carries your message and shows the work, so the phone only needs a browser.
Yes—you can send work to Claude Code from your phone browser while Claude Code stays on your computer. cohub runtime up links your local project directory to a Cohub Space, so your phone posts prompts and reads step-by-step progress while edits land directly in your local git repository. Your computer still needs to stay awake and online while local turns execute.
What runs on the computer and what runs on the phone
The split between devices is strict. Your computer holds the project folder, git working tree, Node.js 24+, the Cohub CLI, and your own installed and signed-in copy of Claude Code with its local settings. Every file read, edit, and command executes on that machine as your OS user.
Your phone only runs a browser pointed at cohub.live (or Cohub's official iOS, Android, or desktop client, which wraps that same interface as a native shell around one web app). Both web and mobile views share the same Space: desktop drawers stack into mobile screens, and any chat you open on the phone shows the same files and turns.
Claude Code sessions you launch yourself in a local terminal with claude also mirror into the Space read-only. You can follow them from your phone, but you cannot reply to them or stop them from the web. To drive work from your phone, send the message in a Space chat with Claude Code selected so Cohub starts the turn.
Connecting the computer with Local Runtime
Install the Cohub CLI on the computer (Node.js 24 or later) and sign in:
npm install -g @neta-art/cohub-cli
cohub auth loginInstall and sign in to Claude Code on the same computer following the Claude Code setup guide. Cohub does not install or sign in Claude Code for you; Local Runtime drives the copy already on your machine.
Next, attach your project folder to a Space and require the Claude harness:
cd ~/northwind-notes
cohub runtime up --harness claudeThe first run offers to create a Space for the folder and asks for explicit consent—anyone who can post in that Space can trigger work on your computer as your system user, not limited to that folder, so invite only people you trust. Specifying --harness claude checks Claude Code at startup and prevents a turn from switching to another executor. Useful flags:
-d(--detach) keeps the Runtime in the background and prints the Space link, PID, and log path; stop it later withcohub runtime downwithout deleting the Space.--no-displayturns off screen sharing and skips that prompt.-yaccepts defaults and consent prompts automatically (running local work, syncing terminal chats, and sharing the screen unless--no-displayis added)—reserve it for scripts after reviewing what it accepts.
Before stepping away from the desk, verify that Claude Code is actually advertised:
cohub runtime statusConfirm Harness claude appears in the output (or check remote.capabilities.harnesses with --json); Harness connected alone only confirms the Runtime reached Cohub. Full Local Runtime commands live in the Cohub CLI Local Runtime reference.
Sending work from the phone and reading the result
Open the Space link on your phone browser, select Claude Code under Run with, and choose an Approval mode:
- Use local settings applies the permission rules already configured in Claude Code on your computer.
- Read only restricts the turn to reading and searching.
- Auto approval and Full access authorize broader actions depending on your local Claude Code config—keep them to repositories you can reset with git.
Whenever Claude Code wants to edit a file that is not already allowed, the Space asks you to approve the file change before writing.
Take a concrete example from a notes repository: notes/october-summary.md lists five sampling times in 12-hour format such as 8:30 AM, and atlas/check-notes.mjs prints 5 of 5 times need fixing until every time is 24-hour HH:MM. From the phone chat, send:
Convert the five 12-hour times in notes/october-summary.md to 24-hour HH:MM, then run node atlas/check-notes.mjsThe chat renders each Read, Edit, and Bash step as a card and finishes with the passing check:

Back at your computer, inspect the uncommitted working tree in git:
git diff
node atlas/check-notes.mjsgit diff isolates the five time cells and the script prints ✓ 5 times, all 24-hour and in atlas/data.json:

Commit once verified, or revert a file with git restore notes/october-summary.md. Additional rollback paths are covered in undoing AI agent changes.
When the computer is asleep or offline
Because Claude Code executes locally, your computer must stay awake, online, and running cohub runtime up while turns execute. If the machine sleeps or loses its network mid-turn, Local Runtime reconnects on its own once the connection returns, but work that was cut off does not replay automatically.
If your laptop regularly goes to sleep and you want tasks to run without keeping a home machine awake, move Claude Code into a Space's cloud sandbox instead—see running Claude Code in a cloud sandbox. If you want an agent to run on a fixed clock instead of waiting for manual phone messages, look at scheduling AI agent tasks.
What this page does not cover
- Desk CLI vs Space comparison: deciding which tasks stay in a local terminal and which belong in a Space is weighed in comparing Claude Code at your desk with a Space.
- Cloud sandbox installation: steps for installing and running Claude Code inside a hosted Linux sandbox live in running Claude Code in a cloud sandbox.
- Anthropic's Claude Code Remote Control: Anthropic offers a separate local-session link (
claude remote-control/claude rc, or/remote-controlin an open CLI, Claude Desktop, or VS Code session) that connects a runningclaudeprocess toclaude.ai/codeor the Claude mobile app. It requires a claude.ai Pro, Max, Ultra, Team, or Enterprise subscription and does not support API keys, Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, customANTHROPIC_BASE_URL, or enterprise Claude apps gateways. Cohub's Local Runtime setup on this page does not depend on Remote Control: pick Remote Control when you want that session insideclaude.ai/codeor the Claude app, and pick a Space when the chat should stay alongside project files, published Apps, and teammates.
Reference in the docs
This page: How to connect a project on your computer to a Cohub Space so a message from your phone runs Claude Code there, and how to check what it changed.
- CLI: installing the CLI, signing in, and the Local Runtime commands (runtime up, status, logs, down)
- Files & Sandbox: using a local folder as a Space's Runtime
- Product map: how the same Space and chats are laid out in a phone's browser
FAQ
Does my computer have to stay on?
Yes. Claude Code runs on that computer, so it has to be on, online and running cohub runtime up while you send work from your phone.
Can I continue a Claude Code chat I started in the terminal?
You can follow it in the Space, read-only, but not send messages into it or stop it from the web. Send new work from the Space chat with Claude Code selected.
Where do I see what Claude Code changed?
In the project folder on your computer: git diff shows the working-tree changes. In this example the task left them uncommitted.
Does Claude Code ask before changing files?
That depends on the approval mode and on Claude Code's own permission settings. When a change isn't already allowed, the Space asks whether to allow the file change.
Do I need Claude Code's Remote Control feature to use this?
No. This setup connects the project folder to a Space with cohub runtime up. Claude Code's Remote Control is Anthropic's separate link from claude.ai/code or the Claude app to a local session.
Related
- Picking a Claude Code alternative across terminal CLIs, vendor cloud, and Cohub
Both Claude Code and Codex CLI now offer official cloud sessions. Cohub works as a Claude Code alternative when you need multi-user collaboration, published web Apps, or Apache-2.0 self-hosting—and pairs with local CLIs via Local Runtime.
- How to run Claude Code in the cloud inside a Cohub Space
To run Claude Code in the cloud on Cohub, install it in a Space's sandbox with a startup script. The walkthrough checks CLI authentication with placeholder keys, then shows how to publish a server and recover project files with Saves.
- How to undo Claude Code changes with Git, checkpoints, or a Cohub Save
To undo AI agent changes, use Git for files you committed, Claude Code's /rewind for edits its file tools made in the session, and a Cohub Save for a whole Space. Cohub has no in-place restore yet: you diff the Save and copy files back from it.