johnzfitch/claude-cowork-linux
Run Claude Desktop’s Cowork mode natively on Linux — no macOS or VM required
What it solves
This project enables the "Cowork" feature of Claude Desktop to run natively on Linux (x86_64). Officially, Cowork is a macOS-only preview that relies on a sandboxed Linux VM to read, write, and organize files. This repository removes the need for a VM or macOS by reverse-engineering the application and stubbing out the macOS-native components.
How it works
The project uses several techniques to trick the Claude Desktop application into running on Linux:
- Platform Spoofing: It sends macOS headers to Anthropic's servers so the Cowork features are enabled.
- Platform Gate Bypass: A Python script patches the application's internal checks to unconditionally report that Cowork is supported.
- Native Stubbing: It replaces macOS-specific native modules (
@ant/claude-swiftand@ant/claude-native) with JavaScript stubs. These stubs translate VM-style paths to actual Linux host paths and handle system-level tasks like opening the browser viaxdg-openfor authentication. - Direct Execution: Instead of launching a VM, the stub executes the Claude Code binary directly on the Linux host.
- Session Orchestration: A custom layer of 15 modules manages the lifecycle of processes, IPC communication, transcript persistence, and file watching.
Who it’s for
Linux users (specifically x86_64) with a Claude Pro or higher subscription who want to use the Cowork feature without needing a macOS machine or a virtual machine.
Highlights
- No VM Required: Runs the Claude Code binary directly on the host for better performance and simplicity.
- Detailed Path Translation: Transparently maps virtual paths (like
/sessions) to the user's home directory. - Extensive Testing: Includes 599 test cases validating IPC, path translation, and security.
- Broad Distro Support: Tested and expected to work on Arch Linux, Ubuntu, Fedora, Debian, and openSUSE, with a NixOS flake provided.
Related
- Project
- Dispatch
- Project
- Project
- Project