docs(coding-agent): fix /login docs - it shows a picker, no args

This commit is contained in:
Mario Zechner 2026-01-25 21:43:57 +01:00
parent 8eae92cbb7
commit a2c6a32e9b

View file

@ -13,24 +13,17 @@ Pi supports subscription-based providers via OAuth and API key providers via env
## Subscriptions
Use `/login` in interactive mode to authenticate with your existing subscription or free tier:
Use `/login` in interactive mode, then select a provider:
| Provider | Command | Cost |
|----------|---------|------|
| Claude Pro/Max | `/login anthropic` | Subscription |
| ChatGPT Plus/Pro | `/login openai-codex` | Subscription |
| GitHub Copilot | `/login github-copilot` | Subscription |
| Google Gemini CLI | `/login google-gemini-cli` | Free |
| Google Antigravity | `/login google-antigravity` | Free |
| Provider | Cost |
|----------|------|
| Claude Pro/Max | Subscription |
| ChatGPT Plus/Pro | Subscription |
| GitHub Copilot | Subscription |
| Google Gemini CLI | Free |
| Google Antigravity | Free |
```bash
pi
/login # Interactive provider selection
/login anthropic # Direct login
/logout # Clear credentials
```
Credentials are stored in `~/.pi/agent/auth.json` and auto-refresh when expired.
Use `/logout` to clear credentials. Tokens are stored in `~/.pi/agent/auth.json` and auto-refresh when expired.
### GitHub Copilot