Claude Code Desktop: Install, Privacy, and Data Guide
Team Sonomos · Sonomos
Team Sonomos writes about AI, privacy, and what happens to sensitive information at work.
Key takeaways
- Claude Code desktop is the Code tab in Anthropic's Claude desktop app: a GUI for the same agentic coding tool as the CLI, on macOS, Windows and Linux (Linux in beta).
- It needs a paid plan (Pro, Max, Ultra, Team or Enterprise). The free Claude plan does not include Claude Code.
- Inference runs in Anthropic's cloud, so prompts and the file context the agent reads are uploaded with every request, and nothing works offline. Desktop sessions can also run entirely on Anthropic's infrastructure, which puts your repository there too.
- On commercial plans Anthropic does not train on Claude Code prompts or code and keeps them for 30 days by default. On consumer plans training depends on a setting, and retention is five years if it is on.
- Network-based DLP cannot see inside these sessions on BYOD laptops. Controls that run on the endpoint, before the request leaves, close part of that gap.
Claude Code desktop is the native GUI for Anthropic's agentic coding tool. Inside the Claude desktop app, the Code tab lets you point the agent at a repository, review its edits as diffs, approve or reject actions, and keep a history of sessions, without living in the terminal. This guide covers installation on all three operating systems, how the desktop app differs from the CLI and the chat app, and what data it sends, so IT and security leads can govern it on BYOD laptops instead of chasing shadow AI.
What is Claude Code desktop and how does it differ from the Claude chat app and CLI?
Claude Code desktop is the Code tab of the Claude desktop app, and it runs an agentic coding assistant against a repository. Unlike the chat tab, which answers prompts, the Code tab reads your files, edits them and runs commands in your project directory. Unlike the terminal CLI, it wraps the same agent in a GUI with file-by-file diffs, line comments, permission modes and session history.
What runs locally vs what runs in the cloud
Model inference always runs in Anthropic's cloud. Where the rest runs depends on the session type you pick. A local session runs the agent loop, file reads and commands on your machine. A cloud session runs on Anthropic-managed infrastructure and keeps going after you close the app, which means your repository is checked out on Anthropic's machines rather than yours. The app can also run sessions over SSH on a remote machine, or inside WSL on Windows.
Where your code and prompts actually go
| Surface | What leaves your machine | Runs commands | GUI diffs |
|---|---|---|---|
| Claude chat | Only what you paste or upload | No | No |
| Claude Code CLI | Prompts plus the file context the agent reads, per request | Yes, locally | No |
| Code tab, local session | Prompts plus the file context the agent reads, per request | Yes, locally | Yes |
| Code tab, cloud session | The repository itself, plus everything the session produces | Yes, on Anthropic's infrastructure | Yes |
Because file context ships with every request, what the agent can read is what you are disclosing. We cover that risk in depth in our guide to Claude Code and sensitive code.
What are the system requirements and subscription requirements for Claude Code desktop?
The Claude desktop app runs on macOS 13 or later (one build for Intel and Apple Silicon), Windows 10 or later (x64 and ARM64), and Linux in beta, where Anthropic supports Ubuntu 22.04+ and Debian 12+ only. The CLI supports a wider spread: macOS 13+, Windows 10 1809+ or Windows Server 2019+, Ubuntu 20.04+, Debian 10+ and Alpine 3.19+, with at least 4 GB of RAM. Both need an internet connection.
Claude Code requires a Pro, Max, Ultra, Team or Enterprise subscription, or a Console account billed through the API for the CLI. The free Claude plan does not include it. On Team, both standard and premium seats include Claude Code, so seat count is effectively your deployment ceiling.
One planning note: a coding agent with terminal and file access will touch secrets and proprietary code, especially on BYOD laptops where you do not control what else is installed or which credentials sit in local dotfiles. If you are sizing a rollout, count paid seats first, decide which accounts must be organizational rather than personal, and then decide which devices need an endpoint control, because a paid seat on an uncontrolled laptop is the combination that turns into an incident report.
How do you install Claude Code on macOS?
For the desktop app, download the Claude desktop app from claude.ai/download, drag it into Applications and open the Code tab. For the CLI, Anthropic's recommended route is the native installer, curl -fsSL https://claude.ai/install.sh | bash, or Homebrew with brew install --cask claude-code. That cask installs the CLI, not the desktop app. You need macOS 13 or later and an active paid plan or Console account.
First-run authentication
Launch the app and sign in with your Claude account. If your organization runs Claude through a Team or Enterprise workspace, sign in with that account so the workspace's policies and commercial data terms apply to your sessions rather than your personal plan's.
Pointing it at a project directory
In the Code tab, start a session and choose the folder, or launch the CLI with claude from the repository root. A local session reads and edits files inside the directory you choose, so scope it deliberately. Before pointing it at proprietary code, read Anthropic's page on Claude Code data usage for how training and retention apply to your plan.
How do you install Claude Code on Windows and Linux?
Windows: native vs WSL setup
The desktop app installs from claude.ai/download on Windows 10 or later. For the CLI, the native route is irm https://claude.ai/install.ps1 | iex in PowerShell, or winget install Anthropic.ClaudeCode. Git for Windows is optional: without Git Bash, Claude Code uses PowerShell for shell commands. The WSL route is to install WSL 2 with a Linux distribution and follow the Linux steps inside it; the desktop app can also run sessions inside WSL directly.
Choose WSL if your repositories rely on Unix-only tooling, shell scripts or Linux-specific dependencies, or if you want Claude Code's sandboxing, which on Windows works only under WSL 2. Choose native if you want the agent to work directly against Windows paths and Windows-installed tools. Either way, run it as your normal user, not as administrator.
Linux install and permissions
On Ubuntu 22.04+ or Debian 12+, the desktop app installs from Anthropic's apt repository with sudo apt install claude-desktop, or from a .deb; Fedora and RHEL are not supported for the desktop app, and Linux lacks Computer Use and dictation. The CLI installs on more distributions with the native installer, curl -fsSL https://claude.ai/install.sh | bash, or through Anthropic's apt, dnf and apk repositories. The npm package, npm install -g @anthropic-ai/claude-code, is still supported but needs Node.js 22 or later; if npm throws a permissions error on global installs, set a user-level prefix (npm config set prefix ~/.npm-global) rather than installing with sudo.
Once installed, Claude Code runs with the same file permissions as your user account, so it can read anything your account can. That matters if your shell session holds secrets or your home directory holds credentials. For what that session activity looks like from the IT side, see can my employer see my Claude activity.
What can you actually do with Claude Code desktop day to day?
Four workflows cover most daily use. Refactors: describe a change ("migrate these class components to hooks") and Claude Code edits across multiple files, then shows a diff you accept or reject file by file. Test generation: point it at a module and ask for unit tests that match your existing framework and style. Repository Q&A: ask "where is rate limiting enforced?" and it searches the codebase and answers with file references, which beats grepping an unfamiliar repo. Git operations: it drafts commits and pull request descriptions and works through merge conflicts file by file.
The permission mode sets how much it does without asking. In Manual mode it asks before editing files or running commands and shows you each diff; Accept edits, Plan and Auto hand over progressively more, and Bypass permissions removes the prompts entirely. On a machine with real credentials, start in Manual.
One habit worth building: before you paste secrets, customer data or production logs into a prompt, assume they will reach Anthropic as written. Masking sensitive values on the device first, or keeping them out of the working directory, is the only way to be sure they do not.
What data does Claude Code desktop send, and what can your employer or admin see?
Claude Code sends your prompts, the files and code context the agent reads, and command output to Anthropic's API, encrypted in transit. What Anthropic does with it depends on the account. Under commercial terms (Team, Enterprise and the API), Anthropic says it does not train models on Claude Code prompts or code and keeps them for 30 days by default, with zero data retention available to eligible Enterprise organizations. On consumer plans (Pro, Max and Ultra), Anthropic trains on Claude Code sessions only if the model-improvement setting is on, and retains the data for five years when it is on and 30 days when it is off. Separately, the client keeps session transcripts on your machine in plain text under ~/.claude/projects/.
What admins see in team plans
On Team and Enterprise, admins get seat management, usage reporting and policy controls, including the ability to turn off local desktop sessions for the organization. They can see that a seat is active and how much it is used. That tells you who is using Claude Code, not what left the endpoint in a given session. If you are the admin, assume you are blind to prompt-level detail unless you deploy something that runs on the device.
Why network-only controls miss desktop agents
This is where shadow AI gets past most security teams. A network-based AI policy tool only sees traffic that flows through corporate infrastructure, and half of a typical engineering team works on personal laptops, home connections and coffee shop wifi. Desktop agents call the API directly from the endpoint over HTTPS, so web filtering tells you that a domain was contacted, not what was inside the request.
The fix is endpoint and session-level control: clipboard and paste detection, because paste is the tell, and masking sensitive data on the device so it is replaced before it leaves. That is the approach Locke, made by Sonomos, takes. Its local proxy screens the requests Claude Code sends to the model API and masks the API keys, tokens and other secrets it detects, and the Locke desktop app recognizes and screens desktop wrapper apps such as Claude desktop. It runs on x64 Windows and Linux, not macOS, and coverage depends on the app, platform and settings. The same questions apply to tools like Nightfall AI, Protecto, Private AI and Prompt Security: ask where the control runs, and whether it sees the session or only the network.
Is Claude Code desktop safe to use with proprietary or sensitive code?
It depends on what your code contains, which account you use and who controls the endpoint. Anthropic's commitment not to train on code sent under commercial terms governs the vendor side. It says nothing about what a developer pastes into a prompt on a personal laptop, whether an API key in a .env file gets read into context, or whether someone chose a cloud session for a repository that should never leave your machines.
Secrets and clipboard risk on BYOD laptops
Paste is the tell. Most sensitive-code incidents start with someone copying credentials, customer data or proprietary logic into a prompt on a machine you do not manage. Network DLP never sees it, because much of your team is not on your network.
How on-device masking fits in
Session-level controls that mask sensitive values on the endpoint, before the request leaves, close part of that gap. One-way placeholders let the model work on the structure of a config file or a log without receiving the secrets in it. They do not protect the code itself: a masking tool that recognizes keys and personal data will still send proprietary logic as written.
Running the same checklist against Locke
Locke masks detected values on the device before they reach the AI tools it screens. It covers Claude Code's API calls through its local proxy on x64 Windows and Linux, and the Claude desktop app as a recognized wrapper. It does not recognize proprietary code, it cannot screen cloud sessions that run on Anthropic's infrastructure, and it does not run on macOS, so pair it with an organizational account, a scoped working directory and the secret-hygiene practices for Claude Code. Locke's known limitations list the rest.
How do you troubleshoot common Claude Code desktop setup errors?
Authentication and token errors
Most authentication failures come down to a stale session or a mismatch between the account you signed into and the one with the subscription. Sign out fully, quit the app, then sign back in and confirm the plan shows as active. If you authenticate the CLI with a Console API key instead, check that the key has not been revoked or scoped to a different workspace. Corporate proxies can also break authentication, so test once on a direct connection to rule that out. If your organization provides Claude through a workspace, confirm you signed in with the email that holds the paid seat, since a personal account on a managed device is the most common mismatch of all.
WSL and path issues on Windows
If Claude Code cannot find your project files, you are probably mixing Windows paths with WSL paths. Run it inside the WSL distribution where your repository lives, and reference files with Linux-style paths like /home/user/project, not C:\Users.... Version conflicts usually mean an older CLI install is shadowing a newer one: check claude --version in both environments, since WSL and Windows keep separate installations. For connectivity errors, check proxy settings inside WSL separately from Windows, because they do not share configuration. If edits succeed but tests fail, remember that tool versions also differ between the two environments: a Node or Python version installed on the Windows side does not exist inside WSL until you install it there.
Frequently asked questions
Does Claude Code desktop work offline?
No. Anthropic lists an internet connection as a requirement. A local session runs the agent loop, file reads and commands on your machine, but model inference runs in Anthropic's cloud, so prompts and file context are sent with every request. Without a connection to Anthropic's API, the app cannot generate edits, answer questions about the repository or run any agentic task.
Can I use Claude Code desktop with a free Claude account?
No. Claude Code requires a Pro, Max, Ultra, Team or Enterprise subscription, or a Console account for the CLI. The free Claude plan does not include it. If your organization provides Claude through a Team or Enterprise workspace, sign in with that account so the workspace's policies and commercial data terms apply to your sessions.
How do I uninstall or reset Claude Code on my desktop?
The desktop app uninstalls like any other app: drag it to the Trash on macOS, remove it from Installed apps on Windows, or sudo apt remove claude-desktop on Linux. The CLI is removed with the tool you installed it with, such as brew uninstall --cask claude-code or npm uninstall -g @anthropic-ai/claude-code; WSL and Windows keep separate installations, so clean up both. Local transcripts under ~/.claude/ stay until you delete them. To reset authentication instead, sign out fully, quit the app and sign back in.
Does Anthropic train on code I work on in the Claude Code desktop app?
Not under commercial terms: Anthropic says it does not train generative models on code or prompts sent to Claude Code by Team, Enterprise or API customers unless they opt in. On consumer plans (Pro, Max and Ultra), it trains on Claude Code sessions when your model-improvement setting is on. Either way, whatever a developer sends in a prompt still leaves the device and is retained for at least 30 days.
Is Claude Code desktop available as a GUI or is it terminal-only?
Both exist. The CLI runs in your terminal, and the Code tab in the Claude desktop app wraps the same agent in a GUI on macOS, Windows and Linux (beta), adding file-by-file diffs, line comments, permission modes and session history. You can use both on the same project, but they are separate installs: the Homebrew claude-code cask and the native installer give you the CLI, and claude.ai/download gives you the desktop app.
Sources and primary references
Reviewed November 25, 2026. Vendor statements are cited to the vendor's own documentation as it read on that date; Anthropic revises these pages often, so confirm before relying on them.
- Use Claude Code Desktop: the Code tab, local, cloud, SSH and WSL sessions, permission modes, diff review and the admin setting that disables local sessions.
- Claude desktop on Linux: Linux beta, Ubuntu 22.04+ and Debian 12+, apt install, missing features.
- Install Claude Desktop: supported operating systems and download.
- Claude Code setup: CLI system requirements, native installer, Homebrew, WinGet and npm (Node.js 22+), required plans.
- Claude Code data usage: training under consumer and commercial terms, 30-day and five-year retention, zero data retention, local transcripts.
- Updates to Anthropic's consumer terms: the 2025 model-improvement setting and five-year retention for consumer accounts, including Claude Code.
Related reading
Keep keys and secrets out of what your coding agent sends
Locke's local proxy screens the requests that command-line agents, scripts and SDKs such as Claude Code send to model APIs, and masks the API keys, tokens and other secrets it detects before they leave your machine. It does not recognise proprietary code, so your code is sent as written, and Cursor and Devin Desktop (formerly Windsurf) use a format Locke cannot read yet.
Sonomos, which publishes this blog, makes Locke. Free for one person on x64 Windows and Linux; macOS is coming soon.
This article is general information about privacy and AI, not legal advice, and reading it does not create a solicitor–client or attorney–client relationship. Regulatory requirements turn on your specific facts and jurisdiction and change over time. Consult qualified counsel before relying on anything here, and check the publication and last-reviewed dates above. We may revise posts, but we do not undertake to keep any post current as the law changes.
Reference pages for this post
Related Articles
Anthropic's Data Processing Addendum: Article 28 Coverage and Gaps
Anthropic's DPA checked clause by clause against GDPR Article 28: what it covers, including 48-hour breach notice, and where it is thin, from audits to a 15-day sub-processor objection window. Plus why personal Claude accounts sit outside it.
ChatGPT GDPR: Settings Every Business Must Configure
The ChatGPT settings that decide GDPR exposure, plan by plan: training, retention, the DPA and EU data residency on Free, Plus, Business, Enterprise and the API, plus lawful basis, data subject requests and personal accounts.
Can My Company See My ChatGPT History? It Depends on the Account
Not on a personal Free, Plus or Pro account. On ChatGPT Business, Enterprise and Edu, admins can view and export workspace chats, and device and network tools can see usage on any account. How to check which account you are in.