Skip to main content

Set API Key

1

Configure a provider

Run the interactive setup wizard to pick a provider and save your API key:
PraisonAI supports OpenAI, Anthropic, Google/Gemini, Groq, Cohere, Ollama, OpenRouter and 100+ models via LiteLLM. Alternatively, export a key directly:
2

Generate agents.yaml

If no provider is configured, --init prints setup guidance and exits instead of crashing. Run praisonai setup (step above) to configure a provider first.

Generate agents.yaml

Example:
Output:

Generated File

The command creates agents.yaml in the current directory:

Next Step

Run the agents: