---
title: "Run Claude Code from your phone on your own computer"
description: "Send tasks to Claude Code from your phone browser while it runs on your computer via cohub runtime up, inspect git diff, and see what happens offline."
lang: "en"
canonical: "https://cohub.live/use-cases/claude-code-from-phone"
image: "https://cohub.live/_seo/og/use-cases/claude-code-from-phone.png"
updated: "2026-12-02"
---

# 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](https://cohub.live/use-cases/native-shell-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:

```bash
npm install -g @neta-art/cohub-cli
cohub auth login
```

Install and sign in to Claude Code on the same computer following the [Claude Code setup guide](https://code.claude.com/docs/en/setup). 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:

```bash
cd ~/northwind-notes
cohub runtime up --harness claude
```

The 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 with `cohub runtime down` without deleting the Space.
- `--no-display` turns off screen sharing and skips that prompt.
- `-y` accepts defaults and consent prompts automatically (running local work, syncing terminal chats, and sharing the screen unless `--no-display` is added)—reserve it for scripts after reviewing what it accepts.

Before stepping away from the desk, verify that Claude Code is actually advertised:

```bash
cohub runtime status
```

Confirm `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](https://cohub.live/docs/developers/cli).

## 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:

```text
Convert the five 12-hour times in notes/october-summary.md to 24-hour HH:MM, then run node atlas/check-notes.mjs
```

The chat renders each Read, Edit, and Bash step as a card and finishes with the passing check:

![A Space chat at phone width: the request to convert the five 12-hour times in notes/october-summary.md and run the notes check, then Read, Edit and Bash steps marked done, and the reply that the times are 24-hour and the check passes, tagged Claude Code](https://cohub.live/_seo/img/ui/ui-claude-local-618-chat-mobile-light.webp)

The Space chat at phone width: Claude Code reads the notes, edits them, runs the check and replies.

Back at your computer, inspect the uncommitted working tree in git:

```bash
git diff
node atlas/check-notes.mjs
```

`git diff` isolates the five time cells and the script prints `✓ 5 times, all 24-hour and in atlas/data.json`:

![Terminal in /home/node/northwind-notes: git diff of notes/october-summary.md, five Sampling runs rows going from times like 8:30 AM to 08:30, then node atlas/check-notes.mjs printing ✓ 5 times, all 24-hour and in atlas/data.json](https://cohub.live/_seo/img/cli/local-repo-git-diff-618-dark.webp)

Local repository changes after the Claude Code turn: git diff of the working tree on the computer, not a Save comparison.

Commit once verified, or revert a file with `git restore notes/october-summary.md`. Additional rollback paths are covered in [undoing AI agent changes](https://cohub.live/use-cases/undo-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](https://cohub.live/guides/run-claude-code-in-cloud). If you want an agent to run on a fixed clock instead of waiting for manual phone messages, look at [scheduling AI agent tasks](https://cohub.live/use-cases/schedule-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](https://cohub.live/compare/claude-code-alternative).
- **Cloud sandbox installation**: steps for installing and running Claude Code inside a hosted Linux sandbox live in [running Claude Code in a cloud sandbox](https://cohub.live/guides/run-claude-code-in-cloud).
- **Anthropic's Claude Code Remote Control**: Anthropic offers a separate local-session link (`claude remote-control` / `claude rc`, or `/remote-control` in an open CLI, Claude Desktop, or VS Code session) that connects a running `claude` process to `claude.ai/code` or 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, custom `ANTHROPIC_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 inside `claude.ai/code` or 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](https://cohub.live/docs/developers/cli): installing the CLI, signing in, and the Local Runtime commands (runtime up, status, logs, down)
- [Files & Sandbox](https://cohub.live/docs/workspace/files-and-sandbox): using a local folder as a Space's Runtime
- [Product map](https://cohub.live/docs/learn/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](https://cohub.live/compare/claude-code-alternative): 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](https://cohub.live/guides/run-claude-code-in-cloud): 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](https://cohub.live/use-cases/undo-ai-agent-changes): 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.

## Sources

- [Cohub docs: CLI (install, sign in, Local Runtime)](https://cohub.live/docs/developers/cli)
- [Cohub docs: Files & Sandbox (local folder as Runtime)](https://cohub.live/docs/workspace/files-and-sandbox)
- [Cohub docs: Product map (layout on mobile)](https://cohub.live/docs/learn/product-map)
- [Claude Code docs: Set up Claude Code](https://code.claude.com/docs/en/setup)
- [Claude Code docs: Remote Control](https://code.claude.com/docs/en/remote-control)
- [Claude Code docs: Permissions](https://code.claude.com/docs/en/permissions)

Updated Dec 2, 2026
