congmnguyen/claude-code-wsl2-setup
Modular Claude Code CLI add-ons that bridge WSL2 and the Windows desktop
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
This is a modular integration kit for an existing Claude Code CLI inside WSL2, not a replacement client or an MCP server. Core Claude Code features use settings, hooks, and official LSP plugins. The Windows bridge uses separate mechanisms for each task: clipboard capture via a supervised helper, desktop alerts via a shared script, and browser handoff via BROWSER with an XDG fallback for OAuth CLIs.
A systemd user service keeps wsl-screenshot-cli running and restarts it on exit. Claude Code’s Notification hook and Codex’s top-level notify command both route to the Windows notification script. Figma Desktop MCP is a separate, optional project-scoped integration over mirrored networking. scripts/doctor.sh provides a read-only check of installed scripts, settings, and WSL2 prerequisites.
Key Capabilities & Differentiators
The clipboard flow saves Windows screenshots under /tmp/.wsl-screenshot-cli/ and lets users paste the resulting WSL file path into Claude Code or Codex. Windows balloon alerts cover events such as permission requests and completed work, with alerts suppressed when Windows Terminal is focused. bin/tmux-notify-run runs jobs in detached tmux sessions, preserves logs and exit status, and sends a completion alert.
On the coding side, official LSP plugins and language servers provide definition and reference navigation for TypeScript, Python, Go, and Rust. The statusline displays project directory, Git branch, session name, context-window fill, and color-coded five-hour and seven-day usage. Shift+Enter can be configured to insert a newline in Windows Terminal and VS Code’s integrated terminal, while zsh-managed titles distinguish Claude Code and Codex tabs.
Trade-offs & Limitations
Compared with a stock Claude Code install, this kit solves specific Windows-to-WSL workflow problems at the cost of more settings and processes to maintain. Selective setup is the better default: LSP and the statusline can be adopted without enabling clipboard monitoring or MCP. Check for duplicate screenshot monitors launched from shell startup files or Claude hooks before enabling the systemd service.
Native Ubuntu avoids the Windows-to-WSL interoperability layer, but it does not provide the same Windows desktop workflow. The maintainer now uses Ubuntu with Ghostty and no longer tests this setup daily on WSL2. Linux CI is useful, but it cannot establish that clipboard capture, focus-aware alerts, or browser handoff work on your host. Validate the features you rely on before rolling them out to a team.
Hardware & Deployment Guide
Start with Claude Code installed inside WSL2 and Windows Terminal on the host. Clone the repository and apply the features you want, preserving existing settings. Prerequisites are feature-specific: systemd user services and wsl-screenshot-cli for screenshots, tmux for detached jobs, zsh for managed titles, and mirrored networking for optional Figma Desktop MCP. Some features require Windows-side configuration. The scripts and configuration run locally; they do not deploy a model service.
Run bash scripts/doctor.sh for a read-only check. If a customization interferes with startup or normal behavior, use claude --safe-mode for a clean session and inspect the installation with /doctor, /hooks, or /mcp as appropriate. v2.0.0 narrowed the supported setup and fixed a security issue in the notification script. Linux CI passed, but changes made after September 8, 2026 had not been tested on real WSL2 at release.
Claude Code users already on WSL2 and Windows Terminal who want to add clipboard, notification, LSP, or statusline features selectively and can validate them on the host.
You need a centrally managed rollout with verified Windows behavior, a standalone MCP server, or simply a working Claude Code installation.
Quick Start & Installation
git clone https://github.com/congmnguyen/claude-code-wsl2-setup.git cd claude-code-wsl2-setup claude
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| claude-code-wsl2-setup ★ | 57 | +1 | Python | MIT | Modular Claude Code CLI add-ons that bridge WSL2 and the Windows desktop |
| rtk | 88.7k | +684 | Rust | Apache-2.0 | A local Rust CLI wrapper that trims command output before coding agents read it. |
| ECC | 316.1k | +4.2k | JavaScript | MIT | Plugins and CLI workflows for planning, reviewing, and verifying agent-written c |
| obsidian-skills | 56.2k | +1.7k | Shell | MIT | Agent Skills plugins for editing Obsidian files and working with vaults |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/congmnguyen/claude-code-wsl2-setup.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about claude-code-wsl2-setup
Is this an MCP server or a replacement for Claude Code?
What hardware is needed, and which components keep running?
Can a company use this internally, and does local deployment make the whole stack self-hosted?
How does it compare with a stock Claude Code install or native Ubuntu?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy