Skip to content
Esc
↑↓navigate↵open⌘Jpreview
Start
On this page

Continue between the CLI and the web

Move a conversation from Autohand Code CLI to Autohand Dev in the browser with /handoff web, and bring a web conversation back to your terminal with autohand transfer.

Overview

A handoff saves a private snapshot of your conversation and opens it on the other surface. You can move a session from Autohand Code CLI to Autohand Dev in the browser, and back again.

This is a conversation and workspace handoff, not a live connection. Local tools, processes, and stdio MCP servers stay on the CLI machine. To steer a running CLI session from your phone, use Mobile Handoff instead.

Run /handoff on its own to see the surfaces the current session can move to.

Before you start

  • Sign in to Autohand Code CLI with /login.
  • Start a conversation so there is an active session to hand off.
  • Use the same Autohand account on both surfaces.

Continue in the browser

In an active CLI session, run:

/handoff web

Autohand uploads the snapshot and opens https://dev.autohand.ai/new?transfer=…&account=…. Sign in with the same account, review the conversation and model, then choose Continue here. No prompt runs automatically.

Option Behavior
--workspace Also sends your GitHub repository, branch, and a patch of local commits, staged and unstaged changes, and non-ignored new files.
--no-open Prints the link without opening a browser.
--new Starts a new web conversation instead of returning to the one this session was imported from.

Include your workspace

/handoff web --workspace

Review your working directory before you use --workspace. Everything that is not ignored by Git goes into the patch. Autohand Dev restores the changes in a separate cloud workspace for you to review.

  • The repository’s origin remote must be a GitHub repository without credentials in the URL.
  • The repository must be connected to your account on the web.
  • Fetch the remote branches first. Autohand needs a base commit that the web workspace can get from GitHub, and local-only commits travel in the patch.
  • If the remote is unsupported or the snapshot is too large, the handoff fails without uploading a partial session.

Returning to a conversation

If the CLI session was itself imported from the web, /handoff web updates that original web conversation with your new messages. If the web conversation has moved on since you left, or the web version does not support returning, the snapshot opens as a new conversation instead. Pass --new to always start a new one.

Continue in the CLI

In an Autohand Dev chat, type /handoff cli or choose Conversation options → Continue in CLI. Copy the command it shows and run it in the folder where you want to continue:

autohand transfer <transfer-id> --account <account-id>

The CLI downloads the snapshot, shows the conversation title and message count, and asks you to confirm. When the transfer includes repository changes, you can choose Review repository changes to read the patch first. It then resumes the saved conversation with the same model. Imported messages do not run again. Send a new message to continue.

For a repository transfer, the CLI creates a separate checkout inside the current folder and applies the patch there. It does not overwrite your existing repository. For a conversation without a repository, the folder becomes the workspace.

Option Behavior
--account <id> Required. The Autohand account shown in the web transfer.
--path <directory> Parent folder for the new checkout, or the workspace for a conversation without a repository. Defaults to the current folder.
--import-only Saves the local session without starting the interactive CLI, and prints its session ID and workspace.
--accept Skips the confirmation prompt. Use it after you have reviewed the transfer on the web. Required when there is no interactive terminal.
--offline Skips the model catalog refresh when resuming. Downloading the transfer still needs a connection.
--config <path> Uses a specific Autohand config file.

Running the same transfer again reopens the session you already imported. Run autohand transfer --help for the full list.

Limits

Limit Value
Expiry 24 hours. Expired or revoked links must be exported again.
Snapshot size 8 MB, including repository changes and images.
Messages Up to 500 saved user and assistant messages.
Images Embedded PNG, JPEG, WebP, or GIF, up to four per message and 1 MB each.

Remote image URLs and other structured attachments are rejected rather than dropped silently. A transfer is never truncated to fit.

Privacy

  • Transfers are private to the signed-in user and account.
  • Snapshots contain your user and assistant messages and any embedded images. They do not include tool calls, reasoning, runtime credentials, or MCP configuration.
  • The source conversation stays available after a handoff in either direction.
  • Autohand Dev can reuse account connectors with hosted HTTPS endpoints. Local MCP servers still run only on the CLI machine.

Troubleshooting

Message What to do
Sign in first with /login Sign in, then run /handoff web again.
No active session to hand off Send a prompt first, then run /handoff web.
No Git repository to transfer Run /handoff web without --workspace, or run it inside a Git repository.
Choose a GitHub repository without embedded credentials Point origin at a plain https://github.com/owner/repo or git@github.com:owner/repo remote.
Fetch this repository’s remote branches before transferring its changes Run git fetch, then try again.
This transfer exceeds the 8 MB limit Remove large files from the patch, or hand off without --workspace.
Use –accept to import noninteractively Review the transfer on the web, then rerun with --accept.

Last updated on

Was this helpful?

Send Feedback

Help us improve this documentation page. Your feedback is valuable.

We'll only contact you if we need clarification