Commit Graph

2 Commits

Author SHA1 Message Date
Aakash Kattelu f506713f5a fix(cli): stop deleting shared apiKey on device login; bind oauth grant to its host
apiKey is shared with sibling tools that read it from the same config
file, so device login must not remove it. Precedence flips to a live
OAuth token over apiKey; a dead grant now degrades to the saved key
with a warning instead of aborting. The oauth block records the host
it was minted against and is ignored (no use, no refresh) when
base_url points elsewhere, so a staging grant is never sent to prod.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 11:57:46 -07:00
Aakash Kattelu 41be8496d8 feat(cli): add device code oauth login for honcho servers 2026-07-08 14:39:21 -07:00