Skip to main content

First-run Credential Check

Both praisonai (bare) and praisonai run verify credentials before executing agent work. Detected env vars (any one satisfies the check): OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, GEMINI_API_KEY, GROQ_API_KEY, COHERE_API_KEY. Stored credentials from praisonai setup are also accepted. See First-run Onboarding for details.

Command Tree

Direct Prompt Examples

The [direct prompt] entry in the tree above means a bare positional that isn’t an existing file path or a .yaml/.yml name is routed as a one-shot prompt — except single-word tokens that hit the unknown-command guard:
Single-word bare positionals go through an unknown-command guard so praisonai show and typos like memoyr don’t silently become paid LLM calls — use praisonai run "<prompt>" for a genuine one-word prompt.

Global Flags (70+ flags)

On a standalone pip install praisonai-code install, chat and code require the praisonai wrapper and emit an install hint (Install with: pip install praisonai). Default run "…" and every run --output … mode now route through the in-process Agent (PR #2853). See the standalone-limits table.
Fourteen stub command groups — agents, workflow, registry, memory, skills, hooks, rules, eval, package, templates, todo, research, commit, and call — delegate to the wrapper for their legacy entry points. On a standalone install those entry points fail fast with a single-line install hint (<group> requires the full wrapper. Install the full wrapper: pip install praisonai) and exit 1 as of PR #2854 — no more Rich ImportError traceback. Native subcommands stay standalone-safe: memory learn, skills bundle/check/eligible, eval list-judges, eval list. See the mixed-group table.
Note on --tools: Comma-separated tool names (e.g., --tools tavily_search,my_tool) are now resolved via the unified ToolResolver, so any tool reachable from YAML is also reachable from the CLI.

SDK Module Reference

praisonaiagents (Core SDK)

praisonai (Wrapper/CLI)

¹ workflow auto previously raised NameError on _models_cache in every code path; fixed in PR #2147.

Quick Reference

Common Commands

Common Flag Combinations

Error Handling

The CLI provides clean error handling across all display modes.

Budget Exceeded Errors

When agents exceed their budget limits, the CLI catches BudgetExceededError and provides actionable guidance:
Error Handling Features:
  • Works across all display modes: silent (-qq), quiet (-q), default, verbose (-v), debug (-vv), --output jsonl, --output json, --output editor
  • Returns exit code 1 for budget exceeded errors
  • Includes remediation hints in error messages
  • No raw Python tracebacks in production

praisonai init

praisonai init scaffolds a .praisonai/ project structure (config.yaml, starter agent, starter command). The scaffolded model is set to match whichever provider credential is detected in your environment: When no provider credential is detected, praisonai init prints:
When a credential is detected, it prints:

praisonai session resume

praisonai session resume <id> restores full conversational state — chat history, model, and agent name — for a prior session. See the dedicated Session Resume page for full details.

See Also