Skip to content
BENIBIX Learn

--desktop Flag

Also known as claude --desktop, Open in Claude Desktop

It opens this folder in the Claude Desktop app.

Think of it like

It is like you move a game from your small phone to the big TV.

Example

Lucy started a task in the terminal but wants to see the diffs side by side. She runs claude --desktop --continue, and the same chat opens in the app.

Why it matters

You can start in the terminal and move to the app when a bigger view helps.

Definition

--desktop opens the Claude Desktop app on the folder you are in, then exits. No session starts in the terminal. Add --continue to open your last session in the app, or --resume with an ID to open that one. It works on macOS and on Windows on x64, when you are signed in with a Claude plan.

Example code

bash
claude --desktop --continue
Move your last session into the app.
--desktop sends the session to the app.

Common mistake

Passing a prompt or other flags with it. The app starts the session itself, so it takes only --continue, --resume, --verbose and --debug.

Key takeaways

  1. 1
    Opens the app. Then exits.
  2. 2
    --continue. Brings the last chat.
  3. 3
    macOS, Windows x64. With a Claude plan.

Learn it properly