Skip to main content
PraisonAI is a production-ready Multi AI Agents framework for Node.js, designed to create AI Agents to automate and solve problems ranging from simple tasks to complex challenges. It provides a low-code solution to streamline the building and management of multi-agent LLM systems, emphasising simplicity, customisation, and effective human-agent collaboration.

Quick Start

Requires Node.js 18+ (the bundled openai dependency needs Node 18).
1

Simple Usage

As of v1.7.4, praisonai requires Node.js 18 or later (openai@4 needs Node 18+). Importing the package no longer requires OPENAI_API_KEY — the key is only checked when an OpenAI client is created, so Anthropic and Google users can require('praisonai') without one.v-next (from PR #4416): praisonai-ts no longer runs dotenv.config() on import, and no longer reads process.env.LOGLEVEL at import. The package is safe to import in any JavaScript runtime (browser, Electron renderer, webview, React Native). It also no longer pulls dotenv or node-fetch into your bundle, so modern bundlers can tree-shake unused code paths. If you relied on the automatic .env load, install dotenv yourself and call dotenv.config() at the top of your entrypoint — see JS Import Safety & Runtimes.
praisonai ships both ESM and CommonJS builds, so both import and require work. For bundlers, React Native, and edge runtimes see Packaging & Bundlers.
2

With Configuration

Requires Node ≥ 18 (engines.node >= 18). As of praisonai-ts 1.7.4, require('praisonai') no longer throws when OPENAI_API_KEY is unset — the key is only needed at client creation, so the 5-line example below runs end-to-end.
3

Create File

Create app.js file

Code Example

4

Run Script

Source & contributing: the TypeScript/JavaScript SDK is developed in MervinPraison/PraisonAI at src/praisonai-ts/. The praisonai-js repo is only the npm mirror — file issues and PRs against the main monorepo. See Contributing.

Usage Examples

Single Agent Example

Create and run a single agent to perform a specific task:

Multi-Agent Example

Create and run multiple agents working together:

Task-Based Agent Example

Create agents with specific tasks and dependencies:

Running the Examples

1

Set Environment Variables

2

Create Example File

Create a new TypeScript file (e.g., app.ts) with any of the above examples.
3

Run the Example

TypeScript SDK

TypeScript agent framework

Agent

Agent configuration