praisonai auth stores provider API keys locally so praisonai run works without exporting env vars every session.
Quick Start
Commands
| Command | Description |
|---|---|
auth login <provider> | Store credentials (prompts if --key omitted) |
auth list | List stored providers (keys redacted) |
auth status [provider] | Check format; add --validate for live OpenAI check |
auth logout <provider> | Remove one provider |
auth logout --all | Remove all stored credentials |
Login
List & status
Logout
Storage & Security
| Item | Value |
|---|---|
| File | ~/.praison/credentials.json |
| Permissions | 0o600 (auto-corrected on read if loose) |
| Writes | Atomic via temp file + os.replace |
| Display | Keys redacted as sk-1***efgh everywhere except the file |
Supported Providers
| Provider | Key prefix | Env var injected at run time |
|---|---|---|
openai | sk- | OPENAI_API_KEY (+ OPENAI_BASE_URL if set) |
anthropic | sk-ant- | ANTHROPIC_API_KEY |
google / gemini | AI | GOOGLE_API_KEY / GEMINI_API_KEY |
tavily | tvly- | TAVILY_API_KEY |
groq | gsk_ | GROQ_API_KEY |
cohere | (none) | COHERE_API_KEY |
How Run Uses Credentials
praisonai run resolves credentials in this order:
- Environment variables (
OPENAI_API_KEY,ANTHROPIC_API_KEY, …) - Stored credentials (injected into
os.environbefore the run) - LLM endpoint resolution via
resolve_llm_endpoint_with_credentials
Related
Run
Preflight credential check before execution
Config
Default model via
[llm] in config.tomlSetup
First-run setup wizard

