praisonai command works without extra configuration.
Quick Start
CLI Flags
| Option | Description |
|---|---|
--non-interactive | Run without prompts (requires --provider and --api-key) |
--provider TEXT | Provider: openai, anthropic, google, ollama, custom |
--api-key TEXT | API key for the provider |
--model TEXT | Default model to use |
Subcommands
| Command | Description |
|---|---|
setup wizard | Explicitly run the interactive wizard |
setup config --show | Show current configuration (API keys masked) |
setup config --edit | Open configuration in $EDITOR |
setup reset | Remove stored credentials |
setup reset --force | Remove without confirmation |
Non-interactive Mode
For CI/CD or scripted setup:| Provider | --provider value | Env var written |
|---|---|---|
| OpenAI | openai | OPENAI_API_KEY |
| Anthropic | anthropic | ANTHROPIC_API_KEY |
google | GEMINI_API_KEY | |
| Ollama | ollama | (no key needed) |
| Custom | custom | (user-defined) |
Where Credentials Are Stored
praisonai setup writes two files:
| File | Purpose | Permissions |
|---|---|---|
~/.praisonai/.env | API keys as KEY=value lines | 0600 |
~/.praisonai/config.yaml | Provider name, default model, telemetry flag | 0600 |
CredentialStore) reads ~/.praison/credentials.json as an additional fallback path consulted by resolve_llm_endpoint_with_credentials().
All sensitive files are written with
chmod 600 and are never included in any telemetry data.When Does Setup Run Automatically?
If you skip setup at install time (or run--no-prompt), the first praisonai or praisonai run command detects the missing credentials and offers to launch this wizard for you. See First-run Onboarding for the full flow.
Best Practices
Re-run setup to change provider or rotate keys
Re-run setup to change provider or rotate keys
praisonai setup is idempotent β running it again overwrites the previous configuration. Use it whenever you switch providers or need to rotate an API key.Use env vars in CI, stored credentials on workstations
Use env vars in CI, stored credentials on workstations
In CI environments set
OPENAI_API_KEY (or the provider-specific key) as a secret. On developer workstations use praisonai setup so you donβt have to set env vars in every shell session.Inspect what is stored without exposing keys
Inspect what is stored without exposing keys
Related
First-run Onboarding
Auto-detects missing credentials at first invocation
Run Command
Run agents from files or prompts
CLI Reference
Complete command tree and flag reference
Installer Internals
How the installer sets up credentials at install time

