Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 748 Bytes

File metadata and controls

29 lines (20 loc) · 748 Bytes

Auth

ai uses the same pi credentials. If credentials are missing or a provider rejects them, the CLI can prompt you to log in and retry.

Log in explicitly:

command ai auth login
command ai auth login github-copilot
command ai auth login anthropic

Check configured auth:

command ai auth status
command ai auth status github-copilot

OAuth providers open the browser or show a device code. API-key providers prompt for a key and save it to pi's auth.json.

For first-run onboarding:

command ai auth login
command ai setup

ai setup shows configured auth providers, offers login when none are configured, lists available models, prompts for a default model, and can create fast and smart aliases.