CYA gives an AI agent temporary, user-approved command access to a machine.
Start a session, run the displayed install command on the target machine, then paste the generated prompt into Claude Code, Codex, OpenClaw, or another agent. Sessions are in-memory only and commands run one at a time.
bun install
bun devOpen http://localhost:8765, create a session, run the displayed command on the target machine, then paste the generated prompt into your agent.
docker build -t cya .
docker run --rm -p 8765:8765 -e BASE_URL=http://localhost:8765 cya- Browser creates a short-lived session code.
- Target machine runs the install command for its OS.
- The Go bridge connects to
/wsand joins the session. - Agents call
/api/session/:code/runwithcmd,cmd_b64, and optionaltimeout. - The response includes merged stdout/stderr,
exit_code, andtruncated.
Sessions are in-memory only. Nothing is persisted by the server.
bun run typecheck
bun test
(cd bridge && go test ./...)
bun run buildLocal development needs Bun and Go 1.22+. bun run build compiles bridge binaries into public/bin/.