@velocirouter/opencode-auth
v1.0.3
Published
OpenCode auth helper for VelociRouter — prints your rt-… API key to stdout for `opencode auth login`.
Downloads
68
Readme
@velocirouter/opencode-auth
Auth helper for connecting OpenCode to
VelociRouter. You don't run this directly —
OpenCode invokes it during opencode auth login.
opencode auth login https://api.velocirouter.siteOpenCode fetches https://api.velocirouter.site/.well-known/opencode, which
points it at npx -y @velocirouter/opencode-auth. This helper collects your
rt-… API key and hands it back to OpenCode, which stores it and loads the
full VelociRouter model catalog automatically.
How it gets your key
VELOCIROUTER_API_KEYenvironment variable, if set (use this in CI).- Otherwise it prompts on the terminal.
The key is written to stdout; everything else goes to stderr. OpenCode does not
give the helper a stdin, so the prompt reads from the controlling terminal
(/dev/tty) directly.
Publishing
npm publish --access public