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. · Pythie
✦ 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
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.
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 version
v1 — 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.
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 means run and chat accept 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 TaskRuns 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 taskstr— ✅ Plain-English description of what to do --planner-modelstrllama3.2:3b❌ Model for the Planner role --planner-providerstrnpmai❌ Provider for the Planner role --tool-manager-providerstrnpmai❌ Provider for Tool_Manager role who select tools --tool-manager-modelstrnpmai❌ Model for Tool_Manager role who select tools --coder-modelstrcodellama:7b-instruct❌ Model for the Coder role --coder-providerstrnpmai❌ Provider for the Coder role --auditor-modelstrqwen2.5-coder:7b❌ Model for the Auditor role --auditor-providerstrnpmai❌ Provider for the Auditor role --verifier-modelstrllama3.2:3b❌ Model for the Verifier role --verifier-providerstrnpmai❌ Provider for the Verifier role --chatter-modelstrgranite3.3:2b❌ Model for the Chatter role --chatter-providerstrnpmai❌ 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 valueExample model Save credentials first NPMAI Free npmaillama3.2:3bNot required Local Ollama localllama3.2:3bNot required OpenAI openaigpt-4onpmai save-credentials openai '{"api_key":"sk-xxx"}'Groq groqllama-3.3-70b-versatilenpmai save-credentials groq '{"api_key":"gsk_xxx"}'Anthropic anthropicclaude-sonnet-4-6npmai save-credentials anthropic '{"api_key":"sk-ant-xxx"}'Gemini geminigemini-2.0-flashnpmai save-credentials gemini '{"api_key":"AIza-xxx"}'Mistral mistralmistral-large-latestnpmai save-credentials mistral '{"api_key":"xxx"}'Cohere coherecommand-r-plusnpmai save-credentials cohere '{"api_key":"xxx"}'Azure OpenAI azuregpt-4onpmai save-credentials azure '{"api_key":"xxx","endpoint":"https://xxx.openai.azure.com","deployment":"gpt-4o"}'AWS Bedrock bedrockanthropic.claude-3-sonnetnpmai save-credentials bedrock '{"aws_access_key":"xxx","aws_secret_key":"xxx","region":"us-east-1"}'HuggingFace hfmistralai/Mistral-7B-Instruct-v0.3npmai save-credentials hf '{"api_key":"hf_xxx"}'llama.cpp llamacpp/path/to/model.ggufNot required
npmai chat — Conversational ModeSends a message to the conversational chatter LLM without triggering the full 5-role agent pipeline. Only the chatter role's provider/model can be set — the other 4 roles aren't invoked at all in this mode.
Parameter Type Default Required Description user_msgstr— ✅ Your message or question --chatter-modelstrgranite3.3:2b❌ Model for the Chatter role --chatter-providerstrnpmai❌ Provider for the Chatter role
npmai chat "What is the LARA RAG architecture?"
npmai chat "How do I use StripeTool to create a subscription?"
npmai chat "Explain what Tool Manager does in the pipeline" --chatter-provider groq --chatter-model llama-3.3-70b-versatile
Output: Direct conversational response, printed to the terminal.
npmai save-credentials — Store API KeysSaves credentials encrypted with a Fernet machine-specific key to ~/.npmai_agent/creds.json. This is the only thing npmai_agents persists to disk — deliberately, since credentials are the one thing that genuinely needs to survive across separate CLI invocations.
Parameter Type Required Description namestr✅ Credential name/identifier datastr✅ JSON string of credential data
npmai save-credentials github '{"token":"ghp_xxxxxxxxxxxx"}'
npmai save-credentials openai '{"api_key":"sk-xxxxxxxxxxxx"}'
npmai save-credentials groq '{"api_key":"gsk_xxxxxxxxxxxx"}'
npmai save-credentials stripe '{"secret_key":"sk_live_xxxxxxxxxxxx"}'
npmai save-credentials slack '{"bot_token":"xoxb-xxxxxxxxxxxx"}'
npmai save-credentials anthropic '{"api_key":"sk-ant-xxxxxxxxxxxx"}'
npmai save-credentials sendgrid '{"api_key":"SG.xxxxxxxxxxxx"}'
npmai save-credentials notion '{"token":"secret_xxxxxxxxxxxx"}'
⚠️ Rotate any key that's ever been typed into a shared terminal, chat log, or screen-share. save-credentials stores it encrypted at rest, but that doesn't protect a key that already leaked before it was saved.
npmai load-credentials — Retrieve Stored CredentialsParameter Type Required Description namestr✅ Credential name to retrieve
npmai load-credentials github
# Output: {"token": "ghp_xxxxxxxxxxxx"}
npmai load-credentials stripe
# Output: {"secret_key": "sk_live_xxxxxxxxxxxx"}
npmai all-credentials — List All Stored Credential Namesnpmai all-credentials
# Output: ['github', 'openai', 'groq', 'stripe', 'slack', 'sendgrid']
npmai workspace-scan — Scan File SystemScans your file system and builds a workspace profile fed to the Planner before every task.
npmai workspace-scan
# Output: {"os": "Linux", "home": "/home/sonu", "desktop": [...], "documents": [...], ...}
npmai workspace-update — Update Workspace ProfileParameter Type Required Description keystr✅ Profile key to update valuestr✅ New value
npmai workspace-update preferred_language Python
npmai workspace-update project_root /home/sonu/npmai-agent
npmai workspace-context — View Context SummaryShows the text summary sent to the Planner LLM before every task.
npmai workspace-context
# Output: "OS: Linux | Home: /home/sonu | Python: 3.11 | Projects: npmai-agent, npmai..."
🏗️ Pipeline Architecture User Plain-English Task
│
▼
┌──────────────────────────────┐
│ WORKSPACE SCANNER │ scans Desktop/Documents/Downloads
│ Workspace.scan() │ builds context for Planner
└──────────────┬───────────────┘
│
▼
┌──────────────────────────────┐
│ 1. PLANNER LLM │ sees: 100-class one-line index only
│ default: llama3.2:3b │ returns: task summary + 2-5 steps
└──────────────┬───────────────┘
│ (concise task summary)
▼
┌──────────────────────────────┐
│ 2. TOOL MANAGER LLM │ phase 1: shortlists 2-6 classes
│ default: llama3.2 │ phase 2: reads full `use` docs
└──────────────┬───────────────┘ returns: selected class docs only
│ (selected tool docs)
▼
╔══════════════════════════╗
║ PER-STEP LOOP ║ up to 12 retries per step
║ ║ error fed back to Coder
║ 3. CODER LLM ║ sees: selected tool docs only
║ default: codellama:7b ║ writes: complete executable .py
║ ║
║ 4. AUDITOR LLM ║ sees: code only (security focus)
║ default: qwen2.5-coder ║ ALLOW or BLOCK + reason
║ ║
║ 5. SUBPROCESS EXECUTOR ║ isolated process execution
║ ║
║ 6. VERIFIER LLM ║ sees: step + output only
║ default: llama3.2:3b ║ YES (continue) or NO (retry)
╚══════════════════════════╝
│
▼
Task Complete ✓
Role Default Model Fallback Sees Returns 🗺️ Planner llama3.2:3bmistral:7b100-class one-line index Task summary + steps 🔎 Tool Manager llama3.2gemma3:12bIndex → selected use docs Final tool documentation 💻 Coder codellama:7b-instructdeepseek-coder:6.7bSelected use docs only Executable Python code 🛡️ Auditor qwen2.5-coder:7bfalcon:7b-instructCode only ALLOW / BLOCK + reason ✅ Verifier llama3.2:3bmistral:7bStep + output only YES / NO
🔐 CredStore — Encrypted Credential Vault Stores all API keys encrypted at ~/.npmai_agent/creds.json using a machine-specific Fernet key. All 100 tool classes read credentials from here automatically.
4 tools: save · load · all_keys · delete
from npmai_agents import CredStore
CredStore.save("stripe", {"secret_key": "sk_live_xxxx"})
CredStore.save("github", {"token": "ghp_xxxx"})
CredStore.save("openai", {"api_key": "sk-xxxx"})
CredStore.save("sendgrid", {"api_key": "SG.xxxx"})
creds = CredStore.load("stripe") # {"secret_key": "sk_live_xxxx"}
keys = CredStore.all_keys() # ['stripe', 'github', 'openai', 'sendgrid']
CredStore.delete("openai")
🖥️ Workspace Scans user file system and builds context fed to Planner before every task.
3 tools: scan · update_profile · context_summary
from npmai_agents import Workspace
ws = Workspace()
profile = ws.scan()
ws.update_profile("project_root", "/home/sonu/npmai")
print(ws.context_summary())
🛠️ Complete Tool Reference — 1,371 Tools Across 100 Classes
◈ Developer & CLI Tools — 155 Tools
GitTool — 24 Tools Local git version control — complete workflow from init to rebase.
from npmai_agents import GitTool
Method Purpose Key Parameters initInitialise new repo pathcloneClone remote repo url, deststatusShow working tree status pathaddStage files path, files="."commitCommit staged changes path, messagepushPush to remote path, branch="main"pullPull from remote path, branch="main"fetchFetch remote changes path, remote="origin"create_branchCreate new branch path, branch_namecheckoutSwitch branch path, branchmergeMerge branch into current path, branchlogShow commit history path, limit=10diffShow unstaged changes pathstashStash working directory pathstash_popPop stash pathtagCreate tag path, tag_nameresetReset to commit path, commit="HEAD", mode="mixed"rebaseRebase onto branch path, branchcherry_pickCherry-pick commit path, commit_hashblameShow line authorship path, fileshowShow commit details path, commitremote_addAdd remote path, name, urlremote_listList remotes pathsubmodule_initInit submodules path
GitTool.init("/home/sonu/project")
GitTool.clone("https://github.com/sonuramashishnpm/npmai.git", "/home/sonu/npmai")
GitTool.add("/home/sonu/npmai", ".")
GitTool.commit("/home/sonu/npmai", "feat: add tool manager LLM role")
GitTool.create_branch("/home/sonu/npmai", "feature/tool-manager")
GitTool.push("/home/sonu/npmai", "feature/tool-manager")
GitTool.log("/home/sonu/npmai", limit=5)
GitHubTool — 24 Tools Full GitHub API — repos, issues, PRs, releases, Actions, files.
from npmai_agents import GitHubTool
Method Purpose Key Parameters create_repoCreate new repository name, private=False, description=""delete_repoDelete repository owner, repofork_repoFork a repository owner, repocreate_issueCreate issue owner_repo, title, body, labels=[]close_issueClose issue owner_repo, issue_numberlist_issuesList open issues owner_repo, state="open"create_prCreate pull request owner_repo, title, base, head, body=""merge_prMerge pull request owner_repo, pr_numberlist_prsList pull requests owner_repo, state="open"review_prSubmit PR review owner_repo, pr_number, body, eventpush_fileCreate/update file owner_repo, path, content, messagedelete_fileDelete file owner_repo, path, messageget_fileGet file content owner_repo, pathlist_filesList directory contents owner_repo, path=""create_releaseCreate release owner_repo, tag, name, body=""get_actions_statusGet workflow runs owner_repotrigger_workflowTrigger workflow owner_repo, workflow_file, ref="main"list_branchesList branches owner_repoprotect_branchAdd branch protection owner_repo, branchadd_collaboratorAdd collaborator owner_repo, username, permission="push"create_gistCreate gist description, files, public=Trueget_user_infoGet user profile usernamestar_repoStar repository owner_repowatch_repoWatch repository owner_repo
GitHubTool.create_issue("sonuramashishnpm/npmai-agent", "Tool Manager integration", "Implement 2-phase tool selection", labels=["enhancement"])
GitHubTool.create_pr("sonuramashishnpm/npmai-agent", "feat: tool manager", "main", "feature/tool-manager")
GitHubTool.push_file("sonuramashishnpm/npmai-agent", "README.md", readme_content, "docs: update README to v1.0.0")
GitHubTool.create_release("sonuramashishnpm/npmai-agent", "v1.0.0", "Production Release", "1,371 tools across 100 classes")
GitHubTool.trigger_workflow("sonuramashishnpm/npmai-agent", "publish.yml")
GitLabTool — 16 Tools GitLab API — projects, issues, MRs, pipelines, members.
from npmai_agents import GitLabTool
Method Purpose Key Parameters create_projectCreate new project name, description="", visibility="private"list_projectsList projects owned=Trueget_projectGet project details project_idcreate_issueCreate issue project_id, title, description=""close_issueClose issue project_id, issue_iidcreate_mrCreate merge request project_id, title, source, targetmerge_mrMerge MR project_id, mr_iidlist_pipelinesList pipelines project_idtrigger_pipelineTrigger pipeline project_id, ref="main"get_pipeline_jobsGet pipeline jobs project_id, pipeline_idretry_jobRetry failed job project_id, job_idpush_fileCreate/update file project_id, path, content, messagelist_branchesList branches project_idcreate_branchCreate branch project_id, branch, ref="main"list_membersList project members project_idadd_memberAdd member project_id, user_id, access_level=30
GitLabTool.create_project("npmai-mirror", description="Mirror of npmai-agent", visibility="private")
GitLabTool.create_issue("12345678", "Add MCP hosting support", description="Expose search_tools/execute_tool")
GitLabTool.create_mr("12345678", "feat: mcp hosting", source="feature/mcp", target="main")
GitLabTool.trigger_pipeline("12345678", ref="main")
DockerTool — 26 Tools Full Docker control — images, containers, networks, volumes, Compose.
from npmai_agents import DockerTool
Method Purpose Key Parameters build_imageBuild image from Dockerfile context_path, tag, dockerfile="Dockerfile"push_imagePush to registry tagpull_imagePull from registry imagetag_imageTag image source, targetremove_imageRemove image image, force=Falselist_imagesList local images — run_containerRun container image, name="", ports={}, env={}, volumes={}stop_containerStop container namestart_containerStart stopped container nameremove_containerRemove container name, force=Falseexec_in_containerRun command in container name, commandget_logsGet container logs name, tail=100list_containersList containers all=Falseinspect_containerFull container details namecreate_networkCreate network name, driver="bridge"list_networksList networks — remove_networkRemove network namecreate_volumeCreate volume namelist_volumesList volumes — remove_volumeRemove volume name, force=Falsecompose_updocker-compose up path, detach=Truecompose_downdocker-compose down pathcompose_logsView compose logs path, service=""compose_psList compose services pathloginLogin to registry username, password, registry=""system_pruneRemove unused resources force=False
DockerTool.build_image("/home/sonu/app", tag="npmai-app:1.0.0")
DockerTool.run_container("npmai-app:1.0.0", name="npmai", ports={"8080": "80"}, env={"DEBUG": "false"})
DockerTool.exec_in_container("npmai", "python manage.py migrate")
DockerTool.get_logs("npmai", tail=50)
DockerTool.compose_up("/home/sonu/app")
PackageManagerTool — 22 Tools pip, npm, yarn, cargo, go — all in one class.
from npmai_agents import PackageManagerTool
Method Purpose Key Parameters pip_installInstall Python package package, version=""pip_uninstallUninstall package packagepip_listList installed packages — pip_showShow package info packagepip_freezeExport requirements output_file=""npm_installnpm install package="", save_dev=Falsenpm_uninstallnpm uninstall packagenpm_runRun npm script script, cwd="."npm_buildnpm build cwd="."npm_publishnpm publish cwd="."npm_listList npm packages cwd="."npm_updateUpdate packages cwd="."npm_auditSecurity audit cwd="."yarn_installyarn install cwd="."yarn_addAdd package package, dev=False, cwd="."yarn_removeRemove package package, cwd="."cargo_buildBuild Rust project cwd=".", release=Falsecargo_testRun Rust tests cwd="."cargo_runRun Rust binary cwd="."go_buildBuild Go project cwd="."go_testRun Go tests cwd="."go_getGet Go package package
PackageManagerTool.pip_install("requests", version=">=2.31.0")
PackageManagerTool.npm_install(cwd="/home/sonu/frontend")
PackageManagerTool.npm_run("build", cwd="/home/sonu/frontend")
PackageManagerTool.cargo_build(cwd="/home/sonu/rust-tool", release=True)
VSCodeTool — 13 Tools Control VS Code programmatically.
from npmai_agents import VSCodeTool
Method Purpose Key Parameters open_fileOpen file in VS Code file_pathopen_folderOpen folder folder_pathinstall_extensionInstall extension extension_iduninstall_extensionUninstall extension extension_idlist_extensionsList installed extensions — run_taskRun defined task task_name, cwd="."open_terminalOpen integrated terminal — apply_settingsApply settings JSON settings: dictget_settingsGet current settings — format_fileFormat file file_pathlint_workspaceLint workspace cwd="."create_workspaceCreate .code-workspace name, folders: listopen_workspaceOpen workspace file workspace_path
VSCodeTool.open_folder("/home/sonu/npmai-agent")
VSCodeTool.install_extension("ms-python.python")
VSCodeTool.format_file("/home/sonu/npmai-agent/npmai_agent/cli.py")
TerminalTool — 15 Tools Shell execution, environment variables, process management.
from npmai_agents import TerminalTool
Method Purpose Key Parameters runExecute shell command command, cwd=".", timeout=60run_interactiveRun interactive command command, cwd="."run_scriptExecute script file script_path, interpreter="bash"run_in_new_terminalOpen new terminal window commandset_env_varSet environment variable key, valueget_env_varGet environment variable keylist_env_varsList all env vars — source_fileSource env file file_pathwhichFind command path commandis_installedCheck if tool installed commandinstall_via_package_managerAuto-install tool packagecreate_aliasCreate shell alias name, commandlist_processesList running processes filter=""kill_processKill process by name/PID targetget_process_infoGet process details pid
TerminalTool.run("pytest tests/ -v", cwd="/home/sonu/npmai-agent")
TerminalTool.set_env_var("GROQ_API_KEY", "gsk_xxxx")
TerminalTool.is_installed("docker")
MakefileTool — 4 Tools from npmai_agents import MakefileTool
Method Purpose Key Parameters run_targetRun make target target, cwd="."list_targetsList available targets cwd="."create_makefileCreate new Makefile path, targets: dictadd_targetAdd target to Makefile path, name, commands: list, deps=[]
MakefileTool.create_makefile("/home/sonu/app", targets={"build": ["go build ."], "test": ["go test ./..."]})
MakefileTool.run_target("test", cwd="/home/sonu/app")
CMakeTool — 5 Tools from npmai_agents import CMakeTool
Method Purpose Key Parameters configureRun cmake configure source_dir, build_dir, options={}buildBuild project build_dir, target="", jobs=4installInstall build build_dir, prefix=""cleanClean build dir build_dirrun_ctestRun tests build_dir, verbose=False
CMakeTool.configure("/home/sonu/cpp-proj", "/home/sonu/cpp-proj/build")
CMakeTool.build("/home/sonu/cpp-proj/build", jobs=8)
CMakeTool.run_ctest("/home/sonu/cpp-proj/build", verbose=True)
DebuggerTool — 6 Tools from npmai_agents import DebuggerTool
Method Purpose Key Parameters run_python_with_pdbRun with pdb debugger script_path, breakpoints=[]analyze_tracebackParse and explain traceback traceback_textprofile_scriptProfile script performance script_path, output=""memory_profileProfile memory usage script_pathfind_deadlocksDetect thread deadlocks pidstrace_processTrace system calls pid, output=""
DebuggerTool.analyze_traceback(captured_traceback_text)
DebuggerTool.profile_script("/home/sonu/npmai-agent/npmai_agent/npmai_agents.py")
◈ Business & Payments — 152 Tools
StripeTool — 29 Tools Complete Stripe payments — customers, intents, subscriptions, invoices, payouts.
from npmai_agents import StripeTool
Method Purpose Key Parameters create_customerCreate customer email, name, phone=""get_customerGet customer customer_idupdate_customerUpdate customer customer_id, **kwargslist_customersList customers limit=10, email=""delete_customerDelete customer customer_idcreate_payment_intentCreate payment intent amount, currency="inr", customer_id=""confirm_paymentConfirm payment intent payment_intent_id, payment_methodcreate_chargeCreate charge amount, currency, source, description=""capture_chargeCapture authorised charge charge_idrefund_chargeRefund charge charge_id, amount=Nonelist_chargesList charges limit=10, customer_id=""create_subscriptionCreate subscription customer_id, price_idcancel_subscriptionCancel subscription subscription_idupdate_subscriptionUpdate subscription subscription_id, **kwargslist_subscriptionsList subscriptions customer_id=""create_productCreate product name, description=""create_priceCreate price product_id, amount, currency, interval=""create_invoiceCreate invoice customer_id, auto_advance=Truefinalize_invoiceFinalise invoice invoice_idpay_invoicePay invoice invoice_idlist_invoicesList invoices customer_id=""send_invoiceEmail invoice to customer invoice_idcreate_couponCreate coupon percent_off, duration="once"apply_couponApply coupon to customer customer_id, coupon_idcreate_payment_linkCreate payment link price_id, quantity=1list_payment_methodsList saved payment methods customer_id, type="card"get_balanceGet account balance — list_transactionsList balance transactions limit=10create_payoutCreate payout amount, currency="inr"
cid = StripeTool.create_customer(email="sonu@npmai.ai", name="Sonu Kumar")["id"]
StripeTool.create_subscription(customer_id=cid, price_id="price_xxxxx")
inv = StripeTool.create_invoice(customer_id=cid)["id"]
StripeTool.finalize_invoice(invoice_id=inv)
StripeTool.pay_invoice(invoice_id=inv)
StripeTool.create_payout(amount=50000, currency="inr")
RazorpayTool — 18 Tools Indian payment gateway — orders, capture, refunds, subscriptions, QR codes.
from npmai_agents import RazorpayTool
Method Purpose Key Parameters create_orderCreate payment order amount, currency="INR", notes={}get_orderGet order details order_idlist_ordersList orders count=10fetch_paymentFetch payment details payment_idcapture_paymentCapture payment payment_id, amountrefund_paymentRefund payment payment_id, amount=Nonelist_paymentsList payments count=10create_refundCreate refund payment_id, amount, notes={}create_customerCreate customer name, email, contactget_customerGet customer customer_idcreate_subscriptionCreate subscription plan_id, customer_id, total_countcreate_planCreate billing plan period, interval, name, amount, currency="INR"list_plansList plans count=10create_payment_linkCreate payment link amount, currency="INR", description=""list_payment_linksList payment links count=10create_qr_codeCreate QR for payment type="upi_qr", name="", description=""get_settlementsGet settlements — get_settlement_transactionsGet settlement TXNs settlement_id
order = RazorpayTool.create_order(amount=50000, currency="INR", notes={"purpose": "invoice #221"})
RazorpayTool.create_qr_code(type="upi_qr", name="Sonu Store")
RazorpayTool.refund_payment(payment_id="pay_xxxx")
ShopifyTool — 25 Tools Complete Shopify store — products, orders, customers, inventory, discounts.
from npmai_agents import ShopifyTool
Method Purpose Key Parameters list_productsList products limit=50get_productGet product product_idcreate_productCreate product title, body_html="", vendor="", product_type=""update_productUpdate product product_id, **kwargsdelete_productDelete product product_idlist_variantsList product variants product_idupdate_variantUpdate variant variant_id, **kwargslist_ordersList orders status="any", limit=50get_orderGet order order_idupdate_orderUpdate order order_id, **kwargscancel_orderCancel order order_id, reason=""fulfill_orderFulfill order order_id, tracking_number=""list_customersList customers limit=50get_customerGet customer customer_idcreate_customerCreate customer first_name, last_name, emailsearch_customersSearch customers querylist_customer_ordersGet customer orders customer_idget_inventory_levelsGet inventory location_id=""adjust_inventoryAdjust stock level inventory_item_id, location_id, adjustmentlist_collectionsList collections — create_collectionCreate collection title, body_html=""create_discountCreate discount code code, value, value_type="percentage"get_shop_infoGet shop details — list_locationsList store locations — get_analyticsGet sales analytics period="day"
ShopifyTool.create_product(title="NPMAI Hoodie", vendor="NPMAI Merch", product_type="Apparel")
ShopifyTool.adjust_inventory(inventory_item_id="123", location_id="456", adjustment=-2)
ShopifyTool.create_discount(code="NPMAI10", value=10, value_type="percentage")
InvoiceTool — 8 Tools from npmai_agents import InvoiceTool
Method Purpose Key Parameters create_invoiceGenerate PDF invoice client, items: list, output_pathcreate_quoteGenerate quote client, items: list, output_pathcreate_receiptGenerate receipt client, items: list, output_pathcreate_purchase_orderGenerate PO vendor, items: list, output_pathsend_invoice_emailEmail invoice invoice_path, to_email, subject=""batch_create_invoicesBulk invoice generation data: list, output_dirextract_invoice_dataAI extract from image/PDF file_pathcreate_recurring_invoiceSet recurring invoice client, items, interval="monthly"
InvoiceTool.create_invoice(client="Acme Pvt Ltd", items=[{"desc": "Consulting", "qty": 1, "rate": 25000}], output_path="invoice_221.pdf")
InvoiceTool.send_invoice_email("invoice_221.pdf", to_email="acme@example.com", subject="Invoice #221")
AccountingTool — 10 Tools from npmai_agents import AccountingTool
Method Purpose Key Parameters calculate_gstCalculate GST amount, rate=18, inclusive=Falsecalculate_vatCalculate VAT amount, rate, inclusive=Falsegenerate_profit_lossP&L statement revenue: list, expenses: list, period=""generate_balance_sheetBalance sheet assets: dict, liabilities: dictgenerate_cash_flowCash flow statement operations: list, investing: list, financing: listdepreciation_scheduleAsset depreciation asset_cost, salvage, life, method="straight_line"currency_convertConvert currencies amount, from_currency, to_currencyget_exchange_ratesGet current FX rates base="INR"track_expensesLog expense amount, category, description, date=""calculate_tax_liabilityTax calculation income, deductions: dict, regime="new"
AccountingTool.calculate_gst(amount=10000, rate=18)
AccountingTool.currency_convert(amount=100, from_currency="USD", to_currency="INR")
AccountingTool.calculate_tax_liability(income=1200000, deductions={"80C": 150000}, regime="new")
CRMTool — 18 Tools Local SQLite CRM — contacts, deals, pipeline, activities, reports.
from npmai_agents import CRMTool
Method Purpose Key Parameters add_contactAdd contact name, email, phone="", company=""update_contactUpdate contact contact_id, **kwargsdelete_contactDelete contact contact_idlist_contactsList all contacts search=""search_contactsSearch contacts queryimport_contacts_csvImport from CSV csv_pathexport_contactsExport to CSV output_pathmerge_duplicate_contactsMerge duplicates contact_id_1, contact_id_2add_dealAdd deal to pipeline title, value, contact_id, stage="lead"update_dealUpdate deal deal_id, **kwargsclose_dealMark deal closed/won deal_id, won=Truelist_dealsList all deals stage=""get_pipeline_valueTotal pipeline value stage=""add_activityLog activity contact_id, type, notes=""list_activitiesList activities contact_id=""set_reminderSet follow-up reminder contact_id, date, messagegenerate_sales_reportSales summary period="month"get_conversion_rateLead conversion rate period="month"
cid = CRMTool.add_contact(name="Ravi Sharma", email="ravi@example.com", company="Acme")
CRMTool.add_deal(title="Enterprise plan", value=200000, contact_id=cid, stage="negotiation")
CRMTool.generate_sales_report(period="month")
EmailMarketingTool — 13 Tools from npmai_agents import EmailMarketingTool
Method Purpose Key Parameters create_campaignCreate email campaign name, subject, list_id, template_idschedule_campaignSchedule campaign campaign_id, send_timesend_campaign_nowSend immediately campaign_idcreate_listCreate subscriber list nameadd_subscriberAdd subscriber list_id, email, name=""remove_subscriberRemove subscriber list_id, emailimport_subscribersBulk import list_id, csv_pathget_campaign_statsGet campaign metrics campaign_idget_list_statsGet list stats list_idcreate_automationCreate email automation name, trigger, emails: listcreate_templateCreate email template name, html_contentunsubscribeUnsubscribe email emailget_unsubscribesGet unsubscribe list list_id
lid = EmailMarketingTool.create_list("npmai-newsletter")
EmailMarketingTool.add_subscriber(list_id=lid, email="reader@example.com")
EmailMarketingTool.create_campaign(name="July Update", subject="What's new in npmai_agents", list_id=lid, template_id="tmpl_1")
AnalyticsTool — 9 Tools from npmai_agents import AnalyticsTool
Method Purpose Key Parameters connect_google_analyticsConnect GA4 property_id, credentials_pathget_sessionsGet session data start_date, end_dateget_top_pagesTop pages by views start_date, end_date, limit=10get_traffic_sourcesTraffic source breakdown start_date, end_dateget_conversionsConversion events start_date, end_date, event=""get_realtime_usersRealtime active users — create_custom_reportCustom dimensions report dimensions: list, metrics: list, date_rangegenerate_weekly_reportAuto weekly report output_path=""track_eventTrack custom event event_name, params={}
AnalyticsTool.connect_google_analytics(property_id="123456789", credentials_path="/home/sonu/ga.json")
AnalyticsTool.get_top_pages("2026-06-01", "2026-06-30", limit=5)
AnalyticsTool.generate_weekly_report(output_path="weekly_report.pdf")
InventoryTool — 12 Tools from npmai_agents import InventoryTool
Method Purpose Key Parameters add_productAdd product to inventory name, sku, quantity, cost, priceupdate_stockUpdate stock level sku, quantity, operation="set"get_stock_levelGet stock for SKU skulist_low_stockItems below threshold threshold=10list_out_of_stockOut of stock items — get_inventory_valueTotal inventory value — record_saleRecord a sale sku, quantity, pricerecord_purchaseRecord a purchase sku, quantity, costgenerate_stock_reportFull stock report output_path=""forecast_demandDemand forecasting sku, days_ahead=30export_inventoryExport to CSV/Excel output_pathimport_inventoryImport from CSV csv_path
InventoryTool.add_product(name="NPMAI T-Shirt", sku="TSHIRT-001", quantity=100, cost=150, price=499)
InventoryTool.record_sale(sku="TSHIRT-001", quantity=2, price=499)
InventoryTool.list_low_stock(threshold=10)
ContractTool — 10 Tools from npmai_agents import ContractTool
Method Purpose Key Parameters create_ndaGenerate NDA party_1, party_2, duration="1 year", output_path=""create_service_agreementService agreement provider, client, services: list, rate, output_path=""create_employment_contractEmployment contract employee, employer, role, salary, output_path=""fill_templateFill contract template template_path, variables: dict, output_pathextract_key_termsAI extract key terms contract_pathsummarize_contractAI summarise contract contract_path, max_words=300check_contract_datesCheck expiry dates contract_pathcompare_contractsCompare two contracts path_1, path_2add_signature_fieldAdd signature field contract_path, page, x, yverify_signatureVerify digital signature contract_path
ContractTool.create_nda(party_1="NPMAI Ecosystem", party_2="Contractor Name", duration="2 years", output_path="nda.pdf")
ContractTool.extract_key_terms("nda.pdf")
◈ Cloud & DevOps — 149 Tools
AWSS3Tool — 16 Tools from npmai_agents import AWSS3Tool
Method Purpose Key Parameters create_bucketCreate S3 bucket bucket_name, region="ap-south-1"delete_bucketDelete bucket bucket_nameupload_fileUpload file bucket, local_path, s3_key=""upload_folderUpload directory bucket, local_dir, s3_prefix=""download_fileDownload file bucket, s3_key, local_pathdownload_folderDownload prefix bucket, s3_prefix, local_dirlist_objectsList objects bucket, prefix=""delete_objectDelete object bucket, s3_keycopy_objectCopy object src_bucket, src_key, dst_bucket, dst_keyget_presigned_urlGenerate presigned URL bucket, s3_key, expires=3600set_bucket_policySet bucket policy bucket, policy: dictenable_static_websiteEnable static hosting bucket, index="index.html"sync_folderSync local↔S3 bucket, local_dir, s3_prefix=""get_object_metadataGet object metadata bucket, s3_keylist_bucketsList all buckets — get_bucket_sizeGet total bucket size bucket
AWSS3Tool.create_bucket("npmai-agent-assets")
AWSS3Tool.upload_file("npmai-agent-assets", "/home/sonu/build.zip", s3_key="releases/build.zip")
AWSS3Tool.get_presigned_url("npmai-agent-assets", "releases/build.zip", expires=3600)
AWSLambdaTool — 12 Tools from npmai_agents import AWSLambdaTool
Method Purpose Key Parameters create_functionCreate Lambda function name, runtime, handler, zip_path, role_arnupdate_function_codeUpdate function code name, zip_pathupdate_function_configUpdate config name, **kwargsinvoke_functionInvoke function name, payload={}delete_functionDelete function namelist_functionsList all functions — get_functionGet function details nameadd_layerAttach Lambda layer function_name, layer_arncreate_trigger_s3Add S3 trigger function_name, bucket, events=["s3:ObjectCreated:*"]create_trigger_api_gatewayAdd API Gateway trigger function_name, api_idget_logsGet CloudWatch logs function_name, limit=100list_versionsList function versions function_name
AWSLambdaTool.create_function(name="npmai-webhook", runtime="python3.12", handler="app.handler", zip_path="lambda.zip", role_arn="arn:aws:iam::123:role/lambda-exec")
AWSLambdaTool.invoke_function(name="npmai-webhook", payload={"event": "test"})
AWSECSTool — 11 Tools from npmai_agents import AWSECSTool
Method Purpose Key Parameters create_clusterCreate ECS cluster namedelete_clusterDelete cluster nameregister_task_definitionRegister task def family, containers: list, cpu="256", memory="512"run_taskRun task cluster, task_definition, launch_type="FARGATE"stop_taskStop task cluster, task_arnlist_tasksList running tasks cluster, status="RUNNING"create_serviceCreate service cluster, name, task_def, desired_count=1update_serviceUpdate service cluster, name, desired_count=None, task_def=""delete_serviceDelete service cluster, namedescribe_tasksDescribe tasks cluster, task_arns: listget_task_logsGet task logs cluster, task_arn
AWSECSTool.create_cluster("npmai-cluster")
AWSECSTool.create_service("npmai-cluster", name="agent-api", task_def="agent-task:1", desired_count=2)
CloudflareTool — 20 Tools from npmai_agents import CloudflareTool
Method Purpose Key Parameters list_zonesList zones — get_zoneGet zone details zone_idcreate_dns_recordCreate DNS record zone_id, type, name, content, ttl=1update_dns_recordUpdate DNS record zone_id, record_id, **kwargsdelete_dns_recordDelete DNS record zone_id, record_idlist_dns_recordsList DNS records zone_id, type=""purge_cachePurge all cache zone_id, urls=[]get_analyticsZone analytics zone_id, period="-10080"create_workerCreate Worker name, scriptupdate_workerUpdate Worker name, scriptdelete_workerDelete Worker namelist_workersList Workers — set_worker_routeSet Worker route zone_id, pattern, worker_namecreate_kv_namespaceCreate KV namespace titlewrite_kvWrite KV value namespace_id, key, valueread_kvRead KV value namespace_id, keydelete_kvDelete KV key namespace_id, keylist_kvList KV keys namespace_idget_firewall_rulesGet firewall rules zone_idcreate_firewall_ruleCreate firewall rule zone_id, expression, action="block"
CloudflareTool.create_dns_record(zone_id="abc123", type="A", name="agent.npmai.ai", content="1.2.3.4")
CloudflareTool.purge_cache(zone_id="abc123")
CloudflareTool.create_worker(name="edge-router", script=worker_js_code)
VercelTool — 13 Tools · NetlifyTool — 13 Tools · RailwayTool — 10 Tools from npmai_agents import VercelTool, NetlifyTool, RailwayTool
VercelTool: deploy · list_deployments · get_deployment · delete_deployment · list_projects · create_project · delete_project · set_env_var · list_env_vars · get_deployment_logs · rollback · add_domain · list_domains
NetlifyTool: list_sites · create_site · delete_site · deploy_folder · list_deploys · rollback_deploy · lock_deploy · set_env_var · list_env_vars · delete_env_var · add_domain · list_forms · get_form_submissions
RailwayTool: deploy · list_projects · create_project · list_services · deploy_service · restart_service · set_env_var · list_env_vars · get_logs · get_deployments
VercelTool.deploy("/home/sonu/npmai-web")
NetlifyTool.deploy_folder("/home/sonu/npmai-web/dist", site_id="xyz")
RailwayTool.deploy_service(project_id="proj_1", service_id="svc_1")
KubernetesTool — 24 Tools from npmai_agents import KubernetesTool
Method Purpose Key Parameters applyApply YAML manifest manifest_pathdelete_resourceDelete resource resource_type, name, namespace="default"get_podsList pods namespace="default", label=""describe_podDescribe pod name, namespace="default"get_pod_logsGet pod logs name, namespace="default", tail=100exec_in_podExecute in pod name, command, namespace="default"get_deploymentsList deployments namespace="default"scale_deploymentScale deployment name, replicas, namespace="default"rollout_restartRestart deployment name, namespace="default"rollout_statusCheck rollout status name, namespace="default"get_servicesList services namespace="default"port_forwardPort forward resource, local_port, remote_port, namespace="default"get_nodesList nodes — cordon_nodeCordon node node_namedrain_nodeDrain node node_nameapply_secretCreate/update secret name, data: dict, namespace="default"get_configmapGet ConfigMap name, namespace="default"create_namespaceCreate namespace namelist_namespacesList namespaces — get_resource_usageGet resource usage namespace="default"helm_installHelm chart install release_name, chart, values={}helm_upgradeHelm chart upgrade release_name, chart, values={}helm_uninstallHelm chart uninstall release_namehelm_listList Helm releases —
KubernetesTool.apply("/home/sonu/k8s/deployment.yaml")
KubernetesTool.scale_deployment("agent-api", replicas=3, namespace="prod")
KubernetesTool.get_pod_logs("agent-api-6f9d", namespace="prod", tail=200)
TerraformTool — 16 Tools · MonitoringTool — 14 Tools from npmai_agents import TerraformTool, MonitoringTool
TerraformTool: init · plan · apply · destroy · validate · fmt · show · output · state_list · state_show · state_rm · import_resource · graph · workspace_list · workspace_new · workspace_select
MonitoringTool: get_cpu_usage · get_memory_info · get_disk_usage · get_network_io · get_process_list · kill_process · get_gpu_info · watch_file_changes · get_open_ports · check_service_health · send_alert · get_system_info · tail_log_file · parse_log_file
TerraformTool.init("/home/sonu/infra")
TerraformTool.plan("/home/sonu/infra")
TerraformTool.apply("/home/sonu/infra")
MonitoringTool.check_service_health("npmai-agent-api")
MonitoringTool.send_alert("Disk usage above 90% on prod-1")
◈ Communication — 95 Tools
TwilioTool — 12 Tools from npmai_agents import TwilioTool
Method Purpose Key Parameters send_smsSend SMS to, body, from_=""send_bulk_smsBulk SMS numbers: list, bodymake_callVoice call with TTS to, message, from_=""get_call_statusCheck call status call_sidsend_whatsappSend WhatsApp message to, bodysend_whatsapp_templateTemplate WhatsApp to, template_sid, variables: listget_message_statusCheck message status message_sidlist_messagesList messages limit=20verify_phoneSend OTP to, channel="sms"check_verificationCheck OTP to, codecreate_subaccountCreate subaccount friendly_nameget_account_balanceGet balance —
TwilioTool.send_sms(to="+919876543210", body="Your NPMAI order has shipped.")
TwilioTool.verify_phone(to="+919876543210", channel="sms")
TwilioTool.check_verification(to="+919876543210", code="123456")
SendGridTool — 14 Tools from npmai_agents import SendGridTool
Method Purpose Key Parameters send_emailSend transactional email to, subject, body, from_email=""send_bulkBulk email send recipients: list, subject, bodysend_with_templateTemplate email to, template_id, data: dictcreate_templateCreate email template name, html_contentupdate_templateUpdate template template_id, html_contentlist_templatesList templates — create_contact_listCreate contact list nameadd_contactsAdd contacts to list list_id, contacts: listcreate_campaignCreate campaign title, subject, list_ids: list, template_idschedule_campaignSchedule send campaign_id, send_atget_statsEmail statistics start_date, end_dateget_bouncesList bounced emails — delete_bounceRemove from bounce list emailget_spam_reportsList spam reports —
SendGridTool.send_email(to="sonu@npmai.ai", subject="Weekly Revenue Report", body="See attached.")
SendGridTool.get_stats("2026-06-01", "2026-06-30")
CalendarTool — 11 Tools from npmai_agents import CalendarTool
Method Purpose Key Parameters list_eventsList upcoming events max_results=10, calendar_id="primary"create_eventCreate event summary, start, end, description="", attendees=[]update_eventUpdate event event_id, **kwargsdelete_eventDelete event event_id, calendar_id="primary"quick_add_eventNatural language add text, calendar_id="primary"list_calendarsList all calendars — create_calendarCreate new calendar summary, timezone="Asia/Kolkata"find_free_slotsFind free time duration_minutes=60, days_ahead=7, working_hours=(9,18)send_inviteSend event invite event_id, emailsync_to_localExport to local ICS output_path, max_results=100import_icalImport ICS file ical_path, calendar_id="primary"
CalendarTool.quick_add_event("Team sync tomorrow 5pm")
CalendarTool.find_free_slots(duration_minutes=30, days_ahead=3)
ZoomTool — 10 Tools · MicrosoftTeamsTool — 5 Tools · TwilioTool (above) · PushNotificationTool — 7 Tools · RSSFeedTool — 9 Tools · WebhookTool — 8 Tools · ChatOpsAutomationTool — 9 Tools · SMTPAdvancedTool — 10 Tools from npmai_agents import ZoomTool, MicrosoftTeamsTool, PushNotificationTool
from npmai_agents import RSSFeedTool, WebhookTool, ChatOpsAutomationTool, SMTPAdvancedTool
ZoomTool: create_meeting · list_meetings · get_meeting · update_meeting · delete_meeting · get_meeting_participants · get_recording · list_recordings · create_webinar · get_registrants
MicrosoftTeamsTool: send_message · send_adaptive_card · send_file_notification · create_channel_message_with_mention · send_approval_request
PushNotificationTool: send_fcm · send_fcm_bulk · send_fcm_topic · send_apns · send_web_push · send_pushbullet · send_pushover
RSSFeedTool: parse_feed · monitor_feed · compare_feeds · get_new_items · create_rss_feed · aggregate_feeds · search_in_feed · export_feed_items · subscribe_and_notify
WebhookTool: start_webhook_server · verify_signature · register_webhook · list_registered_webhooks · test_webhook · replay_webhook · create_webhook_proxy · inspect_webhook_payload
ChatOpsAutomationTool: route_alert · create_incident · post_deployment_notification · send_daily_standup_reminder · collect_standup_responses · create_approval_workflow · check_approval_status · broadcast_announcement · schedule_message
SMTPAdvancedTool: send_html_email · send_template_email · monitor_inbox · search_emails · download_attachments · auto_reply · forward_emails · mark_as_read · delete_emails · create_filter_rule
ZoomTool.create_meeting(topic="NPMAI Team Sync", start_time="2026-07-10T15:00:00")
MicrosoftTeamsTool.send_message(channel_id="general", text="Deploy complete ✅")
WebhookTool.start_webhook_server(port=8000, secret="whsec_xxx")
SMTPAdvancedTool.monitor_inbox(folder="INBOX", callback=lambda msg: print(msg.subject))
◈ Creative & Design — 97 Tools
FigmaTool — 13 Tools from npmai_agents import FigmaTool
Method Purpose Key Parameters get_fileGet Figma file file_keyget_nodeGet specific node file_key, node_idlist_filesList project files project_idexport_assetExport asset file_key, node_id, format="PNG", scale=1export_all_assetsExport all assets file_key, output_dir, format="PNG"get_componentsGet components file_keyget_stylesGet styles file_keyget_commentsGet comments file_keypost_commentPost comment file_key, message, x, ycreate_webhookCreate webhook team_id, event_type, endpointlist_projectsList team projects team_idget_team_componentsTeam component library team_idget_versionsFile version history file_key
FigmaTool.export_all_assets(file_key="abc123", output_dir="/home/sonu/assets", format="PNG")
FigmaTool.get_components(file_key="abc123")
DiagramTool — 10 Tools from npmai_agents import DiagramTool
Method Purpose Key Parameters create_flowchartFlowchart from steps steps: list, output_pathcreate_er_diagramER diagram tables: dict, output_pathcreate_sequence_diagramSequence diagram actors: list, messages: list, output_pathcreate_class_diagramUML class diagram classes: dict, output_pathcreate_network_diagramNetwork topology nodes: list, edges: list, output_pathcreate_ganttGantt chart tasks: list, output_pathcreate_mindmapMind map root, branches: dict, output_pathcreate_org_chartOrg chart structure: dict, output_pathrender_mermaidRender Mermaid syntax mermaid_code, output_pathrender_plantumlRender PlantUML plantuml_code, output_path
DiagramTool.create_flowchart(steps=["Receive task", "Plan", "Select tools", "Code", "Audit", "Execute", "Verify"], output_path="pipeline.png")
DiagramTool.render_mermaid(mermaid_code="graph TD; A-->B; B-->C;", output_path="flow.png")
SVGTool — 10 Tools · BlenderTool — 11 Tools · CanvaTool — 9 Tools · FontTool — 10 Tools · ColorTool — 11 Tools · IconTool — 7 Tools · PrintTool — 8 Tools · ThreeDTool — 8 Tools from npmai_agents import SVGTool, BlenderTool, CanvaTool, FontTool
from npmai_agents import ColorTool, IconTool, PrintTool, ThreeDTool
SVGTool: create_svg · add_element · convert_to_png · convert_to_pdf · optimize · animate · batch_convert · create_icon_set · trace_bitmap · merge_svgs
BlenderTool: render_image · render_animation · import_obj · import_fbx · export_obj · export_fbx · export_gltf · convert_format · apply_material · batch_render · create_turntable_video
CanvaTool: list_designs · get_design · create_design · export_design · list_brand_kits · get_brand_kit · list_assets · upload_asset · create_from_template
FontTool: list_system_fonts · install_font · remove_font · render_text_image · create_text_animation_frames · generate_font_preview · convert_font · subset_font · get_font_info · pair_fonts_suggestion
ColorTool: generate_palette · extract_palette_from_image · convert_color · find_complementary · create_gradient · check_contrast_ratio · suggest_accessible_combination · create_color_wheel · generate_brand_palette · export_palette · analyze_image_colors
IconTool: generate_icon · create_app_icon_set · resize_icon · convert_ico · create_favicon_package · batch_convert_icons · add_badge
PrintTool: create_business_card · create_flyer · create_poster · create_brochure · create_certificate · create_label_sheet · create_letterhead · add_bleed_marks
ThreeDTool: view_model · get_model_info · convert_model · optimize_mesh · center_model · scale_model · merge_models · generate_thumbnail
SVGTool.convert_to_png("logo.svg", output_path="logo.png", scale=2)
BlenderTool.render_image("scene.blend", output_path="render.png")
ColorTool.generate_palette(base_color="#00f5ff", count=5)
IconTool.create_app_icon_set("logo.png", output_dir="/home/sonu/icons")
◈ Data & Research — 137 Tools
DataAnalysisTool — 15 Tools from npmai_agents import DataAnalysisTool
Method Purpose Key Parameters loadLoad CSV/Excel/JSON file_pathsaveSave to file file_path, format="csv"profileStatistical profile — cleanAuto data cleaning remove_nulls=True, remove_duplicates=TruetransformTransform columns operations: dictfilter_dataFilter rows conditions: dictmerge_filesMerge datasets file_paths: list, on, how="inner"pivotPivot table index, columns, values, aggfunc="sum"time_series_analysisTime series stats date_col, value_colcorrelation_matrixCorrelation heatmap output_path=""outlier_detectionFind outliers method="iqr"feature_importanceFeature importance target_colcluster_dataK-means clustering n_clusters=3, features: listnatural_language_queryQuery in plain English questionauto_visualizeAuto-generate charts out_dir=""
DataAnalysisTool.load("sales.csv")
DataAnalysisTool.clean(remove_nulls=True, remove_duplicates=True)
DataAnalysisTool.pivot(index="region", columns="month", values="revenue", aggfunc="sum")
DataAnalysisTool.natural_language_query("what were the top 5 customers by revenue last quarter?")
VisualizationTool — 15 Tools from npmai_agents import VisualizationTool
Method Purpose Key Parameters bar_chartBar chart data, x, y, title="", output_path=""line_chartLine chart data, x, y, title="", output_path=""scatter_plotScatter plot data, x, y, color="", output_path=""pie_chartPie chart data, labels, values, title="", output_path=""heatmapCorrelation heatmap data, output_path=""histogramHistogram data, column, bins=20, output_path=""box_plotBox plot data, columns: list, output_path=""violin_plotViolin plot data, x, y, output_path=""geographic_mapChoropleth map data, location_col, value_col, output_path=""create_dashboardMulti-chart dashboard charts: list, output_pathsankey_diagramSankey flow diagram source: list, target: list, value: list, output_path=""treemapTreemap chart data, path: list, values, output_path=""sunburstSunburst chart data, path: list, values, output_path=""waterfall_chartWaterfall chart categories: list, values: list, output_path=""candlestick_chartOHLC candlestick data, output_path=""
VisualizationTool.bar_chart(data=df, x="month", y="revenue", title="Monthly Revenue", output_path="revenue.png")
VisualizationTool.create_dashboard(charts=["revenue.png", "churn.png"], output_path="dashboard.png")
DatabaseTool — 22 Tools from npmai_agents import DatabaseTool
Method Purpose Key Parameters connect_postgresConnect PostgreSQL host, db, user, password, port=5432execute_queryExecute SQL query query, params=()execute_transactionExecute transaction queries: listbackup_postgresBackup database output_pathrestore_postgresRestore backup backup_pathget_schemaGet DB schema — connect_mysqlConnect MySQL host, db, user, password, port=3306connect_mongodbConnect MongoDB uri, db_namemongo_findFind documents collection, query={}, limit=0mongo_insertInsert document(s) collection, datamongo_updateUpdate documents collection, query, updatemongo_deleteDelete documents collection, queryconnect_redisConnect Redis host="localhost", port=6379, db=0redis_setSet key key, value, expire=Noneredis_getGet key keyredis_hsetSet hash field name, key, valueredis_hgetGet hash field name, keyredis_lpushPush to list name, *valuesexport_to_csvExport query to CSV query, output_pathimport_from_csvImport CSV to table csv_path, table_namecreate_sqlite_dbCreate SQLite DB db_pathquery_sqliteQuery SQLite db_path, query
DatabaseTool.connect_postgres(host="localhost", db="npmai", user="postgres", password="xxxx")
DatabaseTool.execute_query("SELECT * FROM users WHERE active = true")
DatabaseTool.redis_set("session:123", "active", expire=3600)
SearchResearchTool — 11 Tools · FinancialDataTool — 14 Tools · SocialMediaDataTool — 14 Tools · WeatherGeoTool — 12 Tools · TextAnalyticsTool — 14 Tools · WebScrapingAdvancedTool — 12 Tools · ReportGeneratorTool — 8 Tools from npmai_agents import SearchResearchTool, FinancialDataTool, SocialMediaDataTool
from npmai_agents import WeatherGeoTool, TextAnalyticsTool, WebScrapingAdvancedTool, ReportGeneratorTool
SearchResearchTool: search_arxiv · get_arxiv_paper · search_pubmed · search_semantic_scholar · get_citations · search_wikipedia · get_wikipedia_page · search_google_scholar · search_news · get_trending_topics · search_patents
FinancialDataTool: get_stock_price · get_multiple_stocks · get_company_info · get_financial_statements · get_earnings_calendar · get_economic_indicators · get_crypto_price · get_crypto_info · get_forex_rate · get_commodity_prices · calculate_technical_indicators · screen_stocks · get_options_chain · portfolio_analysis
SocialMediaDataTool: get_twitter_user · get_twitter_timeline · search_twitter · get_twitter_trends · get_reddit_posts · search_reddit · get_reddit_comments · get_subreddit_info · get_youtube_video_info · get_youtube_channel_info · get_youtube_comments · search_youtube · get_instagram_profile · get_hackernews_top
WeatherGeoTool: get_current_weather · get_forecast · get_historical_weather · get_weather_alerts · geocode · reverse_geocode · get_timezone · calculate_distance · get_elevation · get_nearby_places · get_air_quality · get_uv_index
TextAnalyticsTool: sentiment_analysis · classify_text · extract_entities · extract_keywords · summarize · translate · detect_language · check_grammar · calculate_readability · topic_modeling · text_similarity · generate_embeddings · semantic_search · detect_plagiarism
WebScrapingAdvancedTool: scrape_with_js · scrape_paginated · scrape_login_protected · extract_structured_data · monitor_page_changes · bulk_scrape · extract_emails_phones · map_website_structure · take_full_screenshot · extract_all_links · download_all_images · fill_and_submit_form
ReportGeneratorTool: create_pdf_report · create_word_report · create_excel_report · create_presentation · generate_research_report · schedule_report · create_dashboard_report · generate_from_template
SearchResearchTool.search_arxiv("retrieval augmented generation", max_results=10)
FinancialDataTool.get_stock_price("TCS.NS")
SocialMediaDataTool.get_reddit_posts(subreddit="MachineLearning", limit=25)
WeatherGeoTool.get_current_weather(city="Kota, Rajasthan")
TextAnalyticsTool.sentiment_analysis("This product completely exceeded my expectations.")
WebScrapingAdvancedTool.scrape_with_js("https://example.com/dashboard")
ReportGeneratorTool.create_pdf_report(title="Weekly Ops Report", sections=[...], output_path="report.pdf")
◈ Media & Audio/Video — 123 Tools
FFmpegTool — 32 Tools Most comprehensive video/audio processing class — 32 tools.
from npmai_agents import FFmpegTool
Method Purpose Key Parameters trimTrim video/audio input, output, start, endmergeMerge files inputs: list, outputcompress_videoCompress video input, output, crf=23compress_audioCompress audio input, output, bitrate="128k"convertConvert format input, outputextract_audioExtract audio track input, outputreplace_audioReplace audio video, audio, outputadd_subtitlesBurn subtitles input, srt, outputextract_subtitlesExtract subtitles input, outputresizeResize video input, output, width, heightcropCrop video input, output, x, y, width, heightadd_watermarkAdd watermark input, watermark, output, position="bottomright"change_speedChange playback speed input, output, speed=2.0reverseReverse video input, outputloopLoop video input, output, count=3concatenate_with_transitionJoin with transition inputs: list, output, transition="fade"extract_framesExtract frames input, output_dir, fps=1create_from_framesVideo from frames frames_dir, output, fps=24add_intro_outroAdd intro/outro main, intro, outro, outputpicture_in_picturePiP overlay main, overlay, output, position="topright"normalize_audioNormalise loudness input, outputdenoise_audioAudio denoising input, outputget_metadataGet file metadata inputget_durationGet duration inputget_resolutionGet resolution inputcreate_thumbnailGenerate thumbnail input, output, time="00:00:05"create_gifCreate GIF input, output, start=0, duration=5split_by_durationSplit into segments input, output_dir, segment_duration=60add_text_overlayAdd text input, output, text, x, ystabilize_videoVideo stabilisation input, outputcolor_gradeColour grading input, output, preset="cinematic"create_slideshowImages to video images_dir, output, duration_per_image=3
FFmpegTool.compress_video("/home/sonu/raw.mp4", "compressed.mp4", crf=28)
FFmpegTool.create_gif("/home/sonu/demo.mp4", "demo.gif", start=5, duration=8)
FFmpegTool.add_subtitles("/home/sonu/video.mp4", "/home/sonu/subs.srt", "final.mp4")
FFmpegTool.split_by_duration("/home/sonu/lecture.mp4", "/home/sonu/parts", segment_duration=300)
AudioTool — 15 Tools · YouTubeDownloaderTool — 9 Tools · ImageAdvancedTool — 20 Tools from npmai_agents import AudioTool, YouTubeDownloaderTool, ImageAdvancedTool
AudioTool: convert · split · merge · normalize · change_pitch · change_tempo · remove_silence · apply_eq · fade_in_out · detect_bpm · get_waveform_data · record_microphone · play_audio · transcribe · translate_audio
YouTubeDownloaderTool: download_video · download_audio · download_playlist · get_video_info · download_subtitles · get_available_formats · download_thumbnail · search_videos · get_channel_videos
ImageAdvancedTool: batch_resize · batch_convert · create_collage · remove_background · replace_background · upscale · restore_old_photo · face_detect · blur_faces · add_border · add_shadow · create_gif_from_images · optimize_for_web · extract_dominant_colors · create_palette · compare_images · create_sprite_sheet · watermark_batch · convert_to_ico · create_favicon
AudioTool.transcribe("/home/sonu/interview.mp3")
YouTubeDownloaderTool.download_video("https://youtube.com/watch?v=xxxx", quality="1080p")
ImageAdvancedTool.remove_background("/home/sonu/photo.jpg", output_path="photo_nobg.png")
ScreenRecorderTool — 7 Tools · TextToSpeechTool — 7 Tools · VideoEditingTool — 10 Tools · PodcastTool — 8 Tools · StreamingTool — 6 Tools · MediaMetadataTool — 9 Tools from npmai_agents import ScreenRecorderTool, TextToSpeechTool, VideoEditingTool
from npmai_agents import PodcastTool, StreamingTool, MediaMetadataTool
ScreenRecorderTool: screenshot · screenshot_all_monitors · record_screen · record_with_cursor · capture_window · list_windows · create_screencast_gif
TextToSpeechTool: generate · list_voices · generate_ssml · clone_voice · generate_batch · add_background_music · translate_and_speak
VideoEditingTool: auto_cut_silences · jump_cut · auto_color_correct · auto_denoise · create_highlight_reel · add_chapter_markers · export_for_platform · create_vertical_from_horizontal · batch_process · apply_lut
PodcastTool: record_episode · edit_raw_recording · clean_audio · generate_transcript · generate_show_notes · create_chapters · export_to_formats · generate_rss_feed
StreamingTool: stream_to_youtube · stream_to_twitch · stream_to_multiple · capture_stream · get_stream_info · download_live_stream
MediaMetadataTool: read_metadata · write_metadata · bulk_rename_by_metadata · fix_dates · add_album_art · extract_album_art · generate_nfo · create_m3u_playlist · scan_folder
ScreenRecorderTool.record_screen(output_path="demo.mp4", duration=60)
TextToSpeechTool.generate("Welcome to NPMAI Ecosystem", output_path="intro.mp3")
VideoEditingTool.auto_cut_silences("/home/sonu/podcast_raw.mp4", output_path="podcast_edited.mp4")
PodcastTool.generate_show_notes("/home/sonu/episode12.mp3")
◈ Productivity & Project Management — 176 Tools
GoogleWorkspaceTool — 21 Tools from npmai_agents import GoogleWorkspaceTool
Method Purpose Key Parameters docs_createCreate Google Doc title, content=""docs_getGet Doc content doc_iddocs_appendAppend text to Doc doc_id, textdocs_replace_textFind and replace in Doc doc_id, old, newdocs_exportExport Doc doc_id, format="pdf", output_path=""sheets_createCreate Spreadsheet titlesheets_readRead sheet range sheet_id, range_sheets_writeWrite to sheet sheet_id, range_, data: listsheets_appendAppend rows sheet_id, range_, data: listsheets_clearClear range sheet_id, range_sheets_format_cellsFormat cells sheet_id, range_, format: dictsheets_add_chartAdd chart to sheet sheet_id, chart_type, data_rangedrive_uploadUpload to Drive local_path, folder_id=""drive_downloadDownload from Drive file_id, output_pathdrive_listList Drive files folder_id="", query=""drive_create_folderCreate folder name, parent_id=""drive_shareShare file file_id, email, role="reader"drive_moveMove file file_id, folder_idforms_createCreate Google Form title, questions: listforms_get_responsesGet form responses form_idforms_listList forms —
GoogleWorkspaceTool.sheets_create("Q3 Revenue")
GoogleWorkspaceTool.sheets_write(sheet_id="abc123", range_="A1:C1", data=[["Month", "Revenue", "Growth"]])
GoogleWorkspaceTool.drive_share(file_id="abc123", email="team@npmai.ai", role="writer")
NotionAdvancedTool — 19 Tools · LinearTool — 19 Tools · AsanaTool — 19 Tools · TrelloTool — 20 Tools from npmai_agents import NotionAdvancedTool, LinearTool, AsanaTool, TrelloTool
NotionAdvancedTool: search · get_database · query_database · create_database · add_database_item · update_database_item · delete_database_item · create_page · get_page · update_page · append_blocks · get_blocks · delete_block · create_table · create_kanban_view · export_database_to_csv · import_csv_to_database · create_template · duplicate_page
LinearTool: list_issues · get_issue · create_issue · update_issue · close_issue · delete_issue · list_teams · get_team · list_projects · create_project · update_project · list_members · list_labels · create_label · list_cycles · create_cycle · add_issue_to_cycle · get_comments · add_comment
AsanaTool: list_workspaces · list_projects · get_project · create_project · list_tasks · get_task · create_task · update_task · complete_task · delete_task · add_subtask · list_subtasks · add_comment · list_comments · list_sections · create_section · move_task_to_section · list_tags · add_tag_to_task
TrelloTool: list_boards · get_board · create_board · list_lists · create_list · archive_list · list_cards · get_card · create_card · update_card · move_card · archive_card · add_checklist · check_checklist_item · add_comment · add_attachment · list_members · add_member · create_label · add_label_to_card
NotionAdvancedTool.create_page(title="Sprint 12 Notes", content="...")
LinearTool.create_issue(team_id="team_1", title="Fix select_tools regex", description="Non-greedy match breaks on prefixed text")
AsanaTool.create_task(project_id="proj_1", name="Deploy MCP hosting", notes="search_tools + execute_tool")
TrelloTool.create_card(list_id="list_1", name="Write test suite for Tools_business.py")
ClickUpTool — 17 Tools · TodoistTool — 17 Tools · ObsidianTool — 15 Tools · BookmarkManagerTool — 12 Tools · TimeTrackingTool — 17 Tools from npmai_agents import ClickUpTool, TodoistTool, ObsidianTool, BookmarkManagerTool, TimeTrackingTool
ClickUpTool: list_spaces · list_folders · list_lists · get_tasks · get_task · create_task · update_task · delete_task · set_task_status · add_comment · list_comments · create_checklist · add_checklist_item · track_time · get_time_entries · list_views · get_view_tasks
TodoistTool: get_projects · add_project · update_project · delete_project · get_tasks · add_task · update_task · complete_task · delete_task · reopen_task · get_comments · add_comment · get_labels · add_label · quick_add · get_activity_log · get_productivity_stats
ObsidianTool: read_note · create_note · update_note · delete_note · search_notes · list_notes · get_backlinks · get_outlinks · add_tag · remove_tag · create_daily_note · append_to_daily_note · create_canvas · get_graph_data · sync_folder_to_vault
BookmarkManagerTool: import_bookmarks · export_bookmarks · add_bookmark · remove_bookmark · search_bookmarks · organize_by_domain · check_broken_links · archive_page · generate_reading_list · bulk_screenshot · tag_with_ai · deduplicate
TimeTrackingTool: start_timer · stop_timer · pause_timer · get_current_timer · list_time_entries · add_manual_entry · delete_entry · generate_timesheet · get_project_summary · calculate_billing · export_to_invoice · connect_toggl · toggl_list_projects · toggl_start_timer · connect_clockify · clockify_list_projects · clockify_time_entry
TodoistTool.quick_add("Review PR #42 tomorrow at 5pm p1")
ObsidianTool.create_daily_note()
BookmarkManagerTool.check_broken_links()
TimeTrackingTool.start_timer(project_id="npmai-agent", task="Fix cli.py globals")
◈ Security & AI — 122 Tools
CryptographyTool — 16 Tools from npmai_agents import CryptographyTool
Method Purpose Key Parameters generate_rsa_keypairGenerate RSA keys bits=4096, out_dir=""encrypt_with_public_keyRSA encrypt data, public_key_pathdecrypt_with_private_keyRSA decrypt encrypted_data, private_key_pathsign_dataSign with private key data, private_key_pathverify_signatureVerify signature data, signature, public_key_pathaes_encryptAES-256 encrypt file file_path, key, output=""aes_decryptAES-256 decrypt file file_path, key, output=""generate_random_passwordSecure password length=32, special=Truehash_passwordbcrypt hash passwordverify_passwordVerify bcrypt hash password, hashgenerate_totp_secretTOTP 2FA setup issuer, accountverify_totpVerify TOTP code secret, codecreate_ssl_certificateSign SSL cert csr_path, ca_key, ca_cert, output=""create_self_signed_certSelf-signed cert domain, days=365, output_dir=""pgp_encryptPGP encrypt data, recipient_keypgp_decryptPGP decrypt encrypted_data, private_key, passphrase
keys = CryptographyTool.generate_rsa_keypair(bits=4096, out_dir="/home/sonu/keys")
CryptographyTool.hash_password("super-secret-password")
CryptographyTool.generate_totp_secret(issuer="NPMAI", account="sonu@npmai.ai")
KnowledgeBaseTool — 14 Tools from npmai_agents import KnowledgeBaseTool
Method Purpose Key Parameters create_kbCreate knowledge base nameadd_documentsAdd document files kb_name, file_paths: listadd_url_to_kbAdd webpage kb_name, urladd_textAdd raw text kb_name, text, source=""query_kbQuery with RAG kb_name, questionsearch_kbKeyword search kb_name, query, top_k=5update_documentUpdate document kb_name, doc_id, new_contentdelete_documentDelete document kb_name, doc_idlist_documentsList KB documents kb_nameget_kb_statsKB statistics kb_nameexport_kbExport KB kb_name, output_pathimport_kbImport KB kb_pathcreate_qa_pairsGenerate Q&A pairs kb_name, source_docanswer_with_sourcesAnswer with citations kb_name, question
KnowledgeBaseTool.create_kb("npmai-docs")
KnowledgeBaseTool.add_documents("npmai-docs", file_paths=["README.md", "architecture.pdf"])
KnowledgeBaseTool.query_kb("npmai-docs", "How does the Tool Manager select classes?")
SecurityScannerTool — 14 Tools · PenetrationTestingTool — 11 Tools · AIImageGenerationTool — 8 Tools · AITextGenerationAdvancedTool — 12 Tools · MLModelTool — 11 Tools · SpeechAITool — 8 Tools · ComputerVisionTool — 14 Tools · AutomationWorkflowTool — 14 Tools from npmai_agents import SecurityScannerTool, PenetrationTestingTool
from npmai_agents import AIImageGenerationTool, AITextGenerationAdvancedTool
from npmai_agents import MLModelTool, SpeechAITool, ComputerVisionTool, AutomationWorkflowTool
SecurityScannerTool: check_virustotal · scan_file_virustotal · shodan_search · shodan_host · check_haveibeenpwned · check_password_breach · nmap_scan · port_scan_common · whois_lookup · check_ssl_grade · check_dns_leak · scan_url_safe_browsing · check_reputation · get_threat_intel
PenetrationTestingTool: subdomain_enumeration · directory_bruteforce · check_common_vulnerabilities · check_http_headers · check_cors · sql_injection_test · xss_test · check_ssl_vulnerabilities · check_outdated_software · generate_security_report · create_pentest_checklist
AIImageGenerationTool: generate_image_stability · generate_image_dalle · generate_image_local_sd · inpaint_image · img_to_img · upscale_image_ai · remove_background_ai · create_image_variations
AITextGenerationAdvancedTool: chain_prompts · few_shot_generate · generate_structured_json · debate_topic · brainstorm · critique_and_improve · generate_code · explain_code · generate_test_cases · refactor_code · translate_text · summarize_long_document
MLModelTool: train_classifier · train_regressor · predict · evaluate_model · feature_importance · cross_validate · hyperparameter_tune · save_model · load_and_predict · deploy_model_api · explain_prediction
SpeechAITool: transcribe_realtime · transcribe_file · speaker_diarization · voice_activity_detection · clone_and_speak · real_time_translation · command_recognition · keyword_detection
ComputerVisionTool: detect_objects · track_objects · recognize_faces · detect_emotions · read_text_ocr · read_table_from_image · scan_qr_barcode · generate_qr_with_style · classify_image · compare_faces · count_objects · segment_image · measure_object · extract_text_from_pdf_image
AutomationWorkflowTool: create_workflow · run_workflow · schedule_workflow · list_scheduled_workflows · cancel_scheduled_workflow · get_workflow_history · create_trigger_on_file_change · create_trigger_on_email · create_trigger_on_webhook · chain_workflows · create_conditional_branch · retry_on_failure · run_parallel · create_loop_workflow
SecurityScannerTool.check_haveibeenpwned("sonu@npmai.ai")
PenetrationTestingTool.check_http_headers("https://npmai.netlify.app")
AITextGenerationAdvancedTool.explain_code(open("agent_core.py").read())
ComputerVisionTool.read_text_ocr("/home/sonu/scanned_invoice.png")
AutomationWorkflowTool.create_trigger_on_file_change("/home/sonu/Downloads", workflow_name="auto-sort")
◈ System & Hardware — 165 Tools
SystemAdvancedTool — 22 Tools from npmai_agents import SystemAdvancedTool
Method Purpose Key Parameters get_full_system_infoFull system report — get_hardware_infoHardware details — manage_serviceStart/stop/restart service service_name, actionlist_servicesList system services status=""create_cron_jobAdd cron job name, schedule, commandlist_cron_jobsList cron jobs — remove_cron_jobRemove cron job namemanage_firewallFirewall rule action, port, protocol="tcp"create_startup_itemAdd startup program name, commandremove_startup_itemRemove startup item namemanage_hosts_fileEdit hosts file action, ip, hostnameflush_dnsFlush DNS cache — get_installed_programsList installed apps search=""uninstall_programUninstall program namecreate_restore_pointCreate restore point description=""list_restore_pointsList restore points — set_system_volumeSet volume level: intget_battery_infoBattery status — set_screen_brightnessSet brightness level: intlist_usb_devicesList USB devices — eject_driveEject drive drive_pathformat_driveFormat drive drive_path, filesystem="ext4"
SystemAdvancedTool.create_cron_job(name="daily-backup", schedule="0 2 * * *", command="npmai run 'backup my documents to S3'")
SystemAdvancedTool.manage_firewall(action="allow", port=8080, protocol="tcp")
ProcessAutomationTool — 20 Tools Desktop GUI automation — find windows, click, type, drag, macros.
from npmai_agents import ProcessAutomationTool
Method Purpose Key Parameters find_windowFind window by title titlefocus_windowFocus window titleminimize_windowMinimise window titlemaximize_windowMaximise window titleclick_atClick coordinates x, y, button="left"type_textType text text, interval=0.05press_keyPress key keydrag_and_dropDrag and drop start_x, start_y, end_x, end_yscrollMouse scroll x, y, clicks=3, direction="down"take_screenshot_regionScreenshot region x, y, width, height, output=""find_image_on_screenFind image on screen image_path, confidence=0.9click_imageClick image on screen image_path, confidence=0.9wait_for_imageWait for image image_path, timeout=30run_applicationLaunch application app_path, args=[]close_applicationClose application titleget_active_windowGet active window — get_all_windowsList all windows — send_hotkeySend hotkey combo *keysrecord_macroRecord macro output_pathplay_macroPlay recorded macro macro_path
ProcessAutomationTool.run_application("/usr/bin/gimp")
ProcessAutomationTool.wait_for_image("save_button.png", timeout=15)
ProcessAutomationTool.click_image("save_button.png")
NetworkAdvancedTool — 21 Tools · FileSystemAdvancedTool — 17 Tools · PrinterTool — 11 Tools · ClipboardAdvancedTool — 15 Tools · HardwareMonitorTool — 13 Tools · RaspberryPiTool — 17 Tools · MQTTIoTTool — 12 Tools · VirtualizationTool — 17 Tools from npmai_agents import NetworkAdvancedTool, FileSystemAdvancedTool, PrinterTool
from npmai_agents import ClipboardAdvancedTool, HardwareMonitorTool
from npmai_agents import RaspberryPiTool, MQTTIoTTool, VirtualizationTool
NetworkAdvancedTool: ping · traceroute · port_scan · check_port_open · dns_lookup · reverse_dns · whois_lookup · get_local_ip · get_public_ip · get_network_interfaces · check_ssl_certificate · get_ssl_expiry · http_test · bandwidth_test · capture_packets · get_arp_table · get_routing_table · set_dns_servers · check_domain_health · monitor_uptime · create_ssh_tunnel
FileSystemAdvancedTool: watch_folder · sync_folders · find_duplicates · remove_duplicates · encrypt_file · decrypt_file · secure_delete · split_file · join_files · compress_folder · scan_for_malware · find_large_files · change_permissions_recursive · change_owner_recursive · mount_remote_folder · verify_checksum · generate_checksum_file
PrinterTool: list_printers · get_default_printer · set_default_printer · print_file · print_pdf · print_image · get_print_queue · cancel_job · get_printer_status · install_printer · export_to_pdf
ClipboardAdvancedTool: get_text · set_text · get_image · set_image · get_files · set_files · get_html · set_html · monitor · get_history · clear_history · copy_formatted_table · copy_rich_text · paste_as_plain_text · transform_clipboard
HardwareMonitorTool: get_cpu_temperature · get_gpu_temperature · get_disk_temperature · get_fan_speeds · get_voltages · get_power_consumption · get_memory_slots · get_storage_devices_smart · benchmark_cpu · benchmark_memory · benchmark_disk · get_system_events_log · monitor_thresholds
RaspberryPiTool: setup_pin · read_pin · write_pin · setup_pwm · set_pwm_duty · read_i2c · write_i2c · read_spi · write_spi · read_temperature_sensor · control_servo · control_stepper · read_hcsr04_distance · display_on_lcd · read_button · capture_camera · stream_camera
MQTTIoTTool: connect · publish · subscribe · publish_json · listen_once · publish_sensor_data · send_command · get_device_state · control_home_assistant_entity · create_automation · monitor_topics · replay_messages
VirtualizationTool: list_vms · start_vm · stop_vm · restart_vm · suspend_vm · resume_vm · create_snapshot · restore_snapshot · delete_snapshot · list_snapshots · get_vm_info · set_vm_resources · clone_vm · export_vm · run_in_vm · copy_to_vm · create_vm
NetworkAdvancedTool.ping("8.8.8.8")
FileSystemAdvancedTool.find_duplicates("/home/sonu/Downloads")
PrinterTool.print_pdf("invoice_221.pdf")
ClipboardAdvancedTool.get_text()
HardwareMonitorTool.get_cpu_temperature()
RaspberryPiTool.read_temperature_sensor(pin=4)
MQTTIoTTool.publish(topic="home/livingroom/light", payload="ON")
VirtualizationTool.start_vm("dev-vm")
🔢 Verified Tool Count Category File Classes Tools Developer & CLI Tools_Developer_CLI.py10 155 Business & Payments Tools_business.py10 152 Cloud & DevOps Tools_cloud_devops.py10 149 Communication Tools_communication_extended.py10 95 Creative & Design Tools_creative.py10 97 Data & Research Tools_data_research.py10 137 Media & Audio/Video Tools_media.py10 123 Productivity & PM Tools_productivity.py10 176 Security & AI Tools_security_ai.py10 122 System & Hardware Tools_system_hardware.py10 165 TOTAL 10 files 100 1,371
Count verified programmatically from source code. Each public method = 1 tool. __init__ excluded from count.
🚀 End-to-End Workflow # 1. Install
pip install npmai_agents
# 2. Save your credentials (once — this is the only thing persisted to disk)
npmai save-credentials openai '{"api_key":"sk-xxxx"}'
npmai save-credentials github '{"token":"ghp_xxxx"}'
npmai save-credentials stripe '{"secret_key":"sk_live_xxxx"}'
npmai save-credentials slack '{"bot_token":"xoxb-xxxx"}'
npmai save-credentials sendgrid '{"api_key":"SG.xxxx"}'
# 3. Run any task in plain English — zero-config uses free NPMAI models,
# or pass provider/model flags inline for any role you want on a different backend
npmai run "Analyse the CSV files in my Downloads folder,
find the top 5 customers by revenue,
create an Excel report with charts,
and email it to sonu@npmai.ai with subject 'Weekly Revenue Report'" \
--planner-provider groq --planner-model llama-3.3-70b-versatile
▸ Starting task...
▸ Scanning workspace...
▸ Planning steps...
▸ Plan: 4 step(s)
1. Load and analyse CSV files from Downloads using DataAnalysisTool
2. Identify top 5 customers by revenue
3. Create Excel report with charts using ReportGeneratorTool
4. Send email with attachment using SendGridTool
▸ Tool Manager selecting tools...
✓ Selected: ['DataAnalysisTool', 'VisualizationTool', 'ReportGeneratorTool', 'SendGridTool']
▸ Step 1/4: Load and analyse CSV files
→ Generating code (attempt 1)...
→ Security audit...
✓ Audit passed
→ Executing...
✓ Step 1 complete
▸ Step 2/4: Identify top 5 customers
✓ Step 2 complete
▸ Step 3/4: Create Excel report with charts
✓ Step 3 complete
▸ Step 4/4: Send email with attachment
✓ Step 4 complete
✓ ─── All steps completed successfully ───
📋 Version History Version Status Notes 1.0.2✅ Docker release and Bug Fixed Production Stable 1.0.1✅ Bug Fixed Production Stable 1.0.0✅ Production Stable 1,371 tools · 100 classes · 5-role pipeline · Tool Manager · 12 LLM providers · CLI 0.0.1🗄️ Archived Initial alpha — 21 tool classes · 4-role pipeline
📜 License MIT — free to use, modify, and distribute.
Popularity
Downloads, last 7 days 35.3K
Stars, last 7 days –
Direct dependents 0
All dependents 0 60
Fair
Maintenance, out of 100
Recent release
last release 144 days ago
Commit activity
7/26 weeks with commits
Release cadence
4 releases in 12 months
Issues & PRs handled
no data
Contributor spread
3 authors in last 100 commits
OpenSSF Scorecard
not evaluated
Commits, last 26 weeks 164
Releases
Latest 1.0.2
Released Jul 7, 2026
Releases, 12 months 4
First release Jun 8, 2026 Compatibility
Requires Python >=3.9
Tested on 3.9 · 3.10 · 3.11 · 3.12
License MIT (Permissive) Works well withUse together with npmai-agents: extensions, drivers, servers and companion tools.
subagents-pydantic-ai Pythie’s Index: 84Subagent toolset for pydantic-ai with dual-mode execution and dynamic agent creation 328K downloads/mo