Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

75 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Typing SVG

Platform Built with PySide6 Engine License: MIT Ask DeepWiki

Windows .exe Β· macOS .app Β· Linux binary β€” all built straight from this repo, every release.


πŸ“œ Table of Contents


🧠 What is this, really?

NPM-AutoCode-AI is a desktop app: you type a task in plain English β€” "scrape this page and email me a summary", "resize every image in this folder", "push this fix to GitHub" β€” and it plans, writes, safety-audits, and runs the Python for you. Live, in front of you, on your own machine.

Under the hood, it's powered by [npmai-agents](https://pypi.org/project/npmai-agents/) β€” the actual open-source reasoning engine (published on PyPI) that gives the app its 1,371 tools, its safety auditing, and its multi-role planning pipeline. NPM-AutoCode-AI is the face; npmai-agents is the brain.


πŸ’‘ The Idea: MCP Without the Toll Booth

Most MCP (Model Context Protocol) setups work like this: your LLM calls a remote server, that server calls a paid API for every tool action, and you get billed per call, per token, per automation. That's fine for a SaaS β€” but it's a toll booth on every single thing your AI does for you.

NPM-AutoCode-AI inverts the model:

  • The MCP link (mcp_link.py) is just a thin, authless job relay over Supabase Realtime β€” no tunnels, no open ports, no third party sitting in the middle of your automation billing you per step.
  • The execution itself happens locally, on your own desktop, using your own CPU/RAM β€” not a metered cloud sandbox.
  • The default reasoning models are free, local-first Ollama models (llama3.2, codellama:7b-instruct, qwen2.5-coder:7b, granite3.3:2b) β€” the entire Planner β†’ Tool Manager β†’ Coder β†’ Auditor β†’ Verifier β†’ Chatter pipeline runs out of the box with zero API key.
  • Only if you want a stronger brain (GPT, Claude, Gemini...) do you ever touch an API key β€” and even then, it's your key, stored locally, encrypted, never proxied through us.

So instead of "pay per automation," it's: connect any MCP-aware LLM to your own machine, and let it drive tools that already live on your computer, for the cost of electricity.


πŸ—οΈ Architecture

sequenceDiagram
    participant You as You (Agent tab / Chat)
    participant App as NPM-AutoCode-AI (Desktop)
    participant Brain as npmai-agents Engine
    participant Supa as Supabase Realtime
    participant LLM as Any MCP-aware LLM Client

    You->>App: "Resize every PNG in ~/photos to 800px"
    App->>Brain: AgentBrain.plan(task)
    Brain->>Brain: Planner -> Tool Manager -> Coder
    Brain->>Brain: Auditor checks the generated code
    Brain->>App: Safe code, ready to run
    App->>App: Executor runs it locally (your CPU, your disk)
    Brain->>Brain: Verifier confirms the step actually worked
    App-->>You: Live logs + progress + result

    rect rgba(42,255,160,0.08)
    Note over LLM,App: Optional - remote-control path via MCP Link
    LLM->>Supa: INSERT job row (mcp_jobs)
    Supa-->>App: Realtime push (no polling, no open ports)
    App->>App: Executor runs the job locally
    App->>Supa: INSERT result row (mcp_job_results)
    Supa-->>LLM: Result delivered back
    end
Loading

Why this matters: the bottom half of that diagram is the part most products don't give you. Any MCP-compatible LLM β€” running anywhere β€” can hand a job to your desktop app through Supabase's realtime channel, and the job executes with your local Python, your local files, your local tools. No always-on server bill for you to run, no per-call metering for the automation itself.


🧬 The 6-Role Agent Pipeline

AgentBrain (the core of npmai-agents) doesn't use one model for everything β€” it splits the job across six specialized roles, each independently swappable from Configure LLMs:

Stage Job Default (free, local)
🧭 Planner Breaks your task into atomic steps llama3.2:3b
🧰 Tool Manager Picks which of the 1,371 tools apply llama3.2
πŸ‘¨β€πŸ’» Coder Writes the actual Python for each step codellama:7b-instruct
πŸ›‘ Auditor Reviews the code for risk before it ever runs qwen2.5-coder:7b
βœ… Verifier Confirms a step genuinely completed llama3.2:3b
πŸ’¬ Chatter Handles plain conversation, non-task replies granite3.3:2b

Every one of these runs against free, local Ollama models by default. Want GPT-4o doing the planning and Claude doing the coding instead? One click each in Configure LLMs β€” nothing else changes.


🧰 1,371 Tools, 10 Domains

npmai-agents ships 1,371 tools across 121 classes, organized into 10 domain files so the Tool Manager can route intelligently instead of guessing:

Domain Domain Domain
πŸ–₯ Developer & CLI πŸ’Ό Business ☁️ Cloud & DevOps
πŸ“‘ Communication (extended) 🎨 Creative πŸ“Š Data & Research
🎬 Media πŸ—‚ Productivity πŸ” Security & AI

That's why the credentials system exists at all: most of these tools work with zero setup (local file ops, system tasks, data processing) β€” only the ones that talk to a third-party service (GitHub, Twilio, Stripe, AWS...) ever need a key, and even those keys stay on your machine.


✨ Features

  • πŸ—£ Natural language β†’ working Python β€” describe the task, watch it get built.
  • πŸ›‘ Safety-audited before execution β€” the Auditor role flags risky code (file deletion, remote access) before anything runs.
  • πŸ” Auto-debug loop β€” errors get fed back to the Coder role and retried, not just dumped on you.
  • πŸ“ˆ Live logs + progress bar β€” full visibility while the agent works, nothing happens silently.
  • πŸ”‘ Bring-your-own-key, never forced β€” every LLM provider and every tool credential is opt-in and locally encrypted (CredStore).
  • 🌐 Remote-trigger via MCP Link β€” connect any MCP-aware LLM client to your desktop through Supabase Realtime.
  • πŸ–₯ True cross-platform β€” native builds for Windows, macOS, and Linux from the same codebase.

πŸ“¦ Download & Install

πŸ‘‰ [npmcodeai.netlify.app](https://npmcodeai.netlify.app) β€” pick your OS, download, run.

πŸͺŸ Windows 🍎 macOS 🐧 Linux
.exe, no install needed .app bundle portable binary

Every build on that page is produced straight from this repo's GitHub Actions pipeline β€” same source, three native binaries, no cross-compiling shortcuts.

Building from source instead?

git clone https://github.com/npmaiecosystem/NPM-AutoCode-AI.git
cd NPM-AutoCode-AI/Desktop_App
pip install -r requirements.txt
python app.py

βš™οΈ Configure LLMs (Optional Upgrade Path)

Everything works day-one with the free local defaults above. If you want to swap in a hosted model for any of the 6 roles β€” OpenAI, Anthropic, Gemini, Groq, Mistral, Cohere, Azure OpenAI, AWS Bedrock, HuggingFace, or a local llama.cpp server β€” click βš™ Configure LLMs on the Agent tab:

  1. β‘  Provider Credentials β€” add only the fields that provider actually needs (most: just an API key).
  2. β‘‘ Assign Provider + Model per Stage β€” pick which provider handles Planner / Tool Manager / Coder / Auditor / Verifier / Chatter, individually.

Nothing here is required. It's a ceiling to raise if you want it, not a floor you have to clear to get started.


πŸ” Credential Vault

Any tool that needs a third-party credential (GitHub, Twilio, Stripe, AWS, Notion, and 25+ more) stores it through a locally encrypted CredStore β€” never synced to us, never proxied through a middleman. Settings even has a generic "+ Add Credential Group" button so you can wire up a tool that isn't hardcoded yet: name the group, add whatever key/value pairs that tool's docs ask for, done.


πŸ›  Tech Stack

Python PySide6 LangChain Supabase PyInstaller GitHub Actions

  • GUI: PySide6 (custom animated widgets β€” glow cards, pulse buttons, cosmic background)
  • Engine: npmai-agents (PyPI) β€” AgentBrain, Executor, CredStore, Workspace
  • Default inference: npmai (Ollama-backed), fully local/free
  • Remote link: mcp_link.py + Supabase Realtime (Postgres changes -> live push, no polling)
  • Packaging: PyInstaller, one native build per OS via a matrix GitHub Actions workflow, auto-published to GitHub Releases and mirrored on [npmcodeai.netlify.app](https://npmcodeai.netlify.app)

πŸ—Ί Roadmap

  • Expand the MCP Link job protocol beyond single-shot code execution (multi-step remote sessions)
  • More hardcoded credential templates in Settings (currently GitHub/SMTP/Notion/Stripe/AWS + generic groups)
  • In-app model download manager for the local Ollama defaults
  • Signed installers for Windows/macOS (currently unsigned binaries)

🀝 Contributing

Issues and PRs welcome β€” especially new tools for npmai-agents, new hardcoded credential templates, or platform-specific packaging fixes. Fork it, build it, send a PR.

πŸ“„ License

MIT β€” see [LICENSE](LICENSE).

Built by the NPMAI ECOSYSTEM β€” automation that runs on your machine, not someone else's meter.

About

NPM AutoCode AI is a Python desktop app that generates, validates, and executes Python code using AI. Simply describe a task in plain English, and it uses NPMAI to create and safely run the required script. Built for non-technical users, it turns ideas into working code with no manual coding required.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages