---
title: "Use Autohand Code Desktop with the CLI and Web"
description: "Open projects from a terminal with ad, share folders with Autohand Code CLI, and continue a Desktop conversation in Autohand Code Web."
slug: "working-with-autohand-code/code/desktop/cli-and-web"
sidebar:
  label: "CLI and Web"
---

## Share a project with the CLI

Open the same folder in Desktop and in your terminal. Edits from either side change the same files. Use a separate worktree if two tasks will edit at the same time.

Autohand Code CLI is the agent bundled with Desktop, but its terminal interface and Desktop's threads are different surfaces. CLI slash commands, hooks, and configuration do not automatically become Desktop controls. For terminal workflows, see the [Autohand Code CLI guide](/working-with-autohand-code/cli) and the [CLI reference](/working-with-autohand-code/cli-reference).

## Open a project from a terminal [#launch-from-a-terminal]

Desktop can install a small `ad` command that opens a folder in the app.

1. Choose **Install ad command** in the welcome tour, or in **Settings > General > Terminal command**.
2. If Desktop says the command folder is not on your `PATH`, add the folder it shows and open a new terminal.
3. Run it from a project folder:

```bash
cd /path/to/project
ad .
```

Or pass a folder:

```bash
ad /path/to/project
```

`ad` opens the folder in Desktop; it is not the `autohand` CLI. It installs to `~/.local/bin/ad` on macOS and Linux, and to `.local\bin\ad.cmd` in your user folder on Windows. Desktop never replaces an existing `ad` command that it did not create.

## Import rather than sync

Desktop can import your Claude Code and Codex projects and conversations from this machine. Check the selection before you import. Your repository stays in place, imported history can be incomplete, and it does not sync with the original CLI afterwards. Ask the agent to read the current files before continuing imported work. See [projects](/working-with-autohand-code/code/desktop/projects#bring-existing-conversations).

## Continue in Autohand Code Web [#continue-in-autohand-code-web]

Use **Hand off > Continue in Autohand Web** in the thread header to carry a conversation to [Autohand Code Web](/guides/autohand-dev), in your browser or on your phone.

<img className="ah-shot-light" src="/images/desktop/app/handoff-light.webp" alt="Hand off menu with Codex and Claude options for this thread or a new thread, and Continue in Autohand Web at the bottom." width="2880" height="1800" />
<img className="ah-shot-dark" src="/images/desktop/app/handoff-dark.webp" alt="Hand off menu with Codex and Claude options for this thread or a new thread, and Continue in Autohand Web at the bottom." width="2880" height="1800" />

Continue in Autohand Web sits at the bottom of the Hand off menu, under the options for other local agents.

1. Choose **Continue in Autohand Web**. Desktop prepares a private copy and shows the title, agent, model, and message count.
2. Optional: turn on **Include workspace changes** to carry your GitHub repository and local changes. This includes local commits, staged and unstaged changes, and new files Git does not ignore. Review the list before you continue.
3. Choose **Continue in Autohand Web**.
4. Sign in to Autohand Code Web with the same Autohand account and choose a model to continue. The transfer expires after 24 hours.

<img src="/images/desktop/app/codeweb-phone.webp" alt="Autohand Code Web on a phone, asking 'What are we building?' with a prompt field, Sign up and Sign in buttons, and shortcuts such as Explore a repository and Debug an issue." width="1170" height="1992" loading="lazy" style={{ maxWidth: "320px" }} />

Autohand Code Web on a phone. A handed-off conversation continues here after you sign in with the same account.

The conversation in Desktop stays where it is, and so do your local checkout and permissions. Without **Include workspace changes**, only the conversation and its images are copied.

Handing off to Autohand Code Web is different from running a thread in a [cloud sandbox](/working-with-autohand-code/code/desktop/sandboxes), which keeps the conversation in Desktop and runs the agent remotely.
