Skip to main content
praisonai-code is the standalone code-execution agent runtime that sits between the core SDK (praisonaiagents) and the full wrapper (praisonai). It is not a GUI or a gateway — it is the engine that powers the praisonai CLI, packaged so you can use it without pulling in gateway, bots, or other wrapper integrations.

Package Boundaries

praisonai-code sits in the four-tier package model between praisonaiagents (SDK) and praisonai (wrapper). It never imports the wrapper at module load, and reaches wrapper-only features through a single bridge (praisonai_code._wrapper_bridge). Its sibling praisonai-bot owns bots, gateway, channel CLI, and the gateway scheduler tick — see the praisonai-bot SDK page. You can build an Agent and call agent.start() standalone; only gateway/bot serving needs the wrapper.

Four-tier ownership

Publish order: praisonaiagentspraisonai-code + praisonai-botpraisonai

Wrapper bridge

The only sanctioned way for praisonai-code code to reach wrapper modules is through praisonai_code._wrapper_bridge. This makes standalone installs work — every wrapper call is guarded, so a missing praisonai package downgrades cleanly instead of raising ImportError at import time.

Quick Start

1

Install

For the full six-package overview and a “which package?” decision guide, see Installation.
2

Set your API key

Any supported provider key works (ANTHROPIC_API_KEY, GEMINI_API_KEY, GROQ_API_KEY, OLLAMA_HOST, …). See Provider Auto-Detection.
3

Run an agent


What ships in this package

The praisonai_code Python package contains the terminal-native CLI and agent runtime. Current published versions are shown on the installation page. It contains the full CLI implementation used by the praisonai wrapper command, plus the agent runtime modules.
praisonai-code installs a praisonai-code console script and a python -m praisonai_code module entrypoint. On a standalone install (no wrapper), praisonai-code run --output actions|json|stream|stream-json "prompt", daemon start, config, and doctor work directly. On a standalone install, praisonai-code doctor returns exit 0 when core checks pass — wrapper-presence checks SKIP with an explicit “Install full wrapper: pip install praisonai” reason (PR #2851). Default run "prompt", chat, and code require the wrapper — install with pip install praisonai to unlock them (a clear install hint is printed if you invoke them standalone). The stub command groups (agents, workflow, registry, memory, skills, hooks, rules, eval, package, templates, todo, research, commit, call) also fail fast with a single-line install hint on standalone (PR #2854) — their native subcommands (memory learn, skills bundle/check/eligible, eval list-judges, eval list) stay standalone-safe. See the Standalone limits table below and the mixed-group table.

Standalone limits (pip install praisonai-code only)

For interactive terminal UX (chat, code), install the wrapper: pip install praisonai. Default run and every --output text mode work standalone in-process (PR #2853).

What is not in this package

praisonai-code deliberately excludes the features that live in the praisonai wrapper:
  • Gateway — messaging relay and session management. Install praisonai-bot[gateway] for the standalone gateway, or install the full praisonai wrapper. See Standalone Bot Gateway.
  • Bots — Telegram, Discord, Slack, WhatsApp integrations. Install praisonai-bot[bot] for standalone channel bots.
  • Gateway scheduler tick — scheduled agent execution. Lives in praisonai-bot; the RunPolicy safety gate stays wrapper-only.
  • YAML-driven multi-bot orchestrationpraisonai onboard, praisonai setup (wrapper).
  • Framework adapters — CrewAI, AutoGen (wrapper).

When to pick this vs the wrapper vs the SDK


Best Practices

Always import from praisonaiagents, not from praisonai_code internals. The core SDK API is stable; internal CLI modules are implementation details.
Set API keys as environment variables rather than hardcoding them. praisonai-code reads the same environment variables as praisonaiagents.
praisonai-code inherits the full praisonaiagents multi-agent API:
If you start with praisonai-code and later need gateway or bot features, add pip install "praisonai-bot[gateway,bot]" for the standalone bot path, or pip install praisonai for the full wrapper. Nothing in your existing code needs to change — the same from praisonaiagents import Agent imports still work.

Installation Guide

Six-package comparison and decision guide

praisonai SDK

Full wrapper with gateway and bots

praisonaiagents SDK

Core agent SDK

Quick Start

Build your first agent