{"_id":"@3ced/coder-relay","_rev":"2-f559244bab2c8c2a1bb202304b74b4c8","name":"@3ced/coder-relay","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@3ced/coder-relay","version":"0.1.0","keywords":["coder","relay","agent","shell","cli"],"license":"MIT","_id":"@3ced/coder-relay@0.1.0","maintainers":[{"name":"3ced","email":"tetevicedric5@gmail.com"}],"homepage":"https://github.com/coder-relay/cli#readme","bugs":{"url":"https://github.com/coder-relay/cli/issues"},"bin":{"coder-relay":"bin/coder-relay.mjs"},"dist":{"shasum":"9e3a5bdb2cf1a8aa3402263cbea1b767fdb6e3eb","tarball":"https://registry.npmjs.org/@3ced/coder-relay/-/coder-relay-0.1.0.tgz","fileCount":4,"integrity":"sha512-LXG9VEglF0znxwFXKBdca+79EOLD9nQddsnJ3nIhl1WM4ldBX1d0xOnhJUnN+cfy+KKJofl1pjEFx2uVIUXFLw==","signatures":[{"sig":"MEUCIQDIaYMe1OkWejPTHU1JOukhQIntHwj/DoXWPvcob/rFQAIgNR/QyuLRb4kjD9r6psJ6gY+SmhYgP7sX2OzeuPryZ5s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8493},"type":"module","engines":{"node":">=18"},"_npmUser":{"name":"3ced","email":"tetevicedric5@gmail.com"},"repository":{"url":"git+https://github.com/coder-relay/cli.git","type":"git"},"_npmVersion":"10.9.4","description":"Local relay that lets the Coder web app execute shell commands on your machine.","directories":{},"_nodeVersion":"22.22.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/coder-relay_0.1.0_1782221193070_0.9849012532084613","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@3ced/coder-relay","version":"0.1.1","description":"Local relay that lets the Coder web app execute shell commands on your machine.","type":"module","bin":{"coder-relay":"bin/coder-relay.mjs"},"engines":{"node":">=18"},"keywords":["coder","relay","agent","shell","cli"],"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/coder-relay/cli.git"},"_id":"@3ced/coder-relay@0.1.1","bugs":{"url":"https://github.com/coder-relay/cli/issues"},"homepage":"https://github.com/coder-relay/cli#readme","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-xy9cSICmw3SFRYhfV9o6BsS3MFlFQiaC5Zm9Pb7NYIroK2YXhog5hmwRTcSE9F7VNK75onxNbdBG59COoK7SKA==","shasum":"cdc9cc04c6361eeec97ca8300090e729f686bbb1","tarball":"https://registry.npmjs.org/@3ced/coder-relay/-/coder-relay-0.1.1.tgz","fileCount":4,"unpackedSize":8499,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDbP+rcKCVxDmlRVEV+oo3Do/KxjzorhH02z9vTjB3czgIgVR409t+TsNhfQlNVDyv+5qAC4H4dJkvzsYS7IYsEj2E="}]},"_npmUser":{"name":"3ced","email":"tetevicedric5@gmail.com"},"directories":{},"maintainers":[{"name":"3ced","email":"tetevicedric5@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/coder-relay_0.1.1_1782221218597_0.09300239033432867"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-23T13:26:32.954Z","modified":"2026-06-23T13:26:58.843Z","0.1.0":"2026-06-23T13:26:33.203Z","0.1.1":"2026-06-23T13:26:58.720Z"},"bugs":{"url":"https://github.com/coder-relay/cli/issues"},"license":"MIT","homepage":"https://github.com/coder-relay/cli#readme","keywords":["coder","relay","agent","shell","cli"],"repository":{"type":"git","url":"git+https://github.com/coder-relay/cli.git"},"description":"Local relay that lets the Coder web app execute shell commands on your machine.","maintainers":[{"name":"3ced","email":"tetevicedric5@gmail.com"}],"readme":"# @coder-relay/cli\n\nLocal relay for the [Coder](https://coder.lovable.app) web app. Lets the\nin-browser AI agent execute shell commands on your machine, safely and on\nyour terms.\n\n## Install & run (one command)\n\n```bash\nRELAY_TOKEN=xxxx npx @3ced/coder-relay\n```\n\nGet your `RELAY_TOKEN` in **Coder → Settings → Connect an agent**.\n\n## Help\n\n```bash\nnpx @3ced/coder-relay --help\n```\n\n## How it works\n\nThe CLI polls your Coder app via two public endpoints:\n\n- `POST {url}/api/public/exec/poll` — claims pending commands for your token.\n- `POST {url}/api/public/exec/result` — streams back stdout/stderr/exit code.\n\nBoth require the header `x-relay-token: <your token>`. The token only\nauthorizes the relay you generated; nothing else can talk to your machine.\n\n## Flags\n\n| Flag                  | Env             | Default                       |\n|-----------------------|-----------------|-------------------------------|\n| `--token <t>`         | `RELAY_TOKEN`   | — (required)                  |\n| `--url <u>`           | `RELAY_URL`     | `https://coder.lovable.app`   |\n| `--cwd <p>`           | `RELAY_CWD`     | `$PWD`                        |\n| `--poll-interval <ms>`| `POLL_MS`       | `1500`                        |\n| `--once`              | —               | poll once, exit (smoke test)  |\n| `--version` / `-v`    | —               |                               |\n| `--help` / `-h`       | —               |                               |\n\n## Security\n\nThe relay runs shell commands with **your** user privileges. Only run a\ntoken you generated, on a machine you own. Revoke tokens any time from\nSettings.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}