Claude Code Desktop vs CLI at a glance
| Dimension | Claude Code Desktop | CLI |
|---|---|---|
| Project instructions | CLAUDE.md and CLAUDE.local.md, shared | Same files |
| Settings | ~/.claude.json and ~/.claude/settings.json, shared; some keys behave differently | Same files |
| MCP servers | ~/.claude.json, .mcp.json, plus claude_desktop_config.json | ~/.claude.json and .mcp.json |
| Session list | Its own; can pick up CLI sessions with /resume | Its own; /desktop sends a session to Desktop |
| Claude Code version | Its own copy, updated by the app | The claude command you installed |
| Plugins | Plugin manager UI | /plugin command |
| Scripting | Not available | --print and the Agent SDK |
| Plan usage | Shared across all Claude Code surfaces | Shared across all Claude Code surfaces |
Checked against each vendor's documentation on December 3, 2026.
What Desktop and the CLI share
In local sessions, Anthropic's documentation says, "Desktop and CLI read the same configuration files, so your setup carries over". It lists:
CLAUDE.mdandCLAUDE.local.mdin your project are used by both.- MCP servers configured in
~/.claude.jsonor.mcp.jsonwork in both. - Hooks and skills defined in settings apply to both.
- Settings in
~/.claude.jsonand~/.claude/settings.jsonare shared. Permission rules, allowed tools, and other settings insettings.jsonapply to Desktop sessions.
Rules work the same way, since they live in your project files. For how .claude/rules and path-scoped rules load, see what Claude Code rules are.
Your plan usage is also shared. Desktop's documentation says the usage ring shows plan usage that's "shared across all your Claude Code surfaces."
Some settings cover both clients explicitly. For example, setting disableRemoteControl to true in ~/.claude/settings.json applies to "Any session on this computer, including the CLI".
In a local Desktop session, the session details panel can also show Instructions and Memory, where you can view and edit the folder's CLAUDE.md and auto memory. Anthropic says this needs a Pro, Max, Ultra, Team, or Enterprise plan and a recent Desktop version.
What stays separate
Session lists
Anthropic's documentation says that "Each keeps its own session list". A session you start in the terminal doesn't appear in Desktop's sidebar on its own. You bring it over, as described below.
The Claude Code version
This one is easy to miss. Anthropic's documentation says that in a local session, "the Code tab runs its own copy of Claude Code, which has its own version number." The desktop app downloads and updates that copy, so it can differ from the claude command in your terminal, and updating one doesn't update the other.
To check Desktop's version, type /status in a local session in the Code tab and read the Claude Code row. To update it, use Check for Updates in the app's menu, then start a new session. This matters when a feature depends on a version, such as the 400K auto-compact default that started with v2.1.334.
Extra MCP servers in Desktop
Desktop also loads MCP servers from claude_desktop_config.json, the Claude Desktop chat app's config, into local Code tab sessions. The CLI doesn't read that file. On macOS and WSL, Anthropic says you can run claude mcp add-from-claude-desktop to copy those servers into ~/.claude.json.
Models and providers
In Desktop, you choose the model from the model picker under the prompt box. The CLI uses --model or settings. On providers, the CLI works with Amazon Bedrock, Google Cloud's Agent Platform, and Microsoft Foundry. Desktop connects to Anthropic's API by default, with separate guides for gateways and other providers.
Settings that behave differently in the Code tab
Because the Code tab replaces the terminal interface, some keys in your settings have a different effect, or none, in a local Desktop session. Anthropic's documentation says they still apply in the terminal, "so you can leave them set." A few examples from its table:
defaultShell. Commands you type after!run in a shell the app chooses: your login shell on macOS and Linux, PowerShell on Windows.fileSuggestionandrespectGitignore. The@file picker builds its own file list.verboseandviewMode. You choose the view under Transcript view in the session menu.askUserQuestionTimeout. The timeout doesn't apply, so a question from Claude stays open.worktree.baseRefand related keys. They're not used for the worktree Desktop creates for a session.skipDangerousModePermissionPrompt. Desktop has its own confirmation for Bypass permissions mode.
If a setting seems to be ignored in Desktop, check this list first.
Some terminal commands behave differently too. Commands that open an interactive panel in the terminal, such as /permissions, reply that they aren't available in this environment. /config opens Desktop's settings instead.
Move a session from the CLI to Desktop
There are three ways, all documented by Anthropic.
From inside a terminal session. Run /desktop. Claude Code saves your session, opens it in the desktop app, and exits. It works on macOS, Windows, and Linux outside WSL when you sign in with a Claude subscription, with version requirements on ARM64 Windows and Linux. It isn't available with API key authentication or on third-party cloud providers.
From your shell. Run claude --desktop to open Desktop on the current directory. Add --continue for the most recent conversation there, or --resume with the session ID that /status shows.
From inside Desktop. Close the session in the terminal, then type /resume in Desktop's prompt box. Desktop lists the sessions you started from the CLI on this computer. Select one and it continues with its full conversation and context.
Anthropic notes that Desktop "continues the same session rather than a copy, so claude --resume in the terminal still finds it afterwards." It also says Claude Code doesn't move a session that's open in another terminal or still running in the background.
CLI flags and their Desktop equivalents
Anthropic's documentation maps common flags to Desktop controls:
--modelbecomes the model picker under the prompt box.--resumeand--continuebecome clicking a session in the sidebar, or/resume.--permission-modebecomes the mode selector under the prompt box.--add-dirbecomes adding folders to a session.--verbosebecomes the Verbose view mode.--allowedToolsand--disallowedToolshave no per-session equivalent, but permission rules in settings files still apply.--printand--output-formataren't available. Desktop is interactive only.
What's only in one of them
Only in the CLI: scripting with --print and the Agent SDK, all permission modes including dontAsk, agent teams, and the experimental Code Mode, which Desktop sessions start without.
Only in Desktop: sidebar tabs for multiple sessions, file attachments for images and PDFs, scheduled tasks, Dispatch sessions, an iOS Simulator pane, and a plugin manager UI.
Anthropic's own rule of thumb: use Desktop to manage parallel sessions in one window, arrange panes, or review changes visually, and the CLI for scripting, automation, or a terminal workflow.
What people try first
Looking for terminal sessions in Desktop's sidebar. Use /desktop or /resume to bring them over.
Updating the CLI and expecting Desktop to match. Desktop runs its own copy.
Wondering why a setting does nothing. Check the list of keys that behave differently in the Code tab.
Expecting Desktop's chat-app MCP servers in the CLI. Copy them with claude mcp add-from-claude-desktop.
Moving a session that's still running. Close it in the terminal first.
The Fix: One setup that works in both
Step 1: Keep shared config in shared files
Put instructions in CLAUDE.md, MCP servers in .mcp.json or ~/.claude.json, and permission rules in ~/.claude/settings.json.
Step 2: Check Desktop's version
Run /status in the Code tab and update the app when a feature needs a newer version.
Step 3: Move sessions deliberately
Close the terminal session, then use /resume in Desktop, or run /desktop from the terminal.
Step 4: Write the context that isn't configuration
Decisions, constraints from teammates, and the reasons behind your approach belong in a short note you maintain, not in settings.
Setting this up in MemoryLake
Desktop and the CLI share your project files on one computer, so CLAUDE.md and settings carry over. Context that lives only in a session's conversation stays with that session, and a cloud session, another computer, or another assistant starts without it.
MemoryLake is a memory layer for that context, kept in one place you maintain and available to the assistants you connect, such as Claude Code, Codex, and ChatGPT.
You write the entries yourself. Nothing is read out of, written to, or deleted from your CLAUDE.md files, auto memory, settings, MCP configuration, or Claude Code sessions, or from any vendor's store. Desktop and the CLI work the way Anthropic describes them.
Step 1: Create an API key
Sign in and generate a key from the dashboard. Keep it somewhere private.

Step 2: Upload your first memories
Start with the note from Step 4 of the fix: decisions, constraints, and reasons that aren't rules.

Step 3: Connect your AI & agents
Connect Claude Code, Codex, ChatGPT, and the other assistants you use, so the same context is available in each.

What this changes in practice
The first difference is that switching clients doesn't mean re-explaining your project. Your configuration already carries over, and your written context does too.
The second is that sessions matter less. If a session stays in one client, the decisions from it are still available.
The third is consistency beyond one machine. A cloud session or a second computer starts from the same notes.
Best practices for using Claude Code Desktop and the CLI together
Keep configuration in project and user files. Both clients read them.
Check /status in Desktop. Its Claude Code version can differ from your terminal's.
Close a terminal session before resuming it in Desktop. Running sessions don't move.
Review settings that behave differently. Leave them set for the terminal.
Use the CLI for scripts. Desktop is interactive only.
Copy chat-app MCP servers if you need them in the CLI. Use claude mcp add-from-claude-desktop.
Write down decisions outside the conversation. Sessions stay in their own lists.
Conclusion
Claude Code Desktop runs the same engine as the CLI with a graphical interface. In local sessions, both read the same CLAUDE.md files, MCP servers in ~/.claude.json and .mcp.json, hooks, skills, and settings, and both draw on the same plan usage. Desktop adds MCP servers from the chat app's config, and some settings keys behave differently in the Code tab.
The CLI keeps its own session list and its own version of Claude Code. Move a session over with /desktop, claude --desktop, or /resume in Desktop, and it continues as the same session. Use the CLI for scripting and automation, use Desktop for parallel sessions and visual review, and keep the reasoning behind your work in a place both, and your other tools, can reach.