feat: auto-login from Qoder API key

This commit is contained in:
Simon Shi
2026-07-20 18:22:35 +08:00
parent 049b164279
commit a98b9573f4
3 changed files with 49 additions and 4 deletions
+3
View File
@@ -52,11 +52,14 @@ Global Qoder:
- Run `/login qoder` and choose **Use API Key (PAT)**, then paste the token.
- Or set `QODER_PERSONAL_ACCESS_TOKEN` (or `QODER_PAT`) before starting pi.
- `QODER_API_KEY` is also accepted; when set, pi automatically exchanges it
and logs the provider in during startup.
Qoder China:
- Run `/login qoder-cn`, then paste the CN PAT.
- Or set `QODERCN_PERSONAL_ACCESS_TOKEN` (or `QODERCN_PAT`) before starting pi.
- `QODERCN_API_KEY` is also accepted and triggers the same automatic startup login.
> The exchanged job token is short-lived; the provider transparently re-exchanges
> the stored PAT when it expires.