sun168567/cc-desk-tunnel
用桌面客户端驱动云端的 Claude Code,经反向隧道在 Windows 本机执行 · Desktop client for Claude Code in the cloud, executing on your Windows PC through a reverse tunnel
What it solves
Normally, to let Claude Code work on a project, you either move the project to a server and rebuild the toolchain there, or you operate a CLI on a remote server over a slow, awkward remote desktop or SSH terminal. CC Desk Tunnel avoids all that by keeping the project, compilers, and tools on your Windows machine, while the Claude Code agent runs on a small Linux server. The agent reads and writes files and executes commands on your local computer through an encrypted reverse tunnel, so you get a native desktop experience with fast, familiar input, scrolling, and copy-paste.
How it works
A desktop client on Windows connects out over a single WSS (WebSocket Secure) encrypted tunnel to a lightweight proxy service running on a Linux server. Inside that tunnel two kinds of connections travel: one between the client and the proxy for user messages, Claude's streamed output, and approval requests; another carries SSH traffic from the server's forwarding layer to your local OpenSSH service, letting Claude Code execute commands and access files on your machine. The Windows side always initiates the connection, so no public IP or inbound ports are needed on your PC. Each connection uses a temporary SSH key that is destroyed when the connection closes, and no persistent service is installed on Windows. The project is just a thin glue layer over the official Anthropic Agent SDK and the unmodified official Claude Code CLI—it does not alter the CLI, its tools, approvals, or context management.
Who it's for
This is for a single user who wants to keep development work on a powerful Windows machine with all their preferred editors and tools, while running the Claude Code agent on a low-spec Linux server. It suits developers who have their own trusted Linux server (with a public IP or domain), a Windows 10/11 x64 PC, and a Claude account. The README emphasizes that the server must be fully trusted because it gains the ability to execute arbitrary commands on your Windows machine during a session. macOS and Linux clients exist but are marked experimental.
Highlights
- Project-based session management: sessions are grouped by local Windows folders; you can create, rename, delete, search, fork, and re-edit any of your own messages.
- Two client types: a graphical desktop app with collapsible process summaries, and a terminal client
ccdtthat opens the original Claude Code in your own terminal sharing the same sessions. - Native controls: streamed responses, thinking summaries, tool call details, model and reasoning strength settings, approval modes, context compression, scheduled tasks, and one-click upgrades for both client and server.
- Security-first design: only one inbound TCP port (default 8787) is exposed; the SSH port to your PC is bound only to the container's loopback and never published; temporary keys per connection; the server-side login is rate-limited.
- Open source: all self-authored components are Apache-2.0 licensed, with no closed-source features; the official Claude Code CLI and Agent SDK are installed via official channels and remain under Anthropic's terms.
Related
- Project
- Project
- Project
- Project