Expand description
rpi auth subcommand — persistent credential management. Mirrors the
Rust-relevant slice of the TS packages/coding-agent/src/cli/auth-command.ts
main.ts:runAuthCommand+core/auth-check.ts.
v1 ships three actions:
rpi auth login— legacy API-key prompt (no echo, viarpassword) for the default provider and persist it to~/.rpi/auth.json. Mirrors the upstream/loginTUI’stype:"secret"prompt +modify.rpi auth check— local-only probe ofauth.json+ theANTHROPIC_*env vars; reportsready/not_ready(no network call — the upstream--no-refreshequivalent).--jsonemits a structured result.rpi auth logout— drop the selected provider entry fromauth.json(env vars are left untouched).
§Not ported (deferred — see the initial port notes (retired))
Provider-specific OAuth implementations belong in extensions. The host only understands the standard OAuth action response and scoped credential format.
Functions§
- run
rpi auth <sub> [args]entry.argsis the slice afterauth(i.e. the subcommand + its flags). Returns the process exit code. Async to match theapp::runshape, though v1 does no async work here.- run_
with_ extensions - Run auth with an optional extension snapshot. The caller must keep the matching extension session alive until this future completes.