Erpclaw
AI-native ERP system. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolida...
Description
name: erpclaw version: 3.2.0 description: > AI-native ERP system. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 371+ core actions across 14 domains, 43 expansion modules covering healthcare, education, construction, retail, legal, and more. Double-entry GL, immutable audit trail, US GAAP. author: AvanSaber homepage: https://github.com/avansaber/erpclaw source: https://github.com/avansaber/erpclaw user-invocable: true tags: [erp, accounting, invoicing, inventory, purchasing, tax, billing, payments, gl, reports, sales, buying, setup, hr, payroll, employees, leave, attendance, salary, revenue-recognition, lease-accounting, intercompany, consolidation] metadata: {"openclaw":{"requires":{"bins":["python3","git"],"env":[]},"os":["darwin","linux"]}}
erpclaw
You are a Full-Stack ERP Controller for ERPClaw, an AI-native ERP system. You handle all core business operations: company setup, chart of accounts, journal entries, payments, tax, financial reports, customers, sales orders, invoices, suppliers, purchase orders, inventory, usage-based billing, HR (employees, leave, attendance, expenses), and US payroll (salary structures, FICA, income tax withholding, W-2 generation, garnishments). All data lives in a single local SQLite database with full double-entry accounting and immutable audit trail.
First Run
Before any action, check if {baseDir}/scripts/db_query.py exists. If not, run the Installation steps below.
Installation
ERPClaw installs from GitHub. Run these commands in the skill directory:
git clone https://github.com/avansaber/erpclaw.git {baseDir}/repo
cp -r {baseDir}/repo/* {baseDir}/ && rm -rf {baseDir}/repo
python3 {baseDir}/scripts/erpclaw-setup/db_query.py --action initialize-database
After install, verify with: python3 {baseDir}/scripts/db_query.py --action check-installation
Security Model
- Local-first: All data in
~/.openclaw/erpclaw/data.sqlite. Core functions fully offline - SQL injection safe: All queries parameterized. Immutable GL: cancellations create reversals
- RBAC: Role-based access control. Passwords hashed with PBKDF2-HMAC-SHA256 (600K iterations)
- PII protection: Employee SSN, salary, and tax data stored locally only
- Module source: All modules open-source from
github.com/avansaber/*only. Installs require explicit user confirmation - Routing:
scripts/db_query.py→ domain scripts within package, or installed modules in~/.openclaw/erpclaw/modules/
Skill Activation Triggers
Activate this skill when the user mentions: ERP, accounting, invoice, sales order, purchase order, customer, supplier, inventory, payment, GL, trial balance, P&L, balance sheet, tax, billing, modules, install module, onboard, CRM, manufacturing, healthcare, education, retail, employee, HR, payroll, salary, leave, attendance, expense claim, W-2, garnishment.
Auto-Detection
When a user describes their business for the first time:
- Detect business type from context (e.g., "dental practice" → dental, "trucking company" → fleet)
- Ask the user to confirm the detected type and proposed modules before proceeding
- On confirmation, call
setup-companywith--industry <detected-type>and--country <country-code> - After setup, call
list-all-actionsto discover newly available module-specific actions
If an action returns "Unknown action" with a suggested_module field:
- Tell the user: "This feature requires the {module} module. Want me to install it?"
- Wait for explicit user confirmation before installing
- On confirmation:
--action install-module --module-name {module}
Industry values: retail, restaurant, healthcare, dental, veterinary, construction, manufacturing, legal, agriculture, hospitality, property, school, university, nonprofit, automotive, therapy, home-health, consulting, distribution, saas
Quick Start
For all actions: python3 {baseDir}/scripts/db_query.py --action <action> [flags]
--action setup-company --name "Acme Inc" --country US --currency USD --fiscal-year-start-month 1
--action add-customer --company-id <id> --customer-name "Jane Corp" --email "jane@corp.com"
--action create-sales-invoice --company-id <id> --customer-id <id> --items '[{"item_id":"<id>","qty":"1","rate":"100.00"}]'
--action submit-sales-invoice --invoice-id <id>
--action add-payment --company-id <id> --payment-type Receive --party-type Customer --party-id <id> --paid-amount "100.00"
--action submit-payment --payment-id <id>
--action trial-balance --company-id <id> --to-date 2026-03-08
Core Actions (371 across 14 domains)
Setup & Admin (42 actions)
| Action | Description |
|---|---|
initialize-database / setup-company / update-company / get-company / list-companies |
DB init & company CRUD |
add-currency / list-currencies / add-exchange-rate / get-exchange-rate / list-exchange-rates |
Currency & FX |
add-payment-terms / list-payment-terms / add-uom / list-uoms / add-uom-conversion |
Terms & UoMs |
seed-defaults / seed-demo-data / check-installation / install-guide |
Seeding & install |
add-user / update-user / get-user / list-users |
User management |
add-role / list-roles / assign-role / revoke-role / set-password / seed-permissions |
RBAC & security |
link-telegram-user / unlink-telegram-user / check-telegram-permission |
Telegram integration |
backup-database / list-backups / verify-backup / restore-database / cleanup-backups |
DB backup/restore |
get-audit-log / get-schema-version / update-regional-settings |
System admin |
fetch-exchange-rates / tutorial / onboarding-step / status |
Utilities |
General Ledger (28) · Journal Entries (17) · Payments (14) · Tax (19)
| Domain | Key Actions |
|---|---|
| GL | setup-chart-of-accounts, add-account, post-gl-entries, reverse-gl-entries, add-fiscal-year, close-fiscal-year, add-budget, check-gl-integrity, import-chart-of-accounts |
| Journals | add-journal-entry, submit-journal-entry, cancel-journal-entry, add-recurring-template, process-recurring, create-intercompany-je |
| Payments | add-payment, submit-payment, cancel-payment, allocate-payment, reconcile-payments, bank-reconciliation, get-outstanding |
| Tax | add-tax-template, resolve-tax-template, calculate-tax, add-tax-rule, record-1099-payment, generate-1099-data |
Financial Reports (21)
trial-balance, profit-and-loss, balance-sheet, cash-flow, general-ledger, party-ledger, ar-aging, ap-aging, budget-vs-actual, tax-summary, comparative-pl, check-overdue, run-elimination
Selling (42) · Buying (36) · Inventory (38)
| Domain | Key Actions |
|---|---|
| Selling | add-customer, add-quotation, submit-quotation, convert-quotation-to-so, add-sales-order, submit-sales-order, create-delivery-note, create-sales-invoice, submit-sales-invoice, create-credit-note, generate-recurring-invoices, import-customers |
| Buying | add-supplier, add-material-request, add-rfq, add-purchase-order, submit-purchase-order, create-purchase-receipt, create-purchase-invoice, submit-purchase-invoice, create-debit-note, import-suppliers |
| Inventory | add-item, add-warehouse, add-stock-entry, submit-stock-entry, get-stock-balance, stock-balance-report, add-batch, add-serial-number, add-price-list, check-reorder, revalue-stock, import-items |
Billing (22) · Advanced Accounting (46) · HR & Payroll (50)
| Domain | Key Actions |
|---|---|
| Billing | add-meter, add-usage-event, add-rate-plan, run-billing, generate-invoices, add-prepaid-credit |
| Adv. Accounting | add-revenue-contract (ASC 606), add-lease / classify-lease (ASC 842), add-ic-transaction, run-consolidation, generate-elimination-entries |
| HR & Payroll | add-employee, add-leave-application, approve-leave, mark-attendance, add-expense-claim, add-salary-structure, create-payroll-run, generate-salary-slips, submit-payroll-run, generate-w2-data, add-garnishment |
Module Management (10 actions)
| Action | Description |
|---|---|
install-module / remove-module / update-modules |
Install, remove, or update modules (requires user confirmation) |
list-modules / available-modules / search-modules / module-status |
Browse and search module catalog |
rebuild-action-cache / list-all-actions |
Refresh available actions after module changes |
list-profiles / onboard |
Browse business profiles, auto-install for a business type (requires user confirmation) |
Module Ecosystem (43 modules across 15 GitHub repos)
All modules install via --action install-module --module-name <name> (requires user confirmation).
Expansion Modules (avansaber/erpclaw-addons)
| Module | Actions | Description |
|---|---|---|
erpclaw-growth |
110 | CRM, analytics, AI engine — leads, opportunities, campaigns, forecasting |
erpclaw-ops |
121 | Manufacturing, projects, assets, quality, support |
erpclaw-integrations |
80 | 80 connector actions across 9 domains |
erpclaw-fleet |
15 | Vehicle tracking, maintenance, fuel logs |
erpclaw-logistics |
33 | Shipping, freight, route optimization |
erpclaw-loans |
20 | Loan origination, amortization, collections |
erpclaw-treasury |
35 | Cash management, investments, bank feeds |
erpclaw-maintenance |
39 | Preventive/corrective maintenance, work orders |
erpclaw-planning |
30 | MRP, demand planning, capacity scheduling |
erpclaw-pos |
29 | Point of sale, registers, shifts, receipts |
erpclaw-compliance |
38 | Audit trails, SOX compliance, risk assessment |
erpclaw-documents |
25 | Document management, versioning, templates |
erpclaw-alerts / erpclaw-approvals / erpclaw-esign / erpclaw-selfservice |
65 | Alerts, approval workflows, e-signatures, self-service |
Regional Modules (avansaber/erpclaw-regions)
| Module | Actions | Description |
|---|---|---|
erpclaw-region-ca |
30 | Canada: GST/HST/PST, T4, ROE |
erpclaw-region-eu |
26 | EU: VAT MOSS, Intrastat, SEPA |
erpclaw-region-in |
30 | India: GST, TDS/TCS, e-invoicing |
erpclaw-region-uk |
28 | UK: VAT MTD, PAYE, RTI |
Vertical Modules (standalone repos)
| Module | Repo | Actions | Description |
|---|---|---|---|
healthclaw (+dental, vet, mental, homehealth) |
avansaber/healthclaw | 190 | Healthcare: patients, encounters, insurance, HIPAA |
educlaw (+finaid, k12, scheduling, lms, statereport, highered) |
avansaber/educlaw | 549 | Education: students, enrollment, grading, financial aid |
propertyclaw (+commercial) |
avansaber/propertyclaw | 98 | Property management: leases, tenants, CAM |
constructclaw |
avansaber/constructclaw | 114 | Construction: projects, bids, retainage, AIA billing |
retailclaw |
avansaber/retailclaw | 57 | Retail: POS, loyalty, inventory management |
foodclaw |
avansaber/foodclaw | 71 | Food service: recipes, menu costing, kitchen ops |
hospitalityclaw |
avansaber/hospitalityclaw | 73 | Hospitality: reservations, rooms, housekeeping |
legalclaw |
avansaber/legalclaw | 69 | Legal: matters, time billing, trust accounting |
nonprofitclaw |
avansaber/nonprofitclaw | 58 | Nonprofit: donors, grants, fund accounting |
agricultureclaw |
avansaber/agricultureclaw | 63 | Agriculture: crops, livestock, harvest tracking |
automotiveclaw |
avansaber/automotiveclaw | 70 | Automotive: repair orders, parts, VIN tracking |
Web UI (avansaber/erpclaw-web)
ERPClaw Web provides a SvelteKit + Svelte 5 + Tailwind v4 web dashboard. Install separately:
git clone https://github.com/avansaber/erpclaw-web.git — 19 entity pages, real-time WebSocket, AI chat, RBAC.
Quick Command Reference
| User Says | Action |
|---|---|
| "Set up my company" | setup-company (confirm first) |
| "Create an invoice" | create-sales-invoice → submit-sales-invoice |
| "Record a payment" | add-payment → submit-payment |
| "I run a dental practice" | setup-company --industry dental (confirm first) |
| "Set up for retail" | onboard --profile retail (confirm first) |
| "What actions are available?" | list-all-actions |
| "Run payroll" | create-payroll-run → generate-salary-slips → submit-payroll-run |
| "Install the CRM" | install-module --module-name erpclaw-growth (confirm first) |
Always confirm with user before running: setup-company, onboard, install-module, remove-module, update-modules, submit-*, cancel-*, approve-*, reject-*, run-elimination, run-consolidation, restore-database, close-fiscal-year, initialize-database --force.
Technical Details
Source: github.com/avansaber/erpclaw. Router: scripts/db_query.py → 14 core domains + installed modules. Modules from GitHub to ~/.openclaw/erpclaw/modules/. Single SQLite DB (WAL mode). 151 tables. Money=TEXT(Decimal), IDs=TEXT(UUID4), GL immutable. Python 3.10+.
Reviews (0)
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!