Money · Independent · 24 Oct 2026

mshojaei77/invoice-to-pay-agent

Open-source invoice-to-pay agent for AP automation: OCR/VLM extraction, 3-way matching, approvals, fraud checks, ERP mock posting, evals, and audit logs.

← Money

In simple English

This tool automates how companies process bills and invoices. It reads incoming PDF invoices, checks them against purchase orders, flags errors or fraud risks, and asks a human for approval. If approved, it prepares the payment details and simulates sending them to an accounting system. You can run it locally on your computer to test invoice workflows without writing code from scratch. It is free to use under an open licence, but you need some technical skill to set it up.

What it is

An open-source accounts-payable automation prototype built with Python, FastAPI (a framework for building web services in Python), LangGraph (a way to build step-by-step AI workflows), Pydantic (a tool to check that data matches expected rules), and document parsers.

What it is good for

Engineers, finance managers, and automation reviewers who want a working reference model to test invoice processing, document matching, and approval routing.

Stars7
LicenceMIT
Latestv0.1.0 (2026-06-29)checked 24 Oct 2026
Last code change2026-06-29
Written inPython
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Includes ready-to-use sample PDFs so you can test invoice matching immediately.
  • Provides both a command-line demo script and a local web interface built with Streamlit (a tool for building simple web apps in Python).
  • Maintains a complete audit log of every check, approval, and rejection step.
Watch for
  • Active runs and approvals are stored only in memory and disappear when the server restarts.
  • ERP (Enterprise Resource Planning, software that manages business operations) posting is simulated, so it does not connect to live accounting systems out of the box.
  • Requires familiarity with Python and command-line tools to install and run.
Replaces

manual invoice data entry and three-way paper matching

Works well with

FastAPI

Similar repositories
  • Significant-Gravitas/AutoGPT188k stars

    A general autonomous agent framework that can handle tasks, while invoice-to-pay-agent focuses specifically on accounts payable workflows.

Also reviewed on Repo Radar
  • btcpayserver/btcpayserver7.8k stars

    Payment software you run yourself that takes Bitcoin into a wallet whose keys you hold.

  • hledgerorg/hledger4.8k stars

    Double-entry accounting over plain text files, with command-line, terminal, web and editor interfaces.

  • akaunting/akaunting10k stars

    Self-hosted invoicing and expense tracking, with the double-entry accounting sold separately as an add-on.

Install
uv sync
uv run pytest

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Commerce & Finance › Accounting & Expense Management › Financial Operations.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.