# --desktop Flag

> It opens this folder in the Claude Desktop app.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** claude --desktop, Open in Claude Desktop

## Think of it like

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

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

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.

## Example code

```bash
claude --desktop --continue
```

Move your last session into the app.

## Why it matters

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

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

## Three principles

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

## Related terms

- [Claude Code Surface](https://learn.benibix.com/term/ai/claude-code-surface)
- [--resume Flag](https://learn.benibix.com/term/ai/resume-flag)
- [Claude Code Session](https://learn.benibix.com/term/ai/claude-code-session)

## Taught in

- [Theme, View and IDE](https://learn.benibix.com/learn/ai-claude-code-commands/theme-view-and-ide): Claude Code Commands, 10/17

![Where each launch flag sends the session: the background, the app, your machines, your editor.](https://learn.benibix.com/diagrams/flag-launch.svg)

---

Source: https://learn.benibix.com/term/ai/desktop-flag
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
