claude-code-windows-server
v1.0.5
Published
Bridge server to run Claude Code with Windows client
Maintainers
Readme
Claude Code Windows Server
A bridge server that enables Claude Code to work with Windows systems by proxying filesystem operations through WebSocket to a Windows client.
Installation
npm install -g claude-code-windows-serverUsage
Start the server on your Linux/macOS machine:
claude-code-windows-server --port 8080 --api-key your-secret-keyOptions
--port, -p <port>: Server port (default: 8080)--api-key, -k <key>: API key for client authentication (default: 'default-key')--host, -h <host>: Server host (default: '0.0.0.0')
How it works
- The server starts a WebSocket server and waits for Windows client connection
- Once connected and authenticated, it overrides Claude Code's filesystem tools
- All filesystem operations are converted to PowerShell commands and sent to the Windows client
- The Windows client executes PowerShell commands and returns results
- Claude Code receives results as if it were running natively on Windows
Architecture
The server intercepts:
fetch()calls to Claude API to replace filesystem tools with PowerShell toolchild_process.spawn()calls to redirect command execution to Windows client
Security
- API key authentication required for client connections
- Command validation on Windows client side
- No direct filesystem access from server
Requirements
- Node.js 16+
- WebSocket connectivity to Windows client
- Claude Code installation on the Linux/macOS machine
