Winx is an **MCP runtime that connects remote AI agents** (ChatGPT and other MCP clients) to local or remote
development environments they cannot reach directly. It gives them persistent execution, context-efficient reads and
command output, guarded file operations, and sessions that survive dropped connections. The primary deployment path is
a hardened **Streamable HTTP** endpoint; stdio remains fully supported for local MCP clients.
**Who it is for.** Winx is for the agent that is *not* already on your machine. If you work with Claude Code or Codex in
your own terminal, keep using them directly: Winx does not replace them. It lets a remote agent work in that same
environment, coordinate the agents running there, and use optional local tools, as described in
[where Winx fits](#where-winx-fits).
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