meet erpnext copilot
the ai copilot i've been building for erpnext. it actually does real work — queries, documents, reports, all permission-aware. here's where it's at.
i've been building something on and off for a few months. it's called erpnext copilot — an ai that lives inside erpnext and lets you talk to your erp in plain english. the code is on github — have a look, break it, send me patches.

i know — "chat with your database" has been a meme for two years now, and most of the demos you see are toys. but erpnext, more than almost any system i work with, actually needs this. hundreds of doctypes, dozens of reports, endless menus. most users only ever touch 5% of it because the other 95% is too hard to find. copilot is me trying to close that gap.
what it actually does
- query anything — "show me unpaid invoices over 90 days old, grouped by customer" — it writes the sql, runs it, respects your permissions.
- create documents — quotations, journal entries, stock entries, leave applications, purchase orders. you describe what you want, it builds it, you review before it saves.
- schedule reports — "email me the daily sales summary every morning at 8am" — done.
- 40+ tools across 9 domains — accounting, hr, stock, sales, purchase, crm, projects, assets, and the core crud layer underneath all of it.
- streams in real time via socket.io, so you can watch it think instead of staring at a spinner.



every tool call is permission-gated — nobody sees data they shouldn't. every action is logged for audit. that part was non-negotiable from day one, because the whole thing is useless if it can leak a payslip.
how it's built
frappe app. python backend. claude or chatgpt for the model — you can bring your own api key, or log in with your chatgpt account and it uses yours (no keys to manage, no bills on me). redis for caching, rate limiting, and background jobs. prompt injection detection baked in. full audit trail on every tool call.
where it's at
v1.1.0 is running on a real deployment with real users on real data. it's rough in places — streaming drops if you switch conversations mid-response, some renderers still show plain tables where i wanted charts, a few sessions get into weird states — but the core loop works. people are shipping their day with it, and the fix list is shorter than it was last week.
if you run erpnext and this sounds useful, star the repo at github.com/byt3crafter/erpnext-copilot or hit me up. i'm looking for more installs to pressure-test it on.
— d.