npmai-agent
npmai-agent (internally known as the npmai-agent-suite) is a production-grade AI agent framework built on top of the NPMAI ECOSYSTEM.It gives any Python developer a fully autonomous, multi-LLM agentic pipeline with 1371 integrated tools 100 classes,orchestrated by a five-role LLM pipeline (Planner →…
Install / Use
claude mcp add npmaiecosystem -- npx -y github:npmaiecosystem/npmai-agentIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AutomationSupported Platforms
Our assessment of npmai-agent
npmai-agent scores 74/100 on our quality scale, 386th of 647 Automation skills we index.
Its MCP Server is 100 KB long, well organised into 111 sections with 121 code examples: long enough that it reads more like full documentation than a focused instruction file, which agents can find harder to follow.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 7 days ago, so npmai-agent is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
npmai-agent compared with similar skills
All 4 of these similar skills score higher than npmai-agent; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| npmai-agent (this skill)by npmaiecosystem | 74 | 3 | 7d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 85.0k | 8d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.6k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.1k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.1k | today | CLAUDE.md |
Frequently asked questions
- How do I install npmai-agent?
- Run
claude mcp add npmaiecosystem -- npx -y github:npmaiecosystem/npmai-agent. The install tabs above show the steps for each supported agent. - Which AI agents does npmai-agent work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is npmai-agent safe to use?
- It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is npmai-agent still maintained?
- The repository was last updated 7 days ago, so npmai-agent is actively maintained.
Skill content
View source on GitHub🌐 Website · 📦 PyPI · 🐙 GitHub · 👤 Founder
.
✦ What is npmai_agents?
npmai_agents is a production-grade, open-source autonomous AI agent framework with 1,371 verified tools across 100 classes — the largest open-source local tool registry ever built. A 5-role LLM pipeline (Planner → Tool Manager → Coder → Auditor → Verifier) autonomously executes any plain-English task on your computer using 12 supported LLM providers including NPMAI free LLMs, OpenAI, Groq, Anthropic, Gemini, and more.
The core insight: LLMs waste most of their context reverse-engineering API documentation instead of solving your actual problem. Every class in npmai_agents ships a use variable — pre-compiled, structured tool knowledge that the pipeline reads on-demand. The Planner sees a one-line index of all 100 classes. The Tool Manager drills into full documentation only for classes the task actually needs. The Coder receives exact method signatures and call examples. Zero hallucination on API shapes. Maximum intelligence on task logic.
🏛️ NPMAI ECOSYSTEM
<table> <tr> <td width="55%">npmai_agents is a product of the NPMAI ECOSYSTEM — a free, open-source AI research and development platform founded by Sonu Kumar (Bihar Viral Boy), a 15-year-old self-taught AI developer, TEDx Speaker, and constitutional researcher from Bihar, India.
</td> <td width="45%">| Metric | Value |
|---|---|
| PyPI Downloads | |
| Daily Requests |
80,000+ |
| Free LLMs | 45+ |
| Monthly Cost | ₹0 |
| Metric | Value |
|---|---|
| PyPI Downloads | |
| Tools |
1,371 |
⚡ Installation
# Minimal — agent auto-installs tool dependencies at runtime
pip install npmai_agents
# Full — all 1,371 tool dependencies pre-installed
pip install npmai_agents[full]
Quick Start
# Pull the image
docker pull sonuramashishnpm/npmai-agent:latest
# See available commands
docker run --rm sonuramashishnpm/npmai-agent --help
# Run any task
docker run --rm -v "$(pwd):/workspace" -w /workspace \
sonuramashishnpm/npmai-agent run "Analyze my sales.csv and create a revenue report"
Tags
latest— Latest stable versionv1— Version 1.0.1
📦 Import System
All 100 tool classes, every LLM backend, and the agent brain itself are exposed from a single top-level namespace: npmai_agents. Internally the code is split across many files by domain (core.py, agent_core.py, Tools_business.py, Tools_creative.py, etc.) — that split is for maintainability on our side. As a user you never need to know or care which file anything actually lives in. The package's __init__.py re-exports every public class at the top level, so a single import line reaches everything:
# Agent brain only
from npmai_agents import AgentBrain
# Specific tools, no matter which internal file they live in
from npmai_agents import StripeTool, GitHubTool, FFmpegTool
# LLM backends
from npmai_agents import GroqBackend, OpenAIBackend, AnthropicBackend
# Core infra
from npmai_agents import CredStore, Workspace, LLMBackend
# Everything at once (not recommended for large projects — namespace gets crowded)
from npmai_agents import *
You will never need to write from Tools_business import StripeTool or from core import LLMBackend yourself — those are internal file paths used only inside the package's own source code. Every public class, from every file, is reachable directly via from npmai_agents import <ClassName>.
🖥️ CLI — Complete Reference
Install gives you the npmai terminal command globally.
npmai --help
🛠️ Troubleshooting: CLI Command Not Found (PATH Issue)
If you get a warning during installation stating that the script is installed in a directory which is not on PATH, your terminal will not recognize the command. Follow the solution for your operating system below.
🪟 On Windows
If you see a warning referencing AppData\Roaming\Python\...
Solution: Open PowerShell as an Administrator and run:
[Environment]::SetEnvironmentVariable("Path", \$env:Path + ";C:\Users\digiccsammunnat8\AppData\Roaming\Python\Python312\Scripts", "User")
Note: Restart your terminal window after running this command.
🐧 On Linux
If you see a warning referencing ~/.local/bin
Solution: Open your terminal and run:
echo 'export PATH="HOME/.local/bin:PATH"' >> ~/.bashrc && source ~/.bashrc
Note: If you use Zsh instead of Bash, replace ~/.bashrc with ~/.zshrc.
🍏 On macOS
If you see a warning referencing ~/Library/Python/...
Solution:
Open your terminal and run (replace 3.12 with your actual Python version):
echo 'export PATH="HOME/Library/Python/3.12/bin:PATH"' >> ~/.zshrc && source ~/.zshrc
Note: If you use Bash instead of Zsh on older macOS versions, replace ~/.zshrc with ~/.bash_profile.
💡 Pro Tip: Avoid PATH Issues Entirely
Use a virtual environment for your project so dependencies and paths are isolated automatically:
# Create and activate the environment
python -m venv venv
source venv/bin/activate # On Windows PowerShell use: .\venv\Scripts\activate
# Install your package cleanly
pip install npmai-agents
Session model: each
npmai <command>invocation is its own standalone process — there is no config file, no state file, and nothing written to disk between commands (by design, so the framework never has to manage extra files on top of everything else it already manages). This meansrunandchataccept the LLM provider/model for every role directly as flags on the same call, rather than relying on a separate "configure once" step that would silently reset between processes anyway. If you omit the flags, every role defaults to the free NPMAI-hosted models — zero setup, zero cost.
npmai run — Execute Any Task
Runs a plain-English task through the full 5-role autonomous pipeline. LLM provider/model for each role can be set per-call; anything left unset falls back to the NPMAI free-tier default for that role.
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| task | str | — | ✅ | Plain-English description of what to do |
| --planner-model | str | llama3.2:3b | ❌ | Model for the Planner role |
| --planner-provider | str | npmai | ❌ | Provider for the Planner role |
| --tool-manager-provider | str | npmai | ❌ | Provider for Tool_Manager role who select tools |
| --tool-manager-model | str | npmai | ❌ | Model for Tool_Manager role who select tools |
| --coder-model | str | codellama:7b-instruct | ❌ | Model for the Coder role |
| --coder-provider | str | npmai | ❌ | Provider for the Coder role |
| --auditor-model | str | qwen2.5-coder:7b | ❌ | Model for the Auditor role |
| --auditor-provider | str | npmai | ❌ | Provider for the Auditor role |
| --verifier-model | str | llama3.2:3b | ❌ | Model for the Verifier role |
| --verifier-provider | str | npmai | ❌ | Provider for the Verifier role |
| --chatter-model | str | granite3.3:2b | ❌ | Model for the Chatter role |
| --chatter-provider | str | npmai | ❌ | Provider for the Chatter role |
# Zero-config — all roles run on free NPMAI models
npmai run "Scrape the top 10 AI papers from arXiv today, summarise each in 3 sentences, save to Excel, and email it to me"
npmai run "Find all duplicate files in my Downloads folder and delete them"
# Mixing providers per role — Groq for planning/coding, defaults for the rest
npmai run "Pull latest from my GitHub repo, run the tests, and post results to Slack #dev" \
--planner-provider groq --planner-model llama-3.3-70b-versatile \
--coder-provider groq --coder-model llama-3.3-70b-versatile
npmai run "Create a Stripe customer for john@example.com and generate an invoice for 5000 rupees" \
--auditor-provider anthropic --auditor-model claude-sonnet-4-6
Output: Streamed logs showing each pipeline stage — Planning → Tool Selection → Code Generation → Security Audit → Execution → Verification. Final ✓ All steps completed successfully on success.
Provider Reference (same values work for every --*-provider flag above):
| Provider | --*-provider value | Example model | Save credentials first |
|---|---|---|---|
| NPMAI Free | npmai | llama3.2:3b | Not required |
| Local Ollama | local | llama3.2:3b | Not required |
| OpenAI | openai | gpt-4o | npmai save-credentials openai '{"api_key":"sk-xxx"}' |
| Groq | groq | llama-3.3-70b-versatile | `npmai save-
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
85.0kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.6kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.1k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.1kOpen-source super AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
