npmai-agents
Production-grade autonomous AI agent framework with 1,371 tools across 100 classes and a 5-role LLM pipeline — built on the NPMAI ECOSYSTEM.
What it is and what it does
npmai_agents is an autonomous AI agent framework that breaks down plain-English tasks into a structured 5-stage pipeline: Planner (breaks down the task), Tool Manager (selects relevant tools), Coder (generates execution code), Auditor (security review), and Verifier (validates results). The core innovation is pre-compiled tool knowledge — each of the 1,371 tools across 100 classes ships with structured metadata that the pipeline reads on-demand, eliminating hallucination on API shapes and method signatures.
You can run tasks via CLI (`npmai run "your task"`) or programmatically by importing AgentBrain and other classes. The framework supports 12 LLM providers including free NPMAI-hosted models, OpenAI, Groq, Anthropic, Gemini, and local Ollama. By default all roles use free NPMAI models with zero setup; you can override any role's provider and model per-call. Tool dependencies auto-install at runtime unless you pre-install the full extra (`pip install npmai_agents[full]`), keeping the base install lightweight.
Use it for:
- Automate multi-step business workflows (e.g., scrape data, analyze it, generate reports, email results) without writing orchestration code
- Build desktop automation tasks that interact with files, APIs, and local tools using natural language instead of shell scripts
- Prototype and iterate on agentic AI solutions using free LLM models before committing to paid providers
- Execute security-audited code generation tasks where the Auditor role reviews generated code before execution
- Integrate with external services (Stripe, GitHub, Slack) via pre-built tool classes without managing API client libraries individually
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Autonomous AI agent framework that executes plain-English tasks through a 5-role LLM pipeline, with access to 1,371 tools across 100 classes and support for 12 LLM providers including free NPMAI models, OpenAI, Groq, Anthropic, and Gemini.
Yes, if you want to experiment with autonomous AI agents or automate complex multi-step tasks. The framework is actively maintained, has low install friction, carries no license restrictions, and offers genuine value through its pre-compiled tool registry and free LLM tier. Start with the minimal install and upgrade to `[full]` only if you need all 1,371 tools available immediately. Verify that the specific tools and LLM providers you need are stable and well-documented before committing to production use.
Install
npmai-agents on PyPI
pip
pip install npmai-agentsuv
uv add npmai-agentspoetry
poetry add npmai-agentsInstalling npmai-agents
Before you install
Low friction install with pure Python wheel distribution. Active maintenance with recent release (38 days ago) and ongoing commits. Five runtime dependencies (npmai, requests, cryptography, typer, rich) are all stable, widely-used libraries with minimal transitive overhead.
License in practice
MIT license is permissive — you can use this in commercial projects, modify it freely, and distribute it with minimal restrictions. No copyleft obligations or patent clauses.
Quickstart
pip install npmai_agents
from npmai_agents import AgentBrain
# Run a task through the 5-role pipeline
agent = AgentBrain()
result = agent.run("Analyze my sales.csv and create a revenue report")
Requires Python 3.9 or later. LLM provider credentials (API keys) must be saved via CLI for non-NPMAI providers; NPMAI free tier requires no setup.
Verify before relying
- Whether the 1,371 tools and 100 classes are all functional and well-maintained in the current release
- Real-world latency and reliability of the 5-role pipeline on complex multi-step tasks
- How tool dependency auto-installation at runtime handles version conflicts or missing system libraries
- Whether the framework handles long-running tasks and recovery from transient LLM provider failures
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — npmai, requests, cryptography, typer, rich |
| Maintenance | actively maintained — 38 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 236,319/month — #8,986 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: npmai_agents-1.0.2-py3-none-any.whl
Keywords: ai, agent, automation, llm, npmai, npmai-ecosystem, desktop-automation, multi-agent, rag, open-source, tool-registry, agentic-ai, free-llm, autonomous-agent, local-llm, sonukumar, sonukumarnpmai, sonukumarviralboy
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
npmainpmai provides a Python interface to access…
permissive · top 5,000 on PyPI
autogenA framework for building AI agents that…
permissive · top 15,000 on PyPI
praisonaiagentsPraisonAI agents is a Python framework for…
unclear · top 15,000 on PyPI
ai-parrotAI-Parrot is an async-first Python framework…
permissive · top 15,000 on PyPI
PraisonAIPraisonAI is a framework for building and…
permissive · top 15,000 on PyPI
genagentGenAgent provides utilities for building…
unclear · top 15,000 on PyPI
llmLLM is a CLI tool and Python library for…
permissive · top 15,000 on PyPI
kosongKosong is an LLM abstraction layer that unifies…
unclear · top 15,000 on PyPI
litellm-enterpriseLiteLLM Enterprise provides a unified Python…
unclear · top 5,000 on PyPI
stirrupStirrup is a lightweight Python framework for…
permissive · top 15,000 on PyPI