
# 🪄 Winx
### *The High-Performance, Remote-First MCP Runtime for AI Coding Agents*
**Durable PTY Sessions • Streamable HTTP • Guarded File Operations • Blazing Fast Rust 🦀**
"Give remote and local LLMs durable, authenticated hands on your development machine."
⚡ Quickstart •
✨ Features •
🏗️ Architecture •
🌐 HTTP Guide •
🛡️ Security
English • Português • 中文
Winx is a **remote-first MCP runtime** for agents that need a real shell, guarded file-editing primitives, repository-aware
code navigation, and sessions that survive dropped connections. Its primary deployment path is a hardened
**Streamable HTTP** endpoint for ChatGPT and other cloud or networked MCP clients; stdio remains fully supported for
Claude Code, Codex CLI, Cursor, VS Code, and other local clients.
On Linux, macOS, and native Windows, Winx separates the MCP adapter from the processes that own each PTY. `winxd`
manages the control plane and one `winx-guardian` per logical session keeps the shell alive across HTTP disconnects,
client restarts, and adapter upgrades (Unix-domain sockets on Unix, named pipes plus job objects on Windows).
It started as a Rust port of [WCGW](https://github.com/rusiaaman/wcgw), but it is not a Python wrapper: `cd` persists,
`Ctrl+C` interrupts the real process, interactive TUIs work, and large terminal output is rendered and token-budgeted
before reaching the model.
> [!IMPORTANT]
> **Streamable HTTP is the main deployment path.** Winx binds it to loopback by default, requires a strong bearer token,
> supports independent authenticated principals, and defaults to one durable session per principal/workspace. Repeated
> stateless `Initialize` calls reattach instead of manufacturing a new guardian.
## Remote MCP in 60 seconds
```bash
cargo install winx-code-agent
mkdir -p ~/.config
install -m 600 /dev/null ~/.config/winx-http-token
openssl rand -hex 32 > ~/.config/winx-http-token
winx-code-agent serve --http \
--bind 127.0.0.1:8000 \
--token-file ~/.config/winx-http-token
```
Connect an MCP client to:
```text
http://127.0.0.1:8000/mcp
Authorization: Bearer