Installation

Set up PraisonAI in your development environment

Install PraisonAI, set one provider key, and run an Agent in your own app.

Fastest start — one line, no Python knowledge needed:

bash
curl -fsSL https://raw.githubusercontent.com/MervinPraison/PraisonAI/main/install.sh | sh
python
from praisonaiagents import Agent

agent = Agent(instructions="Be helpful")
agent.start("Summarise the top AI news today")
Bot (gateway + channels)
pip install "praisonai-bot[gateway,bot]"
Full (wrapper)
pip install praisonai
Code (runtime)
pip install praisonai-code
Train (fine-tune)
pip install "praisonai-train[llm]"
Browser (Chrome automation)
pip install "praisonai-browser[all]"
Agents (SDK)
pip install praisonaiagents
npm
npm install praisonai
One-Liner
curl -fsSL https://raw.githubusercontent.com/MervinPraison/PraisonAI/main/install.sh | sh

What you get with pip install praisonai:

  • Full CLI, gateway, bots, and the praisonaiagents SDK.
  • Browser binaries: not included — run playwright install chromium on first use.

One-line installer (recommended for CLI users)

If you want the CLI end-to-end, the one-line installer provisions an isolated managed environment (uv tool → pipx) and wires your PATH — no changes to your global Python:

bash
curl -fsSL https://raw.githubusercontent.com/MervinPraison/PraisonAI/main/install.sh | sh

It is idempotent and safe to re-run. pip install praisonai is untouched — keep using it if you embed PraisonAI as a Python library.

Diagram

Want the CLI end-to-end

Embedding as a Python library

How will you use PraisonAI?

install.sh (managed env)

pip install praisonai

Environment-variable overrides:

VariablePurpose
PRAISONAI_VERSION=x.y.zPin a specific version (default: latest)
`PRAISONAI_INSTALLER=uv\pipx`Force a specific tool manager
PRAISONAI_NONINTERACTIVE=1Never prompt — suitable for CI

After installing, configure a provider key:

bash
praisonai setup

Installing PraisonAI

PraisonAI is published as six PyPI packages. Pick the one that matches what you want to do:

Diagram

Full CLI with gateway,\nbots & integrations

Gateway + bots only

Fine-tune LLMs or\ntrain agents

Automate Chrome /\na browser

Only sandbox backends,\nno wrapper

Run code-executing agents\nfrom the CLI, no wrapper

Embed agents in\nmy own Python app

What do I want to do?

pip install praisonai

pip install praisonai-bot[gateway,bot]

pip install praisonai-train[llm]

pip install praisonai-browser[all]

pip install praisonai-sandbox[docker]

pip install praisonai-code

pip install praisonaiagents

Full (praisonai)

The complete package — CLI, gateway, bots, integrations, YAML-driven multi-bot orchestration. Pulls praisonai-code and praisonaiagents automatically.

  1. Create Virtual Environment (Optional)
    Mac/Linux
    python -m venv praisonai-env
    source praisonai-env/bin/activate
    Windows
    python -m venv praisonai-env
    .\praisonai-env\Scripts\activate
  2. Install
    Terminal
    pip install praisonai
  3. Configure Environment

    Set your API key. PraisonAI auto-detects whichever provider credential is present:

    OpenAI
    export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}"
    Anthropic
    export ANTHROPIC_API_KEY="${ANTHROPIC_API_KEY:?Set ANTHROPIC_API_KEY in your shell}"
    Gemini
    export GEMINI_API_KEY="${GEMINI_API_KEY:?Set GEMINI_API_KEY in your shell}"
    Groq
    export GROQ_API_KEY="${GROQ_API_KEY:?Set GROQ_API_KEY in your shell}"
    Ollama
    # Only needed if Ollama is not on the default 127.0.0.1:11434
    export OLLAMA_API_BASE=http://localhost:11434

Code (praisonai-code)

The standalone agent runtime — run, chat, code, and the full CLI backend, without the gateway/bot integrations. Depends only on praisonaiagents.

  1. Create Virtual Environment (Optional)
    Mac/Linux
    python -m venv praisonai-env
    source praisonai-env/bin/activate
    Windows
    python -m venv praisonai-env
    .\praisonai-env\Scripts\activate
  2. Install
    Terminal
    pip install praisonai-code
  3. Configure Environment
    bash
    export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}"

    Any supported provider key works. See Provider Auto-Detection.

  4. Run an agent
    python
    from praisonaiagents import Agent
    
    agent = Agent(name="assistant", instructions="Be helpful")
    response = agent.start("Summarise the top AI news today")
    print(response)

Bot (praisonai-bot)

Standalone bots and gateway — no full wrapper. Depends on praisonaiagents only at PyPI level.

  1. Install
    Terminal
    pip install "praisonai-bot[gateway,bot]"
  2. Configure Environment
    bash
    export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}"
    export TELEGRAM_BOT_TOKEN="${TELEGRAM_BOT_TOKEN:?Set TELEGRAM_BOT_TOKEN in your shell}"
  3. Start gateway
    Terminal
    praisonai-bot gateway start --host 127.0.0.1 --port 8765

See the praisonai-bot SDK page for Python API details.

Train (praisonai-train)

Standalone training tier — LLM fine-tuning via Unsloth and iterative agent training, without the full wrapper. Depends on praisonaiagents only at PyPI level.

  1. Create Virtual Environment (Optional)
    Mac/Linux
    python -m venv praisonai-env
    source praisonai-env/bin/activate
    Windows
    python -m venv praisonai-env
    .\praisonai-env\Scripts\activate
  2. Install
    Terminal
    pip install "praisonai-train[llm]"
  3. Configure Environment
    bash
    export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}"

    Any supported provider key works. See Provider Auto-Detection.

  4. Run the trainer
    Terminal
    praisonai-train --help

See the praisonai-train Package page for fine-tuning and agent-training details.

Browser (praisonai-browser)

Standalone browser tier — the bridge server, CDP agent, and Playwright engine for Chrome automation, without the full wrapper. Depends on praisonaiagents only at PyPI level.

  1. Create Virtual Environment (Optional)
    Mac/Linux
    python -m venv praisonai-env
    source praisonai-env/bin/activate
    Windows
    python -m venv praisonai-env
    .\praisonai-env\Scripts\activate
  2. Install
    Terminal
    pip install "praisonai-browser[all]"
  3. Install a browser engine (once)
    Terminal
    playwright install chromium
    # Docker / CI (adds OS-level deps):
    playwright install chromium --with-deps
  4. Configure Environment
    bash
    export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}"

    Any supported provider key works. See Provider Auto-Detection.

  5. Run a goal
    Terminal
    praisonai-browser run "Go to google and search praisonai"

See the praisonai-browser Package page and the Browser CLI for the full command set.

Agents (SDK only)

The pure Python SDK — no CLI, no gateway, no heavy dependencies. Import directly in your own application.

  1. Create Virtual Environment (Optional)
    Mac/Linux
    python -m venv praisonai-env
    source praisonai-env/bin/activate
    Windows
    python -m venv praisonai-env
    .\praisonai-env\Scripts\activate
  2. Install
    Terminal
    pip install praisonaiagents
  3. Configure Environment
    bash
    export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}"
  4. Use in your app
    python
    from praisonaiagents import Agent
    
    agent = Agent(name="assistant", instructions="Be helpful")
    response = agent.start("Hello!")
    print(response)

No Code

  1. Create Virtual Environment (Optional)
    Mac/Linux
    python -m venv praisonai-env
    source praisonai-env/bin/activate
    Windows
    python -m venv praisonai-env
    .\praisonai-env\Scripts\activate
  2. Install PraisonAI
    bash
    pip install praisonai
  3. Set API Key

    Set your API key for the provider you want to use. PraisonAI auto-detects whichever credential is present:

    bash
    export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}"

    Use Anthropic, Gemini, Groq, or Ollama instead? Just set that provider’s key and praisonai run picks the right model automatically. See Provider Auto-Detection.

JavaScript

  1. Install PraisonAI
    bash
    npm install praisonai
  2. Set API Key
    bash
    export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}"

TypeScript

  1. Install PraisonAI
    bash
    npm install praisonai
  2. Set API Key
    bash
    export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}"

Package dependency chain

Diagram

praisonaiagents\nCore SDK

praisonai-code\nRuntime + CLI

praisonai-sandbox\nCode-execution backends

praisonai\nFull wrapper

Each layer depends on the one to its left. Installing praisonai also pulls praisonai-sandbox (the code-execution backends) alongside praisonai-code; installing praisonai-code pulls only praisonaiagents; installing praisonaiagents has no PraisonAI dependencies.

Generate your OpenAI API key from OpenAI You can also use other LLM providers like Anthropic, Google, etc. Please refer to the Models for more information.

Which Install Do You Need?

How It Works

Pip installs the package, you export one provider key, and the CLI or SDK resolves the matching model at run time.

Diagram
praisonaipipUserpraisonaipipUserpip install praisonaiPackage + dependencies installedexport PROVIDER_API_KEY && praisonai runAgent runs on the auto-selected model

Best Practices

Install only what you need

Use praisonaiagents for a pure Python SDK, praisonai-code for the terminal runtime, and praisonai for the full wrapper with bots and gateway.

Use a virtual environment

Create a venv before installing to keep PraisonAI isolated from your system Python.

Export keys, don't hard-code them

Set OPENAI_API_KEY (or your provider’s key) in your shell or .env. Never inline the raw value in code.

Skip –model on first runs

PraisonAI auto-detects the provider from whichever key is present and picks a sensible default model.

Related


Quick Install

macOS / Linux / WSL

bash
curl -fsSL https://raw.githubusercontent.com/MervinPraison/PraisonAI/main/install.sh | sh

Windows

powershell
iwr -useb https://praison.ai/install.ps1 | iex

Installs praisonai[all] into %USERPROFILE%\.praisonai\venv, wires PATH, and runs praisonai setup on first install. See Installer Internals for parameters and env-var overrides.

To install with specific extras only:

powershell
& ([scriptblock]::Create((iwr -useb https://praison.ai/install.ps1))) -Extras "ui,chat"

Alternative (no installer): pipx install praisonai or pip install "praisonai[all]".

Manage Your Install


Package Structure

PraisonAI ships as three separate PyPI packages. Understanding which to install avoids surprises at runtime.

Diagram

pip install praisonai

praisonai wrapper

praisonai-code CLI

praisonaiagents SDK

pip install praisonai-code

pip install praisonaiagents

Install commandWhat you getAgentic CLI (run, chat, code, …)Bot / gateway / pairing
pip install praisonaiWrapper + code + agents✅ Full✅ Yes
pip install praisonai-codeTerminal-native agent CLI + LLM runtime✅ Default run "…", `run –output plainverbosesilentactionsjsonstreamstream-json, chat, code (resident TUI, PR #3818), daemon, doctor, config, version`❌ No — needs pip install praisonai
pip install praisonaiagentsCore SDK — Python API only❌ No CLIN/A

PyPI publish order

Packages are published in dependency order:

1. praisonaiagents  →  2. praisonai-code + praisonai-bot + praisonai-train + praisonai-browser  →  3. praisonai

If you pin versions, ensure all six packages resolve to the same release cycle.

Since 4.6.104, praisonai pins praisonai-code>=0.0.2, so pip install praisonai always pulls a compatible runtime automatically. See praisonaiagents SDK page for the release-cycle notes.