Skip to content

Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)

Python
292 B
Raw Blame
"""Run a command behind a PTY from a fresh single-threaded process."""

import os
import pty
import sys


def main() -> int:
    spawn = vars(pty)["spawn"]
    status = spawn(sys.argv[1:])
    return os.waitstatus_to_exitcode(status)


if __name__ == "__main__":
    raise SystemExit(main())