Skip to main content
The terminal CLI picks a sensible default model from whichever provider credential is present, so praisonai run "..." works without passing --model.

Quick Start

1

Point at a local model (optional)

Run an OpenAI-compatible endpoint such as Ollama, then export its host.
2

Run with no --model

The CLI resolves a provider-appropriate default from your environment.
3

Override the endpoint (optional)

Point at any OpenAI-compatible server without editing config.

How It Works

The CLI checks for a credential, then resolves a default model before running. is_configured() treats a run as ready when any provider key is set (env var or stored credential). resolve_default_model() then chooses the model, persisting only user-chosen models for next time.

Detection Order

The default model follows a fixed precedence. Provider-inferred default models per credential: When a provider-inferred default is used, the CLI prints one transparency line, for example: No model set; using ollama/llama3.2 because OLLAMA_HOST is present.

Credential Gate

The run behaves differently when no credential is found, depending on whether the terminal is interactive.
CI and non-interactive runs still fail fast without a credential. Set a provider key (or OLLAMA_HOST) in the environment before running headless.

Endpoint Environment Variables

Point the CLI at any OpenAI-compatible endpoint without editing config files.

Best Practices

Set OLLAMA_HOST and let the CLI infer ollama/llama3.2. No cloud key or cost while you iterate.
Set a provider key like OPENAI_API_KEY. The next run picks that provider’s default automatically.
Pass --model or set MODEL_NAME. Both win over inference and the explicit value is remembered for later runs.
Export a real credential in CI. Non-interactive runs never prompt and exit 1 when nothing is configured.

Setup

Interactive wizard for storing provider credentials.

Models

Supported providers and model identifiers.