You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CYA starts an in-memory session, shows a one-line install command for the target machine, and gives you a prompt URL to paste into Claude Code, Codex, OpenClaw, or another agent. The bridge connects back over WebSocket and executes one command at a time through the HTTP API.
6
+
7
+
## Quick Start
8
+
9
+
```sh
10
+
bun install
11
+
bun dev
12
+
```
13
+
14
+
Open `http://localhost:8765`, create a session, run the displayed command on the target machine, then paste the generated prompt into your agent.
15
+
16
+
The bridge binaries are built with Go, so local development needs **Go 1.22+**.
17
+
18
+
## Docker
19
+
20
+
```sh
21
+
docker build -t cya .
22
+
docker run --rm -p 8765:8765 -e BASE_URL=http://localhost:8765 cya
23
+
```
24
+
25
+
## Supported Targets
26
+
27
+
- macOS Intel / Apple Silicon
28
+
- Linux x64 / arm64
29
+
- OpenWrt-style Linux MIPS / MIPS64, big-endian and little-endian
30
+
- Windows x64
31
+
32
+
## How It Works
33
+
34
+
1. Browser creates a short-lived session code.
35
+
2. Target machine runs the install command for its OS.
36
+
3. The Go bridge connects to `/ws` and joins the session.
37
+
4. Agents call `/api/session/:code/run` with `cmd`, `cmd_b64`, and optional `timeout`.
38
+
5. The response includes merged stdout/stderr, `exit_code`, and `truncated`.
39
+
40
+
Sessions are in-memory only. Nothing is persisted by the server.
41
+
42
+
## Development
43
+
44
+
```sh
45
+
bun run typecheck
46
+
bun test
47
+
(cd bridge && go test ./...)
48
+
bun run build
49
+
```
50
+
51
+
`bun run build` compiles bridge binaries into `public/bin/`.
0 commit comments