Download for macOS
Download for Windows
Get Claude for Linux (beta)
- Review and comment on diffs, then watch the resulting PR through CI
- Preview your running app in the Browser pane while Claude verifies its own changes, and open external sites alongside it
- Watch Claude run and test your iOS app in the iOS Simulator pane
- Arrange panes for the chat, diff, browser, terminal, and file editor side by side
- Ask a side question that uses the session’s context without derailing it
- Let Claude check on, message, or archive your other sessions
- Connect external tools like GitHub, Slack, and Linear
- Let Claude open apps and control your screen
- Run on your machine, in the cloud, or over SSH
Start a session
Before you send your first message, choose the environment, project folder, permission mode, and model in the row under the prompt box:- Environment: use the environment selector, the first control in the row, to choose where Claude runs. See environment configuration.
- If a new session has no environment selector under the prompt box, follow the earlier layout’s steps.
- Project folder: click the project folder control, next to the environment selector, to choose the folder Claude works in.
- Cloud session: select repositories instead of a folder
- Saved local or SSH environment: the environment already holds its folders, so the row shows no project folder control. To change the folders, edit the environment.
- Permission mode: use the mode selector to choose how much autonomy Claude has. You can change the permission mode during the session.
- Model: pick a model from the model picker toward the right end of the row. You can change the model during the session.
Work with code
Give Claude the right context, control how much it does on its own, and review what it changed.Use the prompt box
Type what you want Claude to do and press Enter to send. Claude reads your project files, makes changes, and runs commands based on your permission mode. You can redirect Claude at any point: click the stop button to interrupt immediately, or type a correction and press Enter to send it without stopping the running action. Claude reads the correction as soon as the current action completes and adjusts before its next step. Click the + button next to the prompt box for file attachments, skills, connectors, and plugins.Accept a suggested prompt
After Claude replies, the Code tab can show a suggested next prompt as gray text in the empty prompt box. Claude Code generates each suggestion from your conversation with a short background request that counts toward your plan’s usage limits or your API costs.- Use the suggestion: press Tab or Right arrow to place it in the prompt box, edit it if you want, then press Enter to send it. Pressing Enter before you accept the suggestion doesn’t send it.
- Write your own prompt: start typing. The suggestion shows only while the prompt box is empty and has no attached files.
Add files and context to prompts
To give Claude a file, @mention it or attach it in the prompt box:- @mention files: type
@followed by a filename to add a file to the conversation context.- In a cloud session:
@can list files only after you send your first message. If@lists none, send your first message without the file, then @mention the file in your next message.
- In a cloud session:
- Attach files: attach images, PDFs, and other files to your prompt from the + button next to the prompt box, or drag and drop files directly into the prompt. This is useful for sharing screenshots of bugs, design mockups, or reference documents.
- In a WSL session: if the + menu shows Add image instead of Add files or photos, you can attach only images. To give Claude any other file from the session’s folder, @mention it.
Choose a permission mode
Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch permission modes at any time using the mode selector in the row under the prompt box. To approve each change yourself, switch to Manual. To set a default mode for new local sessions, addpermissions.defaultMode to your settings file. The desktop app reads the same settings files as the CLI. A mode you pick in the selector is remembered per folder and takes precedence over defaultMode for that folder, except Plan, which applies to the current session only.
dontAsk permission mode is available only in the CLI.
Cloud sessions support Accept edits, Plan, and Auto. Accept edits corresponds to default mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Manual. Bypass permissions isn’t available in cloud sessions, including sessions in a self-hosted environment.
Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
Auto mode availability
Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5, or a Fable model. Organization administrators can turn auto mode off with thedisableAutoMode key in managed settings.
In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see Auto mode on Bedrock, Agent Platform, or Foundry for the supported models.
Preview your app
Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. In a local session, click an HTML, PDF, or video path in the chat to open it in the Browser pane.- Interact with your running app directly in the Browser pane
- Watch Claude verify its own changes automatically: it takes screenshots, inspects the DOM, clicks elements, fills forms, and fixes issues it finds
- Start or stop servers, or stop them all at once, from the Dev servers menu in the Browser pane’s header
- Choose whether the Browser keeps cookies after you quit the app with Keep cookies in the Browser pane’s ⋮ menu, so you don’t have to sign in again during development
.claude/launch.json to match your setup. See Configure preview servers for the full reference.
To clear the Browser’s saved data, select Clear browsing data in the Browser pane’s ⋮ menu. To turn the Browser off entirely, turn off Browser tools in Settings > Claude Code.
Browse external sites
The Browser pane is a tabbed browser, so you can open documentation, issue trackers, or any other site next to your running app. To open the Browser, press Cmd+Shift+B on macOS or Ctrl+Shift+B on Windows, or click Browser in the session’s title bar. You can sign in to sites in the pane, including popup sign-in flows such as Google OAuth. The first time you click an external link in the chat, a dialog asks whether links open in the Browser pane or in your default browser. To change your choice later, use Open links in built-in browser in the Browser pane’s ⋮ menu. Cmd-click on macOS or Ctrl-click on Windows opens a link in your default browser directly. Claude can read and interact with external pages using the same tools it uses to verify your app, with two additional safety checks:- Safety classifiers review Claude’s write actions on external pages, such as clicking and typing, in every permission mode. These are the same classifiers auto mode uses, and when they flag an action, you get a permission prompt regardless of mode.
- In permission modes other than Auto and Bypass permissions, a domain allowlist check also applies before Claude navigates to a new site.
Approve Claude’s actions on a site
The first time Claude acts on an external site, a permission card appears and Claude waits for your choice: Allow once, Always allow, or Deny. Allow once approves the action without saving anything. Always allow saves the approval for that site on your device, and you can revoke it in Settings. Each site needs its own approval, including subdomains. Your local dev servers and project files don’t need approval, so auto-verify keeps working without prompts. Even on an approved site, Claude won’t purchase items, create accounts, or bypass CAPTCHAs without your input. Browsing in the Browser pane uses the same safety model as the Claude in Chrome extension. See Using Claude in Chrome safely for how Claude handles sensitive sites and risky actions.Choose between the Browser and the Chrome extension
The Browser pane uses a clean browser profile, separate from your personal browser, with none of your saved logins or history. Use it for building and testing your app and for sites that don’t need your identity. When you want Claude to act as you in your logged-in sessions, use the Claude in Chrome extension instead, which shares your browser’s login state.Restrict external browsing for your organization
The Browser follows the same site allowlist and blocklist controls as the Claude in Chrome extension. If your organization already configured those lists for the extension, the Browser respects them automatically. Administrators can also turn off Claude’s tools on external pages with thebrowserExternalPageTools managed setting. With tools disabled, users can still visit external sites; Claude’s tools can’t read or act on them.
To turn off external browsing entirely, set the disableBrowserExternalNavigation managed setting to true. This blocks all external navigation in the Browser, including sites on your organization’s allowlist; localhost dev servers and file previews keep working. Use browserExternalPageTools to let users keep browsing external sites without Claude’s tools, and disableBrowserExternalNavigation to block external sites for both users and Claude.
Review changes with diff view
After Claude makes changes to your code, the diff view lets you review modifications file by file before creating a pull request. To open the diff view, click the line counts, such as+12 -1, in the Changes card of the session details panel. You can also click Changes in the session’s title bar.
To comment on specific lines, click any line in the diff to open a comment box. Type your feedback and press Enter to add the comment. After adding comments to multiple lines, submit all comments at once:
- macOS: press Cmd+Enter
- Windows: press Ctrl+Enter
Review your code
To have Claude review your changes before you commit, enter/code-review in the prompt box. The findings arrive in the conversation when the review completes.
In local, SSH, and WSL sessions, the findings appear as a Code review card, grouped by file. Use the card to act on them:
- Click Walk through in diff to open the diff view and step through the findings one at a time. A finding in the current diff appears at its line, where you can click Fix this one or dismiss it.
- Click Apply fixes to ask Claude to fix the findings that are still open.
/code-review looks for and the arguments it takes, see Review locally with /code-review.
Monitor pull request status
To have Claude fix failing checks, or to have GitHub merge the pull request, turn on Auto-fix or Merge when ready. After you open a pull request, it appears in the Changes card of the session details panel with the status of its CI checks. Open the ⋮ menu beside its title:- Auto-fix: in a local session, Claude also addresses new review comments that someone other than you leaves. The comment’s author has to be the repository’s owner, an organization member, a collaborator, or a GitHub App.
- Merge when ready: turns on GitHub’s auto-merge for the PR. In a local session, Desktop requests a squash merge unless the base branch uses a merge queue.
- In SSH and WSL sessions: Merge when ready is disabled, so turn on auto-merge for the pull request on GitHub
- If the repository doesn’t allow auto-merge: Merge when ready doesn’t turn on, so enable auto-merge in your GitHub repository settings first
- Earlier layout: once the session has a pull request, click CI on its status bar.
gh) to be installed and authenticated on your machine. If gh is not installed, Desktop prompts you to install it the first time you try to create a PR.In an SSH session, set up git and gh on the remote machine before you click Create PR, because Claude pushes the branch and runs gh pr create there. Install gh there yourself, because Desktop doesn’t prompt you to in an SSH session. Then check there that git push works and that gh auth status reports that you are logged in.Arrange your workspace
The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the iOS Simulator on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press Cmd+\ on macOS or Ctrl+\ on Windows to close the focused pane. Click Terminal, Changes, or Browser in the session’s title bar to open the terminal, diff, or Browser pane. The ⋮ menu beside them opens more panes, such as Files, and holds those buttons when the window is too narrow to show them. To work across screens, pop a pane such as the diff or terminal out into its own window, and dock it back when you’re done. Claude keeps working in the main window.See session details
The session details panel is a set of cards beside the chat that show where the session runs, what it changed, and what it’s running. The panel appears after you start a session, while the chat is wide enough for it.Hide or show the session details panel
To hide or show the panel, click Hide session rail or Show session rail in the session’s title bar, or in the bar’s ⋮ menu when the window is narrow. If you still don’t see the panel, check which Code tab layout you have.Run commands in the terminal
The integrated terminal lets you run commands alongside your session without switching to another app. Click Terminal in the session’s title bar or press Ctrl+` on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands likenpm test or git status see the same files Claude is editing. To open a second terminal tab, click + in the terminal pane header or right-click a folder in the chat to choose Open in terminal.
If a WSL session has no terminal, see If the terminal or connectors are unavailable. The terminal is available in local and SSH sessions, with a limit on Windows remote machines.
Open and edit files
To open a file Claude mentions, click its path in the chat. To edit a file yourself, use the file pane:- Local sessions: you can edit files inside the session’s working directory, except some view-only ones such as
.mcp.jsonand.claude/settings.json. To change one, open it in another app. - Cloud, SSH, and WSL sessions: the file pane is view-only, so ask Claude to make edits.
Save edits in the file pane
By default, your edits in the file pane save on their own, so the pane shows no Save button. To save your edits yourself, uncheck Auto save in the pane’s ⋮ menu. With Auto save off, click Save after you change a file to write your edits, or Cancel to revert them. If the pane warns that the file changed on disk, click Override to write your edits over the version on disk, or Discard to drop your edits.Open files in other apps
Right-click any file path in the chat, diff viewer, or file pane to open a context menu:- Attach as context: add the file to your next prompt
- Open in: open the file in an installed editor such as VS Code, Cursor, or Zed
- Show in Finder on macOS, Show in Explorer on Windows: open the containing folder
- Copy path: copy the absolute path to your clipboard
Switch view modes
View modes control how much detail appears in the chat transcript. To switch view modes, open the session menu from the caret beside the session title and select Transcript view, or press Ctrl+O on macOS or Windows to cycle through them. The Thinking mode appears in the menu only after Claude has produced thinking in the session you’re viewing.Keyboard shortcuts
Press Cmd+/ on macOS or Ctrl+/ on Windows to see all shortcuts available in the Code tab. The table in this section shows the macOS keys. On Windows and Linux, change these keys:- Cmd+Option: press Alt
- Cmd: press Ctrl
Shift+Tab doesn’t cycle permission modes as it does in the terminal’s interactive mode.
Check usage
Click the usage ring next to the model picker to see your current context window usage and your plan usage for the period. Context usage is per session; plan usage is shared across all your Claude Code surfaces.Let Claude use your computer
Computer use lets Claude open your apps, control your screen, and work directly on your machine the way you would. Ask Claude to interact with a desktop tool that has no CLI, or automate something that only works through a GUI. For running and testing iOS apps, Desktop opens the dedicated iOS Simulator pane instead of controlling your screen; the pane works without enabling computer use.When computer use applies
Claude has several ways to interact with an app or service, and computer use is the broadest and slowest. It tries the most precise tool first:- If you have a connector for a service, Claude uses the connector.
- If the task is a shell command, Claude uses Bash.
- If the task is browser work and you have Claude in Chrome set up, Claude uses that.
- If the task is running or testing an iOS app, Claude uses the iOS Simulator pane, which doesn’t use screen control.
- If none of those apply, Claude uses computer use.
Enable computer use
Computer use is off by default. If you ask Claude to do something that needs it while it’s off, Claude tells you it could do the task if you enable computer use in Settings.Update the desktop app
Turn on the toggle
Grant macOS permissions
- Accessibility: lets Claude click, type, and scroll
- Screen Recording: lets Claude see what’s on your screen
App permissions
The first time Claude needs to use an app, a prompt appears in your session. Click Allow for this session or Deny. Approvals last for the current session, or 30 minutes in Dispatch-spawned sessions. The prompt also shows what level of control Claude gets for that app. These tiers are fixed by app category and can’t be changed:- Denied apps: add apps here to reject them without prompting. Claude may still affect a denied app indirectly through actions in an allowed app, but it can’t interact with the denied app directly.
- Unhide apps when Claude finishes: when computer use isn’t running in the background, Claude hides your other windows while it works so it interacts with only the approved app. When Claude finishes, hidden windows are restored unless you turn this setting off.
Manage sessions
Each session is an independent conversation with its own context and changes. You can run multiple sessions in parallel, branch off side chats, let Claude check on and message your other sessions, send work to the cloud, or let Dispatch start sessions for you from your phone.Work in parallel with sessions
Click + New in the sidebar, or press Cmd+N on macOS or Ctrl+N on Windows, to work on multiple tasks in parallel. Press Ctrl+Tab and Ctrl+Shift+Tab to cycle through sessions in the sidebar. To view two sessions at once, hold Cmd on macOS or Ctrl on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press Cmd+\ on macOS or Ctrl+\ on Windows to close the focused pane and return to a single session.Run a session in its own worktree
In a project that’s a Git repository, turn on Worktree before you start a session to run it in its own Git worktree, an isolated copy of the project. By default, Worktree is off and Claude works in the project folder itself. Click the project folder control in the row under the prompt box and turn on Worktree.- With a saved environment: set Worktree when you create or edit the environment
- Earlier layout: select the worktree checkbox beside the branch name, above the prompt box
<project-root>/.claude/worktrees/ by default. To store them in a custom directory instead:
- Local sessions: set Worktree location in Settings > Claude Code
- SSH sessions: set Worktree folder on the SSH connection
.env in new worktrees, create a .worktreeinclude file in your project root. See What worktrees share with the main checkout for where a worktree session reads project settings, hooks, and skills.
git --version in Terminal to check; if it prints a version number, Git is installed. If you run into Git errors, ask Claude in the Cowork tab to help troubleshoot your setup.Add folders to a session
Add folders before the session starts or while it runs:- Before a local session starts: add the folders under Folders when you create a saved environment or edit one, then start the session from that saved environment.
- While a local or SSH session runs: click + next to the prompt box and select Add folder. Claude works in that folder itself, with no worktree.
Archive a session
Before you archive a session whose worktree has uncommitted changes, see Keep uncommitted changes when a session is archived. To archive a session, hover over it in the sidebar, open its menu, and select Archive. The session moves to your archived sessions. To have sessions archive themselves when their pull request merges or closes, turn on Auto-archive after PR merge or close in Settings > Claude Code. Cloud sessions and sessions that are still running don’t archive themselves.Keep uncommitted changes when a session is archived
You can lose uncommitted changes in a session’s worktree when the session is archived, so commit what you want to keep first:- If Desktop asks about the changes: select Archive anyway to discard them, or cancel and commit them
- If the only changes are untracked files: commit the ones you want to keep before a pull request that Claude opened in the session merges, because Desktop can then delete them without asking
- In any other case: the worktree stays on disk with its changes. For a local session, Desktop removes both about 30 days after the session is archived or you last open it, whichever is later. To keep the changes, open the session from the Archived tab and select Unarchive
Organize and find sessions
You group, sort, and find sessions from an icon in the sidebar’s session list:- Current layout: hover over a heading in the session list to show the Group and sort icon, then click it. To find archived sessions, select View all, the menu’s last row, then open the Archived tab.
- Earlier layout: the Filter icon shows without hovering. Click it to arrange the list with Group by or Sort by. To show archived sessions, select Status, then Archived.
Check and free up context
To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type/compact to trigger summarization earlier and free up context space. See the context window for details on how compaction works.
Get notified when a session finishes
The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session. For sessions that belong to a project, you get the project’s notifications instead.Ask a side question without derailing the session
A side chat lets you ask Claude a question that uses your session’s context but doesn’t add anything back to the main conversation. Use it when you want to understand a piece of code, check an assumption, or explore an idea without steering the session off course. Press Cmd+; on macOS or Ctrl+; on Windows to open a side chat, or type/btw in the prompt box. The side chat can read everything in the main thread up to that point. When you’re done, close the side chat and continue the main session where you left off.
Side chats are available in local, SSH, and WSL sessions. The desktop app doesn’t save side chats to disk, so you can’t return to one after you close the app.
Watch background tasks
The tasks pane shows the background work running inside the current session: subagents, background shell commands, and dynamic workflows. Once the session has background work, open the pane with Background tasks in the title bar’s ⋮ menu. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar, or ask Claude to check on them for you.Work across sessions
Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. For example, ask it to archive the sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and WSL sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. Cross-session messaging separately lets Claude message your other Claude Code sessions, including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. The receiving Claude can reply, and Claude Code delivers the reply back through this surface. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies four safety behaviors across sessions:- You get an approval card before Claude archives a session, except in Auto mode and Bypass permissions mode, where Claude can archive a session without one. To be asked, switch to Manual.
- Through this surface, Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
- Claude Code checks each message from this surface against the receiving session’s inbound controls, even when the receiving session doesn’t have cross-session messaging itself. If you set
crossSessionInboundtorefusein the receiving session, Claude Code drops messages from this surface. Claude Code reports the refusal to the Claude desktop app. Before v2.1.234, Claude Code dropped every message from this surface to a receiving session without cross-session messaging. - Claude Code quotes each incoming message and attributes it to the session that sent it, and Claude still follows the receiving session’s own permission settings when acting on one.
Run long-running tasks in the cloud
For large refactors, test suites, migrations, or other long-running tasks, select an environment under Cloud in the environment selector when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from claude.ai/code or the Claude mobile app. Cloud sessions also support multiple repositories. Choose the repositories:- Current layout: in the row under the prompt box, once you select a cloud environment.
- Earlier layout: above the prompt box. To add another repository, click + beside the selected one.
Continue in another surface
To continue a session somewhere else, open the session menu from the caret beside the session title or from the session’s row in the sidebar, then select Open in:- Select Cloud to continue the session as a cloud session, with your conversation carried over as a summary. Before you confirm, the dialog states whether your files move too and whether this session is archived once the cloud one is ready. You can’t move a session that runs over SSH or in WSL this way.
- Select an installed editor or your file manager to open the session’s folder on disk there.
Control which sessions appear on your other devices
A local session shows up on your other devices once Remote Control connects it. A connected session appears in the session list at claude.ai/code and in the Claude apps on devices signed in to your claude.ai account. A local session connects when you turn Remote Control on for it, or when it connects automatically as it starts:- You turn it on for that session: with the session’s Remote Control switch, or by typing
/remote-controlin its prompt box. - It connects when it starts: new sessions connect automatically while Connect new sessions to Remote Control is on in Settings > Claude Code. If you’ve never changed that setting, Desktop follows
remoteControlAtStartupin your user or managed settings, then your organization’s default.
- One session: turn off its Remote Control switch. In a session that connected when it started, typing
/remote-controlleaves Remote Control on and showsRemote Control is already on. This session connected automatically when it started.Click Turn off on that line to disconnect. - New Desktop sessions on this computer: turn off Connect new sessions to Remote Control in Settings > Claude Code. If it already shows off, turn it on and then off so Desktop saves your choice. Once saved, it takes precedence over
remoteControlAtStartupand the defaults. - Any session on this computer, including the CLI: set
disableRemoteControltotruein~/.claude/settings.jsonto stop sessions from connecting. A session that was already connected when you saved the file stays connected until you turn Remote Control off for it.
Sessions from Dispatch
Dispatch is a persistent conversation with Claude that lives in the Cowork tab. You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork. Either way, the Code session appears in the Code tab’s sidebar with a Dispatch badge. You get a push notification on your phone when it finishes or needs your approval. If you have computer use enabled, Dispatch-spawned Code sessions can use it too. App approvals in those sessions expire after 30 minutes and re-prompt, rather than lasting the full session like regular Code sessions. For setup, pairing, and Dispatch settings, see the Dispatch help article. Dispatch requires a Pro or Max plan and is not available on Team or Enterprise plans. Dispatch is one of several ways to work with Claude when you’re away from your terminal. For a comparison with the other options, see Platforms and integrations.Extend Claude Code
Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click Customize in the sidebar. The Cowork tab in the Desktop app sources its skills, plugins, and connectors from this Customize configuration, which syncs through your claude.ai account, not from the CLI’s~/.claude directory.
Claude Code also loads the skills and plugins enabled for your claude.ai account in terminal sessions where you sign in with the same account. See Skills synced from claude.ai and Plugins synced from claude.ai.
Connect external tools
Connectors are MCP servers with a graphical setup flow. Click + next to the prompt box, before or during the session, to add connectors in a local or SSH session with a Claude account. Select Add connectors to open the connector directory. If the menu shows Connectors instead, select it, then Browse connectors.- Connectors is grayed out in a WSL session: see If the terminal or connectors are unavailable
- Cloud sessions: see How connectors reach Claude Code
Use skills
Skills extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type/ in the prompt box or click the + button and select Slash commands to browse what’s available. This includes built-in commands, your custom skills, project skills from your codebase, and skills from any installed plugins. Select one and it appears highlighted in the input field. Type your task after it and send as usual.
You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes.
Local sessions load your personal skills from ~/.claude/skills/. An SSH session reads ~/.claude/skills/ from the remote host’s home directory, not from your machine.
Local and cloud sessions also load the skills enabled for your claude.ai account, except local sessions when your organization sets disableSideloadFlags. Cloud sessions load them instead of ~/.claude/skills/, as Skills in Cowork and cloud sessions describes.
Install plugins
Plugins are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. In a local session or an SSH session, click + next to the prompt box and select Add plugins to open the plugin browser. If the menu shows Plugins instead, select it, then Browse plugins, or Manage plugins to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app withholds underdisableSideloadFlags.
The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s .claude/settings.json declares, as What carries over from your setup explains. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see plugins.
Configure preview servers
Claude automatically detects your dev server setup and stores the configuration in.claude/launch.json at the root of the folder you selected when starting the session. Preview uses this folder as its working directory, so if you selected a parent folder, subfolders with their own dev servers won’t be detected automatically. To work with a subfolder’s server, either start a session in that folder directly or add a configuration manually.
To customize how your server starts, for example to use yarn dev instead of npm run dev or to change the port, edit .claude/launch.json. The file supports JSON with comments.
Auto-verify changes
WhenautoVerify is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response.
Auto-verify is on by default. Disable it per-project by adding "autoVerify": false to .claude/launch.json, or turn off Auto-verify changes in the Browser pane’s ⋮ menu.
Configuration fields
Each entry in theconfigurations array accepts the following fields:
When to use program vs runtimeExecutable
Use runtimeExecutable with runtimeArgs to start a dev server through a package manager. For example, "runtimeExecutable": "npm" with "runtimeArgs": ["run", "dev"] runs npm run dev.
Use program when you have a standalone script you want to run with node directly. For example, "program": "server.js" runs node server.js. Pass additional flags with args.
Open the preview at a specific URL
By default, the preview openshttp://localhost:<port>. Set url when your server needs a different address. Common cases are servers that require local HTTPS, apps that use *.localhost subdomains, and apps that sign you in through a redirect.
localhost, any *.localhost subdomain, 127.0.0.1, and ::1. For security, a localhost url must be your server’s origin alone, with no path or query. Its port must match the entry’s port. To show a specific page, ask Claude to navigate there after the preview opens. A localhost url with a path, query, or mismatched port is reported as a configuration error that names the url and shows the fix.
For any other address, Desktop asks for your permission the first time the preview opens it, the same as when you browse to a new site in the preview. External addresses may include paths. Choose Always allow to skip the prompt for that site in the future. Organization policies that restrict external sites in the preview still apply.
To preview a server you already run yourself, set url without a command. Claude attaches the preview to your running server instead of starting one:
url must be http or https, and must not contain a username or password.
Port conflicts
TheautoPort field controls what happens when your preferred port is already in use:
true: Claude finds and uses a free port automatically. Suitable for most dev servers.false: Claude fails with an error. Use this when your server must use a specific port, such as for OAuth callbacks or CORS allowlists.- Not set (default): your server gets the next free port, as with
true, except in the one case below. Before Claude Desktop v2.37337.0, Claude asks whether the server needs that exact port instead, then saves your answer inlaunch.json.
autoPort is unset, your server stays stopped when all of these hold:
- You start the server through an
npm,yarn,pnpm, orbunscript. - Your preferred port is hardcoded in that script, or Claude can’t inspect the script.
- You don’t pass the port in
runtimeArgs.
port to match the script. Setting "autoPort": true instead works only for a script that reads PORT.
Have your server read its port from the PORT environment variable, which carries the assigned port. When Claude moves your server to a different port, it also rewrites a --port or -p value in runtimeArgs to match.
Examples
These configurations show common setups for different project types:- Next.js
- Multiple servers
- Node.js script
Environment configuration
The environment you pick when starting a session determines where Claude executes and how you connect:- Local: runs on your machine with direct access to your files
- Cloud: runs on Anthropic-managed infrastructure by default. Sessions continue even if you close the app.
- SSH: runs on a remote machine you connect to over SSH, such as your own servers, cloud VMs, or dev containers. A running task can keep going while Desktop is disconnected, but with a Claude account it can stop when its sign-in expires.
- WSL (Windows): runs inside a WSL 2 distribution on your machine, using its Linux toolchain and native paths
Create a saved environment
A saved environment is an entry in the environment selector that records where Claude runs, so you can start later sessions there. A local or SSH environment also holds the folders Claude works in. Saved local and SSH environments require Claude Desktop v2.37337.0 or later.Open the New environment dialog
Choose where Claude runs
Save the environment
Environments that Desktop creates for you
If the environment selector lists local or SSH environments you didn’t create, Desktop created them for you. The first time you open the Code tab in the current layout, Desktop creates up to eight environments. The environments come from the local and SSH folders you used most in the last month. You can edit or delete them.Use, edit, or remove a saved environment
Find the environment’s entry in the environment selector:- Start a session: select the entry.
- Edit or delete: hover over the entry and click the gear icon. To delete a local or SSH environment, click Delete environment in Edit environment.
- Archive cloud environments: see Archive an environment.
Local sessions
The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as~/.zshrc or ~/.bashrc, to give Claude Code PATH and a fixed set of Claude Code variables, but not other variables you export there. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles.
Set environment variables for local sessions
Add the variables to a saved local environment and start your sessions from it. Desktop sets some variables itself, such asAPI_TIMEOUT_MS, and your sessions get its value for those instead of yours.
Open the environment's form
Enter the variables
KEY=value per line, and select Done.Save the environment
env key in your ~/.claude/settings.json file. Claude Code ignores the value if that variable is already in the environment Desktop starts the session with. See environment variables for the full list of supported variables.
Set environment variables for dev servers
To give a dev server a secret without committing it tolaunch.json, set it in one of these places, then restart Desktop:
- macOS and Linux: export it in your shell profile
- Windows: add it to your user or system environment variables
- Any platform: save it in the local environment editor, if you can open it
~/.claude/settings.json.
Use the local environment editor
To open the local environment editor, click the gear icon on the entry for your own computer, not the one on a saved environment:- Selector under the prompt box: hover over the entry for your computer, the first under Local. If a gear icon appears, click it. If not, the editor isn’t available, so set the variable for local sessions or dev servers another way.
- Selector above the prompt box: hover over Local and click the gear icon
KEY=value per line and select Save changes. Variables you save here are stored encrypted on your machine. Local sessions get them, except any variable that Desktop sets itself, such as API_TIMEOUT_MS. Restart Desktop to give your variables to dev servers.
Environment variables Desktop sets itself
If you setAPI_TIMEOUT_MS or ANTHROPIC_BASE_URL and nothing changed in your local sessions, it’s because Desktop sets those variables, among others, itself. A local session gets Desktop’s value whether you set yours in your shell profile, your Windows user or system variables, the local environment editor, or a saved environment. Moving yours to a settings file doesn’t help, because Claude Code ignores that value in a local session.
API_TIMEOUT_MS: a local session gets900000, which is 15 minutes. For a longer timeout, install the Claude Code CLI and use it instead of Desktop. Set the variable in your shell and runclaudein your terminal.ANTHROPIC_BASE_URL: a local session gets Anthropic’s API host when you’re signed in with a Claude account. To use a gateway, set up Desktop’s third-party inference configuration instead.
Turn off extended thinking
Extended thinking is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To turn it off, setMAX_THINKING_TOKENS to 0 in a saved local environment or the local environment editor. Thinking then turns off on the Anthropic API, except on Opus 5.5, Sonnet 5.5, Haiku 5.5, and the Fable models, which always use extended thinking.
On Opus 5, also select effort high or lower before you start the session. In the current layout, open the model picker and select a level under Effort. If you started the session at a higher level, start a new one at high or lower.
Fixed thinking budgets
On models with adaptive reasoning, Claude Code ignores the number itself in a positiveMAX_THINKING_TOKENS value because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING to 1 to use a fixed thinking budget; Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
Local sessions on managed devices
If the entry for your computer is grayed out in the environment selector, with the tooltip Disabled by your organization, your administrator has turned off local sessions. On Windows the WSL entry, whose availability on managed devices is governed separately, is grayed out the same way. New sessions default to the first SSH connection if one is configured. If you try to continue an existing local session, Desktop shows a message that local sessions aren’t available on this device. Saved local environments show this error when you select one:Couldn’t switch environments: the Local environment isn’t available anymore. Choose an SSH or cloud environment instead, or contact your IT team.
Cloud sessions
Cloud sessions continue in the background even if you close the app. Usage counts toward your subscription plan limits with no separate compute charges. To add, edit, or archive a cloud environment, open the environment selector:- Add an environment: select New environment at the bottom of the selector’s menu, then the Cloud tab of the New environment dialog
- Edit or archive one of your own environments: hover over it and click the gear icon
SSH sessions
SSH sessions let you run Claude Code on a remote machine while using the desktop app as your interface. This is useful for working with codebases that live on cloud VMs, dev containers, or servers with specific hardware or dependencies.Open the New environment dialog
Add the connection
- Name: a friendly label for this connection.
- SSH host:
user@hostnameor a host defined in~/.ssh/config. - SSH port: defaults to 22 if left empty, or uses the port from your SSH config.
- SSH key (optional): path to your private key, such as
~/.ssh/id_ed25519. Leave empty to use your SSH config or SSH agent. - Worktree folder: a folder on the remote machine, such as
~/worktrees, where new sessions create their worktrees. Leave empty to use the remote machine’s default.
Start a session on the connection
Remote machine requirements for SSH sessions
A Linux or macOS remote machine needs a supported processor, an SSH server with SFTP, an install folder that isn’t mountednoexec, a working shell, and network access. Check each requirement before you connect, or when a connection fails after you log in:
- System: an x86_64 or arm64 processor. The machine also has to meet Claude Code’s system requirements. On Linux, Claude Code needs glibc 2.17 or later, or musl. To see which one the machine has, run
ldd --versionthere. On a musl-based distribution such as Alpine Linux, also install the packages that Claude Code needs. - SFTP: the SSH server has to offer the SFTP subsystem, which a
Subsystem sftpline in itssshd_configturns on. To check, connect to the same host and port withsftpin a terminal on your computer. A working server shows thesftp>prompt. - Sessions per connection: Desktop on macOS and Linux opens several sessions on one SSH connection. If the server’s
sshd_configsetsMaxSessions 1, raise it, for example to OpenSSH’s default of 10. - Install folder: Desktop installs a helper program and Claude Code under
~/.claude/remote/in your home directory. It runs them from there, so that folder can’t be on a file system mountednoexec. Allow about 1 GB of disk space in the home directory of each user who connects. For what that folder holds, see Files and processes on the remote machine. - Shell: the shell set for your account on the remote machine has to run commands sent over SSH, as Bash, Zsh, and
shdo - Network: Claude Code runs on the remote machine and makes its network requests from there, so the machine needs the network access that Claude Code requires. If the machine can’t download Claude Code, Desktop downloads it on your computer and uploads it. Claude Code’s other requests still go out from the remote machine. On a Linux remote machine, if those requests need a proxy, set it for SSH sessions.
Set a proxy or a CA certificate for SSH sessions
If a Linux remote machine reaches the internet through a proxy or needs a CA certificate, add the proxy and CA variables underenv in ~/.claude/settings.json there. Add them even if you already export them in ~/.profile, ~/.bash_profile, ~/.zprofile, or ~/.zshrc on that machine.
An SSH session doesn’t get them from those files, even when claude in a terminal on that machine does. The session can then hang, or show The connection from … to the API failed or Authentication failed, and signing in again doesn’t help.
Add the variables
NODE_EXTRA_CA_CERTS, because Claude Code doesn’t trust a CA from SSL_CERT_FILE in ~/.claude/settings.json. This example sets a proxy and a CA file:Send your message again
Find a proxy or CA variable set elsewhere on the remote machine
Check whether the Linux remote machine sets the proxy or CA variable elsewhere, because sessions use that value and ignore the one in any settings file:List the variables that the remote machine sets
ssh devbox env, with your own host.Change the variable where it is set
~/.zshenv, /etc/environment, or ~/.bashrc on the remote machine.Give sessions the new value
Use your SSH configuration on macOS and Linux
On macOS and Linux, Desktop connects by running the OpenSSH client on your computer, so it uses your~/.ssh/config. Connecting through the OpenSSH client requires Claude Desktop v1.37937.0 or later. Enter a Host name from that file in the SSH host field to use settings from its entry, such as HostName, User, IdentityFile, CertificateFile, ProxyJump, and ProxyCommand.
Before you add the connection, check the client and the entry in a terminal on your computer:
- Client version: run
ssh -V. The client has to be OpenSSH 7.6 or later. - Entry: run
sshwith theHostname, such asssh devbox. If that fails, fix the entry first.
- SSH port: a value here overrides the entry’s
Port - SSH key (optional): Desktop offers the key file you pick in addition to the entry’s
IdentityFileand the keys in your SSH agent
Reach a machine behind a jump host
To reach a machine behind a jump host, also called a bastion, setProxyJump or ProxyCommand in the entry. The following entry reaches devbox.internal.example.com through bastion.example.com:
devbox in the SSH host field.
Reach a container on a remote machine
To run a session inside a container that publishes no SSH port, reach it with aProxyCommand, because Desktop doesn’t run the RemoteCommand of the entry you connect to. If your entry uses RemoteCommand to step into the container, the session runs on the machine that the entry logs in to, not in the container.
Add the entry
~/.ssh/config, or directly above your first Host * entry if you have one. Replace the Docker container devbox, its user dev, and the machine build.example.com with your own. The entry’s command starts an SSH server inside the container for each connection:Prepare the container
- Install the OpenSSH server, with a host key that stays the same when you rebuild the image or recreate the container
- Give the account named in
Usera way to log in, such as anauthorized_keysfile - Check that the container meets the remote machine requirements
Check the allowlist
ssh -G devbox-container in a terminal on your computer. Ask them to allow the hostname that it prints, here devbox-container, in sshHostAllowlist. When they allow that name, they allow whatever your entry’s ProxyCommand connects to.Test the entry, then connect
ssh devbox-container in a terminal on your computer. Fix what it reports, and run it again until it opens a shell in the container without asking you anything:- If
sshasks for a password, passphrase, or code: switch to a login that works without a prompt, such as a key that your SSH agent holds - If
sshreportsCannot execute command-line and remote command.orBad packet length: takeRemoteCommandandRequestTTYout of your entry forbuild.example.com. After that,ssh build.example.comin a terminal on your computer opens a shell on that machine, not in the container. - If
sshreportsConnection closed by UNKNOWN port 65535: runssh build.example.com docker exec devbox /usr/sbin/sshd -tin the same terminal.- If it prints
Missing privilege separation directory: /run/sshd, create that folder in the container. - If it prints
no hostkeys availableand the container has host keys, add-u rootafterexecin this command and in the entry.
- If it prints
devbox-container in the SSH host field.Use variables from your shell in a ProxyCommand
To use an environment variable of your own in a ProxyCommand or Match exec command, export it in a shell startup file, such as ~/.zshrc, then quit and reopen Desktop. When Desktop starts, it reads what your login shell exports, and it keeps those values until you quit.
This requires Claude Desktop v2.37337.0 or later and an env command that accepts -0, which you can check by running env -0 in a terminal on your computer.
AWS_* variables.Use AWS credentials in a ProxyCommand
If you set temporary AWS credentials in a shell startup file, a ProxyCommand that runs the AWS CLI can connect in a terminal and fail in Desktop. When your shell exports AWS_SESSION_TOKEN, AWS_SECURITY_TOKEN, or AWS_CREDENTIAL_EXPIRATION, ssh and your ProxyCommand in Desktop don’t get the shell’s AWS credentials, AWS_REGION, or AWS_PROFILE.
If the AWS CLI has no other source for a region or credentials, it fails with You must specify a region or Unable to locate credentials. To connect from Desktop, give the AWS CLI a profile that it reads from ~/.aws/config:
Add a profile with a region and a source of credentials
corp that gets its credentials from a helper program:region: give the AWS Region of the machines you connect tocredential_process: give the full path of a program that prints credentials in the JSON form that AWS documents. Choose a program that needs no input from you, because the AWS CLI runs it at every connection, including reconnects while you’re away.- IAM Identity Center: add the profile’s IAM Identity Center settings in place of
credential_process. Runaws sso login --profile corpin a terminal before you connect, and again when that sign-in lapses.
Name the profile in the ProxyCommand
--profile to the command that AWS documents for Session Manager:Connect again
ssh with the host in a terminal to confirm that the entry still connects there, then connect from Desktop.Raise the SSH connection timeout
If your SSH configuration sets noConnectTimeout for the host, Desktop gives ssh 30 seconds to connect. Through a jump host or a ProxyCommand, that time includes the time the route takes to connect. If your route needs longer, add a higher value to the entry:
ssh uses the first value it finds for a host, so keep the entry above any Host * entry that sets ConnectTimeout. To confirm, run ssh -G devbox in a terminal on your computer. Its output includes connecttimeout 120. After you change the value, quit and reopen Desktop.
If the remote machine itself waits for an approval on your phone, approve within 45 seconds, whatever ConnectTimeout you set. You can’t raise this limit, because Desktop sets ServerAliveInterval and ServerAliveCountMax itself, and ssh then closes a login in which the remote machine sends nothing for that long. If a jump host or a ProxyCommand waits for you instead, raise ConnectTimeout in the remote machine’s entry to cover that time.
Fix a Match host block that only Desktop applies
If Desktop uses a setting that ssh devbox in a terminal doesn’t, look for a Match host block above the entry’s HostName line. In a terminal, ssh reads a block there before the HostName line, so it compares the block with devbox. Desktop gives ssh the HostName value on the command line, so ssh compares the block with that value.
To check, run ssh -G in a terminal on your computer with the entry’s HostName and User values on the command line, as Desktop does:
ssh -G devbox. If the block’s settings, such as proxycommand, show only in the first output, the block takes effect only in Desktop. To have Desktop skip it too, add !originalhost devbox to its Match line:
Forwarding settings that Desktop leaves off
On its connection to the remote machine, Desktop leavesForwardAgent, ForwardX11, LocalForward, RemoteForward, DynamicForward, and Tunnel off, even where your SSH configuration turns them on. In the terminal or a ! command, expect your forwarding settings to apply only sometimes, because Desktop can start a separate ssh there that follows them.
- To reach a port on the remote machine: forward it yourself
- To use your own keys from the remote machine: set up a credential on the remote machine itself, for example for
git push
ssh -G devbox in a terminal on your computer. Then run it again as Desktop can run it, with the hostname and user values that it prints, as in ssh -G -o HostName=devbox.internal.example.com -l alice devbox. The second output can show settings from a Match block that the first skips.
Look in both outputs for a forwardagent line that says anything but no, and for lines that begin with localforward, remoteforward, or dynamicforward. If you find one, remove that setting from your SSH configuration. Do the same for a host that your ProxyCommand reaches with ssh.
Reach a port on the remote machine
To open a server that runs on the remote machine, such as a dev server on port 3000, forward the port yourself. In a terminal on your computer, runssh with -L and the host you connect to, such as devbox:
-p or -i with the same value. Leave that command running, and open http://localhost:3000 in a browser on your computer to reach port 3000 of the remote machine. If ssh prints open failed: administratively prohibited, ask the machine’s administrator to allow TCP forwarding, which AllowTcpForwarding in the SSH server’s sshd_config controls.
Windows remote machines
A Windows remote machine requires Claude Desktop v2.31226.0 or later. Use Microsoft’s OpenSSH Server. The machine can be x64 or ARM64. The shell that the SSH server starts can becmd.exe, Windows PowerShell 5.1, or Git Bash.
Windows remote machines get less testing than Linux ones. Try your own work there before you rely on it.
Expect these limits, among others, on a Windows remote machine:
- Terminal: the terminal doesn’t open in a session whose folder is a Windows path, such as
C:/projects/app - Sandbox: Claude Code runs there on native Windows, where it runs commands unsandboxed. See where the sandbox runs.
- Plugins: Desktop doesn’t copy a plugin that holds a file or folder name Windows can’t store, such as a name with
:. The session lists the plugins that Desktop left out. - MCP servers: on some Windows remote machines, Claude’s calls to MCP servers from
claude_desktop_config.jsongo through Desktop, so Claude can’t call their tools while Desktop is disconnected. Before Claude Desktop v2.37337.0, this holds on every Windows remote machine. - Worktrees: worktrees go in
<project-root>/.claude/worktrees/. If you choose another folder, Desktop ignores it. - Earlier messages: if the SSH server’s shell is
cmd.exeor Windows PowerShell, you may have to connect before you see a session’s earlier messages - Forks: if the SSH server’s shell is
cmd.exeor Windows PowerShell, you can fork a session only at its first message - Running while disconnected: a task keeps running while Desktop is disconnected only if the SSH server lets a program outlive the connection that started it. To find out, test the remote machine.
- Leftover processes: after a session ends, check the machine for programs that Claude Code started, because they can keep running. The background helper that Desktop installs doesn’t stop on its own there.
Keep a task running while Desktop is disconnected
If your computer sleeps, you lose your network, or you quit Desktop, the task goes on until it finishes, needs you, or reaches one of the limits. Closing the lid counts as sleep. A restart of Desktop or of your computer, including for an update, counts as a quit. Claude Code runs as a process on the remote machine, under a background helper that Desktop installs there, so it doesn’t need your SSH connection to keep running. The behavior in this section requires Claude Desktop v2.31226.0 or later.- After sleep or a network loss: you get the running task back if the process still runs and Desktop can log in without a prompt. If it can’t, send a message.
- After a quit: the task keeps running, but you lose it when the session opens again unless Desktop can rejoin its process. Check when Desktop can rejoin before you quit. If you lost the task, send a message to continue.
- Desktop can’t reconnect: the session says why, and a notification may say so too. Desktop may need you to log in.
- Authentication error: the sign-in token or credential may have expired. With a Claude account, send a message to continue. With a third-party provider, see SSH remote sessions in Claude Desktop on 3P.
- Waiting request: answer it
- None of these: send a message to continue
Prepare a long task
- Update first: update Desktop before you start a long task. On macOS and Windows, Desktop can restart on its own to install an update that it has downloaded. That restart waits while Claude is working on an SSH task. On macOS with a Claude account, by default the restart can go ahead anyway once the update has waited 72 hours.
- Don’t quit on Windows, or before v2.42304.0 with a third-party provider: after a quit there you lose the running task, so leave Desktop open during the task. In any other case, see what you get back before you quit.
- Reduce requests: choose a permission mode, rules, or hooks that make the task wait for you less often
- Check the jump host: if your jump host asks for a sign-in, for example a push to a phone, switch to a login that works without a prompt. Otherwise Desktop can send another push each time it tries to reconnect.
- Test the remote machine: start a short task, quit Desktop while the task is still running, and open the session again well after the task should be done. If the task isn’t finished and the session shows no authentication error, check the remote machine for what can end a task.
- Keep commands out of Desktop’s terminal: if the remote machine logs out idle terminals, run your own commands from an SSH login outside Desktop
Limits while Desktop is disconnected
A task that you leave running can end when its sign-in expires, when the remote machine ends it, or when the helper stops or is replaced:- Sign-in token or credential: with a Claude account, the task stops with an authentication error when the token expires. With a third-party provider, the same holds for a credential that expires, such as one from single sign-on or a credential helper. See SSH remote sessions in Claude Desktop on 3P. With a Claude account, keep Desktop running and connected so that it can renew the sign-in.
- The remote machine: if the remote machine restarts, or ends your processes when your SSH connection closes, the running task ends. Nothing starts it again while Desktop is disconnected. Linux machines where systemd-logind’s
KillUserProcessesisyesand applies to your user end your processes this way. To keep a task running there, ask the administrator to exempt your user, for example withKillExcludeUsers. - Idle terminals: some Linux remote machines log out a terminal that nobody types in for a set time (systemd-logind’s
StopIdleSessionSec). With Desktop on macOS or Linux, a session’s terminal and!commands share Desktop’s SSH connection by default. That logout then ends the connection while Desktop is connected, and the running task can end with it. Closing the terminal pane doesn’t prevent it, so keep commands out of that terminal. - Desktop updates: if an update brings a new helper, Desktop replaces the helper on the remote machine at a later connection, which can end a task that still runs
- Long absences: on a Linux or macOS remote machine, if Desktop doesn’t connect for 30 days, the helper stops and ends every Claude Code process that runs under it. Connect before then.
- Worktrees: in a session that uses a worktree, Desktop checks each file edit before Claude makes it. While Desktop is disconnected, each edit waits about 30 seconds and then fails. Shell commands still run. On a Linux or macOS remote machine, edits can keep working. If you aren’t sure, start the session without a worktree.
- Folder restrictions: if your organization restricts which folders sessions may use, Desktop checks each file read, search, and edit, with or without a worktree. While Desktop is disconnected, each one waits up to 10 minutes and then fails.
- Connectors: connectors and other tools that Desktop provides run through Desktop, so while it is disconnected each call fails after about 30 seconds
- Workflows: Desktop checks each new workflow before it starts, so while Desktop is disconnected a new one waits up to 10 minutes and then fails
- MCP servers: MCP servers that Claude Code starts on the remote machine don’t run through Desktop, so Claude can still call their tools. Servers from
claude_desktop_config.jsonare among them only if Desktop doesn’t use its built-in SSH client. Otherwise, and on some Windows remote machines, Claude can’t call their tools while Desktop is disconnected.
When edits in a worktree keep working
When edits in a worktree keep working
- Built-in SSH client: Desktop uses it, for example in a Microsoft Store install, on a Windows computer without Microsoft’s OpenSSH 9.4 or later, or by default on Windows with a third-party provider
- Repository location: the repository is your home directory, a folder above it, or
~/.claude - macOS paths: on a macOS remote machine, the repository is under
/Volumes, or a folder name in the path of the repository or the worktree has a~or a non-ASCII character - Folder restrictions: your organization restricts which folders sessions may use
- Corporate launcher: before Claude Desktop v2.37337.0, you sign in with a Claude account, and your organization starts Claude Code on the remote machine through a corporate launcher
Handle requests that arrive while you are away
If Claude needs your approval or asks you a question while Desktop is disconnected, Claude waits on the remote machine. The wait has no time limit of its own. When Desktop rejoins the process, it shows you the request. If Desktop starts a new process instead, you lose the request. If a request that waited for you is gone when you come back, one cause is that Desktop restarted on its own, for example to install an update. You keep a request through a restart only if Desktop can rejoin the process, so check when Desktop can rejoin before you leave a task running. If you lose a request, send a message to continue. To reduce how often a task stops to wait for you, and to hear from it while you are away, set up any of these before you leave:- Auto mode: choose Auto mode if it is available to you. After repeated blocks, you are asked again.
- Allow rules: in your user settings file on the remote machine,
~/.claude/settings.json, add allow rules for the commands the task needs. If your organization accepts permission rules from managed settings only, ask your administrator to add them to the managed settings that reach the remote machine. For allow rules in a project’s.claude/settings.json, see Project allow rules and workspace trust. - A hook that answers: configure a
PermissionRequesthook in~/.claude/settings.jsonon the remote machine to allow or deny requests in your place - A hook that alerts you: configure a
Notificationhook with thepermission_promptmatcher in the same file to send yourself a message when a request is waiting - A hook that tells you when Claude is done: configure a
Stophook in the same file to send yourself a message when Claude has finished responding. It doesn’t run when an API error ends the turn. For that case, configure aStopFailurehook.
Reconnect after sleep or a network loss
If Desktop hasn’t reconnected when you come back, send a message in the session. Desktop reconnects on its own only where it can log in without a prompt, for example with a key that your SSH agent holds.- Remembered password: a password that you let Desktop remember also works without a prompt, but for a long absence prefer a key that your SSH agent holds. If sign-ins with that password break off or hang, Desktop can stop reconnecting and wait for you.
- Any other prompt: if the remote machine prompts for anything else, such as a one-time code, you can get a notification on your computer. Click the notification, or send a message in the session, and Desktop shows the prompt.
If a jump host asks for a sign-in, the outage is long, output is missing, or the process is gone
If a jump host asks for a sign-in, the outage is long, output is missing, or the process is gone
- Jump host, pushes stop while you’re away: this can happen with Desktop on macOS or Linux when nobody answers a jump host’s sign-in, for example a push to a phone. Desktop then stops reconnecting while nobody is at your computer. When you unlock or use the computer, you can get another push, because Desktop can try again. After three unanswered attempts it waits until you retry or send a message.
- Jump host, pushes keep coming: where Desktop can’t tell that nobody answers, as with Desktop on Windows, it keeps trying while it has a process to rejoin, whether or not that process still runs. You can get another push with each attempt. To end the attempts, quit Desktop, which can cost you the running task.
- Long outage: Desktop slows to about one attempt every five minutes. To reconnect sooner, retry in the session or send a message, which Desktop delivers once it is connected.
- Missing output: while Desktop is disconnected, the helper keeps each session’s most recent Claude Code output in a 16 MiB buffer and drops older output. After Desktop reconnects, the session can show
Loading recent output from <host>…. If Desktop can’t load all of the output, you see the rowSome output produced while you were disconnected may be missing here.The row doesn’t mean that the task stopped. - Process gone: the process ended while Desktop was disconnected, as when the remote machine restarts. Desktop can then start a new one from the conversation’s saved history and tell Claude to continue the task. If the task stays stopped, send a message. With a third-party provider, update to Claude Desktop v2.42304.0 or later, because earlier versions never continue the task on their own.
Reopen a session after you quit Desktop
After you quit Desktop, the task keeps running on the remote machine, but it stops when the session opens again unless Desktop can rejoin its process. While Desktop is closed, the task runs until it finishes, needs you, or reaches one of the limits.- Desktop on Windows: you don’t get the running task back, because Desktop never rejoins after a quit. Start Desktop again only when you expect the task to be done, because the session can open as Desktop starts.
- Third-party provider, task from an earlier version: if you started the task in a Desktop version before v2.42304.0, you don’t get it back on macOS or Linux either. Start Desktop again only when you expect the task to be done.
- Any other task, with Desktop on macOS or Linux: start Desktop and open the session, and the task goes on if Desktop rejoins. It can’t always rejoin, for example after some Desktop updates, so update before a long task.
Choose where SSH session worktrees go
Unless your organization restricts which folders sessions may use, new SSH sessions create their worktrees in the first of these locations that is set:- Worktree folder on the SSH connection
worktree.locationin~/.claude/settings.jsonon the remote machine<project-root>/.claude/worktrees/, the default
~/worktrees a worktree’s path is ~/worktrees/<project>-<id>/<worktree-name>. If the folder you set is inside the project, Desktop ignores it for that project and uses the default. On a Windows remote machine, Desktop always uses the default.
Set the worktree folder on an existing connection
Set Worktree folder in the settings of a connection you added earlier or one your organization manages. The field requires Claude Desktop v1.44121.0 or later. If your organization restricts which folders sessions may use, Desktop hides the field and keeps worktrees inside the project.Find the connection
Open the connection's settings
Set the folder
~/worktrees, and select Save changes.Files and processes on the remote machine
Desktop installs a helper program and Claude Code under~/.claude/remote/ in the home directory of each user who connects to a Linux or macOS remote machine. The helper listens on no network port, but Claude Code and the programs it starts, such as MCP servers and development servers, can.
pgrep -fl "$HOME/.claude/remote/" on the remote machine as that user, or with the user’s home directory in place of $HOME:
- Helper: one or more
serverprocesses for each computer that connects - Claude Code: the processes that the helper starts for the user’s sessions, each from a file named after its version, such as
2.1.295-…
rpc.sock in the helper’s folder under ~/.claude/remote/run/. Apart from root, other users on the machine can’t connect to that socket, because it has mode 600 and its folder has mode 700.
For when the helper stops on its own, see Limits while Desktop is disconnected.
To remove the helper and Claude Code for one user:
Quit Desktop
End the processes
kill with the ID of each Claude Code process that pgrep lists. Once those are gone from the list, run kill with the ID of each server process. If you end a server process first, a command that Claude Code is running can keep running.Then list the user’s remaining processes, for example with ps -u "$(id -un)" -f, and end any that you recognize as started by Claude Code. Programs that it left in the background can keep running after it ends, without being in the pgrep list.Delete the folder
~/.claude/remote/. To remove Claude Code’s own files in ~/.claude/ and ~/.claude.json, see Remove configuration files.End one session’s process
To end one session’s Claude Code process, archive the session in Desktop while Desktop is connected to the remote machine. The process keeps running after its task is done and after you quit Desktop. Before you archive a session whose worktree has uncommitted changes, see Keep uncommitted changes when a session is archived.See which user the processes run as
The helper and Claude Code run as the user that Desktop logs in as over SSH. Installing and starting them takes nosudo. To check the user, run ps -o user= -p on the remote machine with a process ID that pgrep lists.
Programs that Claude Code starts, such as shell commands and MCP servers, start as that user too. Review that user’s rights on the remote machine, its sudo rules included, as you would for a person who runs commands there.
See who connected to the remote machine
To find out who connected to a remote machine, read the SSH server’s log on that machine, where a login from Desktop looks like one from a terminal. With Desktop on macOS or Linux, expect an entry each time Desktop connects, not one for each session. You won’t find Desktop’s SSH connections in Claude Code’s metrics and events. To find out from them which remote machine an SSH session ran on, see Attribute telemetry to Desktop SSH sessions. For Desktop’s own record of its connections, see Get Desktop’s logs for an SSH problem.Connections that close before login
If the SSH server’s log shows connections that close before any login, they can be Desktop’s tests of the SSH port. Desktop tests whether a machine answers, for example after a connection to it failed. It opens a connection to the port and closes it at once, without sending anything. Expect one test or several in a row, for example eight in about two minutes. If nothing bans or refuses addresses for such connections, you don’t have to do anything about Desktop’s tests. If an address that Desktop connects from is refused or banned, check whether the SSH server itself refuses the address and whether fail2ban counts Desktop’s tests.Recognize a test in the SSH server’s log
Compare the lines in your log with those that an OpenSSH server on Linux writes for a test at the defaultLogLevel, in the row for your server’s version. You can see the lines in the last column instead if the server’s greeting arrives before Desktop closes the connection:
LogLevel VERBOSE in sshd_config and run sshd -T | grep -i loglevel as root. If it prints loglevel VERBOSE, reload the SSH server. Then look for a line with Connection from 203.0.113.7 port 51234 before the test’s line.
Check whether the SSH server itself refuses the address
If connections are refused from an address that many computers with Desktop share, look in the SSH server’s log for a line that ends like this one:LogLevel, OpenSSH 9.8 and later can write such a line when refusing an address for connections that closed without trying to log in, as Desktop’s tests do. With the default settings, you don’t see such a line after a few tests alone.
To prevent the refusal, set PerSourcePenaltyExemptList in sshd_config to the addresses that people connect from, for example PerSourcePenaltyExemptList 203.0.113.7. The server then applies none of its penalties to those addresses, including those for failed logins. To check the file, run sshd -T | grep -i persourcepenalt as root. If it prints your list, reload the SSH server.
Check whether fail2ban counts Desktop’s tests
If fail2ban 0.10.5 or later banned an address that Desktop connects from, find your jail’s mode injail.conf, jail.local or under jail.d/:
- A
filterline that names a mode in brackets, such asfilter = sshd[mode=aggressive]: use that mode. - Only the stock
filterline, with[mode=%(mode)s]: use themodeline, ornormalif there is none.
normal, fail2ban doesn’t count the lines of Desktop’s tests, so look for another cause of the ban.
For another mode, copy the lines from your own log to a file on the remote machine. Copy each line whole, from its date to its end, and both lines where a test leaves two. Run fail2ban-regex there with the file and your jail’s mode, for example aggressive:
203.0.113.7. In that case, prevent a ban. If it prints nothing, fail2ban counts none of those lines in that mode, so look for another cause of the ban.
Prevent a ban by fail2ban
To keep fail2ban from banning an address for Desktop’s tests, change one of two settings of the jail, each at a cost:mode: set it tonormalwherever your jail sets it, in amodeline or in the brackets of a line such asfilter = sshd[mode=aggressive]. You give up every count that only the other modes make, for example of clients that connect and leave without trying to log in.ignoreip: set it to the addresses that people connect from, for exampleignoreip = 203.0.113.7. fail2ban then counts nothing from those addresses, failed logins included.
Use MCP servers set up on the remote machine
To use an MCP server from~/.claude.json or a project’s .mcp.json in an SSH session, set it up in those files on the remote machine. Claude Code starts their stdio servers there, so install the commands those servers run on the remote machine. For servers from claude_desktop_config.json, see Limits while Desktop is disconnected.
Open an SSH session from a link
Aclaude://code/new link opens Desktop’s new-session page, and it can name an SSH connection. Put such a link in a runbook, dashboard, or wiki page to open Desktop set up for the right machine and folder. For platforms that strip such links, see The link renders as plain text instead of being clickable.
SSH links require Claude Desktop v2.110.0 or later.
The following link names the user dev on build.example.com, port 2222, and the folder /srv/payments, and fills in a prompt:
ssh_host is required:
~/.ssh/config works as ssh_host only for people who have that entry. To match a connection people already have, give the link the same user, host, and port as that connection.
When you open the link, Desktop asks you to confirm before it selects the connection:
- A connection you already have: if the host, user, and port match one of your connections, Desktop asks whether to use it, and shows you the connection’s name and host, and the folder if the link names one.
- A new connection: otherwise Desktop opens the dialog for adding an SSH connection. When you add the connection, Desktop asks whether to connect before it saves anything, and shows you the host from the link, and the port and folder if the link names them.
- Before you confirm: check the host and folder.
- Before you send: check the prompt and the selected environment.
/ or ! and an @ file mention don’t act as a command or a mention. If you cancel, the prompt stays in the box and the environment you had selected doesn’t change.
A link doesn’t bypass sshHostAllowlist. Desktop checks the allowlist when it connects.
If the link opens Desktop without a dialog about the connection, look for one of these causes:
- You’re signed out: sign in, then open the link again.
- Another dialog is open: close it, then open the link again.
- The link isn’t valid: Desktop shows a message that says what to fix, and doesn’t fill in the prompt.
- Desktop is older than v2.110.0: earlier versions ignore the SSH parameters and open the new-session page with only the prompt.
- SSH sessions are turned off: if your administrator sets the allowlist to an empty array, Desktop refuses SSH links.
Pre-configure SSH connections for your team
Administrators can distribute SSH connections to team members by settingsshConfigs in managed settings.
- What users see: connections defined this way appear in each user’s environment selector automatically.
- What users can change: users can select a managed connection and set their own Worktree folder for it. They can’t edit its other fields or delete it in the app.
id, name, and sshHost. The sshPort and sshIdentityFile fields are optional. Users can also add sshConfigs to their own ~/.claude/settings.json.
If you leave user@ out of sshHost, Desktop connects as the User that each developer’s ~/.ssh/config sets for the host, or else as their username on their own computer.
Restrict which SSH hosts users can connect to
Administrators can limit Desktop’s SSH sessions to an approved set of hosts by settingsshHostAllowlist in managed settings. When set, users can only connect to hosts whose resolved hostname matches one of the patterns. Set it to an empty array to disable SSH sessions. The sshHostAllowlist reference entry says how an empty array combines with lists in other managed sources.
The following example allows connections to any host under devboxes.example.com and to a single named bastion host:
* matches any host, and *.example.com matches example.com and any subdomain. Anything else is an exact match. The check runs against the hostname after ~/.ssh/config resolution via ssh -G, so Host aliases and ProxyCommand/ProxyJump entries are permitted as long as the resolved HostName matches.
sshHostAllowlist is read from managed settings only; values in user or project settings are ignored. Only the Claude Desktop app honors this setting; the Claude Code CLI and IDE extensions do not read it, and it does not restrict ssh commands run through the Bash tool. It governs which hosts the Desktop app connects to, not network egress, so pair it with your organization’s network or zero-trust controls if you need a hard boundary.
Turn off local sessions and distribute SSH connections
To turn off local sessions and limit SSH sessions to hosts that you choose, deploydisableDesktopLocalSessions, sshConfigs, and sshHostAllowlist together.
sshHostAllowlist can turn them on. Read SSH remote sessions in Claude Desktop on 3P before you deploy these keys.- The CLI: none of the keys stops a developer from running the Claude Code CLI on their own computer
- Cowork: none of the keys applies to Cowork sessions or Cowork scheduled tasks
- Cloud sessions: none of the keys changes whether cloud sessions are available. To turn them off, use the Cloud sessions setting under Admin console controls.
- Hostnames: make sure that a pattern in
sshHostAllowlistmatches the hostname of eachsshConfigsentry, withoutuser@, or developers can’t connect to it. For how Desktop matches a hostname, see Restrict which SSH hosts users can connect to. - Version:
disableDesktopLocalSessionsrequires Claude Desktop v1.37937.0 or later - File permissions: make sure that each developer’s account on the computer can read the managed settings file. Desktop doesn’t apply the keys in a file that the account can’t read, and Claude Code starts without them too.
Check the environment selector
- The entry for that computer, in gray
- Shared Dev VM under SSH. If it isn’t listed there, click the single SSH row, or More at the end of the group.
- Desktop version: update Desktop if it’s earlier than v1.37937.0.
- Managed settings file: make sure that the file is valid JSON.
- Managed source: make sure that the computer reads the managed source that holds the keys.
Add a host that isn't on the allowlist
other.example.com. Desktop saves the connection but refuses to connect, and says that your organization’s settings don’t allow the connection.Enterprise configuration
Organizations on Team or Enterprise plans can manage desktop app behavior through admin console controls, managed settings files, and device management policies.Admin console controls
These settings are configured through the admin settings console:- Desktop: control whether users in your organization can access Claude Code in the desktop app
- Cloud sessions: enable or disable cloud sessions for your organization
- Remote Control: enable or disable Remote Control for your organization
OTEL_* environment variables, so the form takes effect even though Claude Code in that session never fetches admin-console settings.To export telemetry from Code tab sessions, set CLAUDE_CODE_ENABLE_TELEMETRY and the OTEL_* variables in the env block of your Claude Code managed settings, as shown in administrator configuration for monitoring. Local, cloud, and SSH sessions each read managed settings from different sources. For the hosts a cloud session can reach, see network access. For the service.name that Code tab sessions report, see service information.To find out which remote machine an SSH session ran on, see Attribute telemetry to Desktop SSH sessions.Managed settings
Managed settings override project and user settings and apply to Claude Code sessions in Desktop. You can set these keys in your organization’s managed settings file or push them remotely through the admin console.availableModels are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see surface coverage.
- Local sessions on this machine: a managed settings file deployed to disk applies. Managed settings pushed remotely through the admin console also reach these sessions on Anthropic’s API when the session authenticates with an eligible login, following the same settings precedence as the terminal CLI.
- Cloud sessions: receive server-managed settings; device-deployed files don’t reach them, because they run on Anthropic-managed VMs. Sessions routed to a self-hosted environment also read the managed settings file in the runner image. How Claude Code combines managed sources says when that file applies.
- SSH sessions: the session reads the managed settings file from the remote host. Desktop itself reads
sshConfigs,sshHostAllowlist,disableSshSavedPasswords, anddisableDesktopLocalSessionson the local machine. If you deliver more than one managed source, it reads them from one by default. - Cowork sessions: in a Cowork session on this machine, Claude Code never fetches admin-console settings, even when the user signs in with a Team or Enterprise account, and reads policy deployed to the machine unless your Claude Desktop configuration sets
requireCoworkFullVmSandbox. Remote Cowork sessions receive neither. See where and when a policy applies for which device files reach Cowork, and MCP permission rules for howBashandWebFetchrules apply to Cowork’s tools.
managed-mcp.json reaches those connectors, whichever settings source or file location you use. To block a connector’s tools in these sessions, use your organization’s connector tool controls. How connectors reach Claude Code shows which settings govern connectors in each kind of session.
permissions.disableBypassPermissionsMode and disableAutoMode also work in user and project settings, but placing them in managed settings prevents users from overriding them.
For the permission, plugin, and delivery keys only a managed source can set, see Keys only managed settings can set.
Device management policies
IT teams can manage the desktop app through MDM on macOS, group policy on Windows, or a policy file on Linux. Available policies include enabling or disabling the Claude Code feature, controlling auto-updates on macOS and Windows, and setting a custom deployment URL.- macOS: configure via
com.anthropic.claudefordesktoppreference domain using tools like Jamf or Kandji - Windows: configure via registry at
SOFTWARE\Policies\Claude - Linux: configure via a root-owned file at
/etc/claude-desktop/managed-settings.json, which holds the policy keys as a JSON object. Desktop refuses the file if anyone but root can write to it or to its folder. It’s a different file from Claude Code’s managed settings file.
Network access requirements
Desktop loads its application code and user content from Anthropic CDN hosts.bridge.claudeusercontent.com through the same proxy egress as claude.ai and api.anthropic.com. If you can’t route it that way, add the egress address your proxy uses for that host to your organization’s IP allowlist, but only when that address is dedicated to your organization: a shared proxy egress range also admits the proxy vendor’s other customers.
Anthropic checks connections to that host against your organization’s IP allowlist using the address they arrive from. If your proxy sends traffic for it out through an address that isn’t on that allowlist, Claude in Chrome and other features that connect through the bridge stop working while the rest of the app keeps working.
An artifact that loads a typeface from Google Fonts also requests fonts.googleapis.com and fonts.gstatic.com. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render.
Artifacts can also load JavaScript libraries, such as React or a charting package, from cdnjs.cloudflare.com, cdn.jsdelivr.net, cdn.tailwindcss.com, code.jquery.com, and unpkg.com, and from no other external host. If you block those hosts, the parts of an artifact that depend on a library don’t work, and unlike a blocked font, a blocked library has no fallback. Block with a fast rejection here too, so a blocked library request fails at once rather than hanging until it times out.
Authentication and SSO
Team and Enterprise organizations can require SSO for all users. See authentication for plan-level details and Setting up SSO for SAML configuration; OIDC setup is covered in the Claude Enterprise Administrator Guide.Data handling
Claude Code processes your code locally in local sessions, or in cloud sessions on Anthropic-managed infrastructure, unless your organization routes them to a self-hosted environment. Cloud sessions, including in a self-hosted environment, send conversations and code context to Anthropic’s API for processing; local and SSH sessions send them to whichever model provider your deployment configures, Anthropic’s API by default. See data handling for details on data retention, privacy, and compliance.Deployment
Desktop can be distributed through enterprise deployment tools:- macOS: distribute via MDM such as Jamf or Kandji using the
.dmginstaller - Windows: deploy via the MSIX package. See Deploy Claude Desktop for Windows for enterprise deployment options including silent installation
Coming from the CLI?
If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each keeps its own session list, and you can bring a CLI session into Desktop. They share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run/desktop in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and x64 Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry.
From your shell, claude --desktop opens Desktop directly without starting a terminal session. It requires Claude Code v2.1.285 or later and has the same platform and sign-in requirements as /desktop. With no other arguments, it opens Desktop on the current directory. To open an existing CLI session in Desktop, add --continue for the most recent conversation in this directory, or --resume with the session ID that /status shows:
Opening session <session-id> in Claude Desktop, the session opens in the app, and the command exits. A session name doesn’t work in place of the ID. Claude Code doesn’t move a session that is open in another terminal or still running in the background. If Claude Desktop isn’t installed, the command prints a download link and exits.
You can also pick up a CLI session from inside Desktop with /resume. The command is available in local sessions, not in SSH, WSL, or cloud sessions.
To continue a terminal session in Desktop:
- Close the session in the terminal.
- In the Desktop prompt box, type
/resume. Desktop lists the sessions you started from the CLI on this computer. Search by title, folder, or branch, and preview where each one left off. - Select the session. It continues in the app with its full conversation and context.
claude --resume in the terminal still finds it afterwards.
CLI flag equivalents
This table shows the desktop app equivalent for common CLI flags. Flags not listed have no desktop equivalent because they are designed for scripting or automation.Shared configuration
Desktop and CLI read the same configuration files, so your setup carries over:- CLAUDE.md and
CLAUDE.local.mdfiles in 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. - Models: the same models are available in both. In Desktop, select the model from the model picker in the row under the prompt box. You can change the model mid-session from the same picker.
MCP servers from the Claude Desktop chat app
The Desktop app loads MCP servers fromclaude_desktop_config.json into local Code tab sessions, alongside servers from ~/.claude.json and .mcp.json. A server you define in claude_desktop_config.json is available in both the Desktop chat surface and local Code tab sessions.
If you define the same server name in claude_desktop_config.json and in ~/.claude.json or .mcp.json, the Code tab in local sessions connects once and uses the claude_desktop_config.json definition.
The app also re-delivers stdio servers from ~/.claude.json to the embedded CLI in local sessions. When the top level of ~/.claude.json (user scope) and .mcp.json define the same stdio server name, the Code tab uses the ~/.claude.json definition, departing from the CLI scope hierarchy.
claude_desktop_config.json. On macOS and WSL, run claude mcp add-from-claude-desktop to copy those servers into ~/.claude.json. See Import MCP servers from Claude Desktop for the import flow and scope options.Feature comparison
This table compares core capabilities between the CLI and Desktop. For a full list of CLI flags, see the CLI reference.What’s not available in Desktop
The following features aren’t available in Desktop, except where noted:- Third-party providers: Desktop connects to Anthropic’s API by default. To route Desktop through a gateway, or to run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, follow the links in the Third-party providers row.
- Linux (beta): Computer Use isn’t yet available in the Linux desktop app. See Claude Desktop on Linux.
- Inline code suggestions: Desktop doesn’t offer autocomplete-style code completions. It works through conversational prompts and explicit code changes, and can suggest your next prompt after Claude replies.
- Agent teams: coordinated teams, where Claude as the team lead assigns tasks to teammates from a shared task list, are available in the CLI, not in Desktop. For multi-agent work inside one session, use dynamic workflows, which run in Desktop; Claude can also message and manage your other sessions directly.
- Terminal-dialog commands: built-in commands that open an interactive panel in the terminal behave differently in the Code tab. Edit settings files directly to manage permission rules and configuration, or run the commands from the standalone CLI.
- Commands with no argument form, such as
/permissions, reply withisn't available in this environment. /configopens Settings → Claude Code. Text after the command is ignored, so/config theme=darkdoesn’t set the theme.
- Commands with no argument form, such as
Troubleshooting
The sections below cover issues specific to the desktop app. For runtime API errors that appear in the chat such asAPI Error: 500, 529 Overloaded, 429, or Prompt is too long, see the Error reference.
Check your version
To see which version of the desktop app you’re running:- macOS: click Claude in the menu bar, then About Claude
- Windows: click Help, then About Claude
Claude Code version in the Code tab
To see which version of Claude Code a session runs, type/status in a local session in the Code tab and read the Claude Code row, which shows a version such as 2.1.286.
To get a newer version for local sessions, open Claude > Check for Updates… on macOS or Help > Check for Updates… on Windows, then start a new session.
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.
Check which layout you have
If a new session has no environment selector under the prompt box, you have the earlier layout:- Desktop older than v2.37337.0: update to get the current layout. Select Claude > Check for Updates… on macOS or Help > Check for Updates… on Windows.
- Third-party provider: you keep the earlier layout, so there is nothing to do.
403 or authentication errors in the Code tab
If you seeError 403: Forbidden or other authentication failures when using the Code tab:
- Sign out and back in from the app menu. This is the most common fix.
- Verify you have an active paid subscription: Pro, Max, Team, or Enterprise.
- If the CLI works but Desktop does not, quit the desktop app completely, not just close the window, then reopen and sign in again.
- Check your internet connection and proxy settings.
Blank or stuck screen on launch
If the app opens but shows a blank or unresponsive screen:- Restart the app.
- Check for pending updates. On macOS and Windows the app auto-updates on launch; on Linux, update through apt as described in Claude Desktop on Linux.
- On a managed network, confirm your firewall allows the CDN hosts in network access requirements.
- On Windows, check Event Viewer for crash logs under Windows Logs → Application.
”Failed to load session”
If you seeFailed to load session, the selected folder may no longer exist, a Git repository may require Git LFS that isn’t installed, or file permissions may prevent access. Try selecting a different folder or restarting the app.
Session not finding installed tools
If Claude can’t find tools likenpm, node, or other CLI commands, verify the tools work in your regular terminal, check that your shell profile properly sets up PATH, and restart the desktop app to reload environment variables.
Git and Git LFS errors
Sessions that run in their own worktree need Git. If you see “Git is required,” install Git, or Git for Windows on Windows, and try again. On Windows, Claude Desktop versions before 1.49585.0 asked for Git before starting any local session; if you see that prompt and aren’t using worktrees, update the app. If you see “Git LFS is required by this repository but is not installed,” install Git LFS from git-lfs.com, rungit lfs install, and restart the app.
MCP servers not working on Windows
If MCP server toggles don’t respond or servers fail to connect on Windows, check that the server is properly configured in your settings, restart the app, verify the server process is running in Task Manager, and review server logs for connection errors.SSH connection fails after you log in
Find the card’s title, or the code that ends the error message, in this table, then do what the last column says. To see the message, select View details on the failure card.Get Desktop’s logs for an SSH problem
You getssh.log, Desktop’s record of its SSH connections, in a zip file of Desktop’s logs that you save from the Help menu. To save it, open Help > Troubleshooting and select the item for your system:
- macOS: Show Logs in Finder
- Windows: Show Logs in File Explorer
- Linux: Show Logs in File Manager
<host> and <user> stand for names that Desktop replaced. Desktop doesn’t replace every name, and an SSH host or user name can still appear as written. If you send the zip file to someone, tell them which host failed and when, because the logs may not name it.
The zip file doesn’t hold the log of the helper program that Desktop installs on the remote machine. To get that log as well, copy remote-server.log from the helper’s folder under ~/.claude/remote/run/ in the home directory of the user who connected. Look through that file too before you send it.
App won’t quit
- macOS: press Cmd+Q. If the app doesn’t respond, use Force Quit with Cmd+Option+Esc, select Claude, and click Force Quit.
- Windows: use Task Manager with Ctrl+Shift+Esc to end the Claude process.
Windows-specific issues
- PATH not updated after install: open a new terminal window. PATH updates only apply to new terminal sessions.
- Concurrent installation error: if you see an error about another installation in progress but there isn’t one, try running the installer as Administrator.
”Branch doesn’t exist yet” when opening in CLI
Cloud sessions can create branches that don’t exist on your local machine. Click the branch name in the session and select Copy branch name, then fetch it locally:Still stuck?
- Open Help → Get Support in the desktop app, or visit the Claude support center directly
- For problems that also reproduce in the standalone
claudeCLI, search or file a bug on GitHub Issues