Back to all articles
TutorialDecember 3, 2026·10 min read

Claude Code Desktop vs CLI - Which Settings and Sessions Carry Between Them (2026)

You've used Claude Code in the terminal for months. Your CLAUDE.md is tuned, your MCP servers are set up, and your permission rules are just right. Now you open the Code tab in the Claude desktop app to try parallel sessions in one window. Will it pick up all of that? Can you open yesterday's terminal session there? And why does one of your settings seem to do nothing?

Anthropic's Desktop documentation has a section written for exactly this reader, titled Coming from the CLI. It says Desktop "runs the same underlying engine with a graphical interface", and that the two "share configuration and project memory via CLAUDE.md files."

The short answer: in local sessions, Desktop and the CLI read the same configuration files, including CLAUDE.md, MCP servers in ~/.claude.json or .mcp.json, hooks, skills, and settings in ~/.claude/settings.json. Each keeps its own session list. You can move a CLI session into Desktop with /desktop, or pick one up from inside Desktop with /resume. A few settings behave differently in the Code tab, Desktop runs its own copy of Claude Code with its own version, and some CLI features, like scripting with --print, aren't available in Desktop.

This guide covers what Desktop and the CLI share, what stays separate, how to move sessions between them, which settings behave differently, the CLI flags and their Desktop equivalents, and how to keep your project context steady across both.

Claude Code Desktop vs CLI at a glance

DimensionClaude Code DesktopCLI
Project instructionsCLAUDE.md and CLAUDE.local.md, sharedSame files
Settings~/.claude.json and ~/.claude/settings.json, shared; some keys behave differentlySame files
MCP servers~/.claude.json, .mcp.json, plus claude_desktop_config.json~/.claude.json and .mcp.json
Session listIts own; can pick up CLI sessions with /resumeIts own; /desktop sends a session to Desktop
Claude Code versionIts own copy, updated by the appThe claude command you installed
PluginsPlugin manager UI/plugin command
ScriptingNot available--print and the Agent SDK
Plan usageShared across all Claude Code surfacesShared 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.md and CLAUDE.local.md in your project are used by both.
  • MCP servers configured in ~/.claude.json or .mcp.json work in both.
  • Hooks and skills defined in settings apply to both.
  • Settings in ~/.claude.json and ~/.claude/settings.json are shared. Permission rules, allowed tools, and other settings in settings.json apply 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.
  • fileSuggestion and respectGitignore. The @ file picker builds its own file list.
  • verbose and viewMode. 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.baseRef and 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:

  • --model becomes the model picker under the prompt box.
  • --resume and --continue become clicking a session in the sidebar, or /resume.
  • --permission-mode becomes the mode selector under the prompt box.
  • --add-dir becomes adding folders to a session.
  • --verbose becomes the Verbose view mode.
  • --allowedTools and --disallowedTools have no per-session equivalent, but permission rules in settings files still apply.
  • --print and --output-format aren'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.

The MemoryLake console showing the API keys screen, where a new key is created and copied for use in an agent
The MemoryLake console showing the API keys screen, where a new key is created and copied for use in an agent

Step 2: Upload your first memories

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

The MemoryLake workspace with the first documents uploaded, listing each file as it becomes searchable memory
The MemoryLake workspace with the first documents uploaded, listing each file as it becomes searchable memory

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.

The MemoryLake integrations screen listing the AI clients and agent frameworks that can be connected to the memory layer
The MemoryLake integrations screen listing the AI clients and agent frameworks that can be connected to the memory layer

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.

Frequently asked questions

Does Claude Code Desktop use my CLI settings?

Yes, in local sessions. Desktop and the CLI read the same configuration files, including ~/.claude/settings.json. Some keys behave differently in the Code tab.

Does Desktop read my CLAUDE.md?

Yes. CLAUDE.md and CLAUDE.local.md files in your project are used by both.

Can I open a CLI session in Desktop?

Yes. Run /desktop in the terminal, or close the session and type /resume in Desktop.

Do Desktop and the CLI share a session list?

No. Each keeps its own session list. A session you move to Desktop continues as the same session, so claude --resume still finds it.

Why is Desktop's Claude Code version different from my terminal's?

The Code tab runs its own copy of Claude Code, which the desktop app downloads and updates.

Does the CLI use MCP servers from Claude Desktop?

Not from claude_desktop_config.json. Copy them with claude mcp add-from-claude-desktop on macOS and WSL.

Is Claude Code Desktop or the CLI better for automation?

It depends on the task, but scripting with --print and the Agent SDK is CLI-only. Desktop is interactive only.