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.
4
Same path from the SDK
The SDK
Agent() constructor resolves the same default — no llm=, only OLLAMA_HOST set. This works from the SDK as of PR #4795.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.
Inspect which rung won
Not sure which model your next run will use? Ask the CLI:source tag maps directly to the detection-order rungs above (state:, env:MODEL_NAME, local, provider:…, fallback). See praisonai config provenance for the full tag list.
Credential Gate
The run behaves differently when no credential is found, depending on whether the terminal is interactive.Endpoint Environment Variables
Point the CLI at any OpenAI-compatible endpoint without editing config files.Best Practices
Prefer a local model for prototyping
Prefer a local model for prototyping
Set
OLLAMA_HOST and let the CLI infer ollama/llama3.2. No cloud key or cost while you iterate.Fall back to cloud with one env var
Fall back to cloud with one env var
Set a provider key like
OPENAI_API_KEY. The next run picks that provider’s default automatically.Pin a model to skip inference
Pin a model to skip inference
Pass
--model or set MODEL_NAME. Both win over inference and the explicit value is remembered for later runs.Keep CI deterministic
Keep CI deterministic
Export a real credential in CI. Non-interactive runs never prompt and exit
1 when nothing is configured.Related
Setup
Interactive wizard for storing provider credentials.
Models
Supported providers and model identifiers.

