Overview
Have Codex or Claude Code write a small script that matches a folder of company receipts to an exported bank statement and lists anything unmatched for your bookkeeper to check.
Problem or Objective
- Which agents can match payouts to the charges, refunds and fees behind them and flag what does not add up?
- Which agents file, tag and organise receipts, bills and expenses?
More in Finance and Admin
AI Agents and Models
Tools and Integrations
- Prerequisites
- Codex CLI (signed in with a ChatGPT account, or with an API key after additional setup) or Claude Code (most surfaces require a Claude subscription or Anthropic Console account), a CSV export of the business bank statement, and receipts as files or an expense-tool export.
How It Works
Export the month's business bank statement as CSV and put it in a new folder with the month's receipts (PDFs or a CSV export from your expense tool). Open Codex CLI or Claude Code in that folder and ask it to write a script that reads both, matches receipts to bank lines by amount and date within a few days, and writes three files: matched pairs, bank lines with no receipt, and receipts with no bank line. Ask it to show you the script and wait for your approval before it writes or runs anything; once you approve, have it run the script on a copy, then read the unmatched lists yourself. Send the lists to your bookkeeper or accountant, who decides what to correct; any change in your accounting system is made by a person, not by the agent.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Codex CLI, Claude Code.
- Check the prerequisitesCodex CLI (signed in with a ChatGPT account, or with an API key after additional setup) or Claude Code (most surfaces require a Claude subscription or Anthropic Console account), a CSV export of the business bank statement, and receipts as files or an expense-tool export.
- Gather your detailsCollect what the prompt asks for: Bank statement export, Receipts folder or export, Allowed date difference.
- Run the starter promptPaste the starter prompt below into Codex CLI and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at github.com before you rely on it.
Practical Starter Prompt: Match receipts to the bank statement
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Before writing or running anything, show me the script you plan and wait for my approval. Once I approve, in this folder, write a script that reads the bank statement [Bank statement export] and the receipts in [Receipts folder or export]. Match each receipt to a bank line with the same amount and a date within [Allowed date difference] days. Write matched.csv, bank_without_receipt.csv and receipt_without_bank.csv. Run it on copies only and do not change, delete or move the original files. Then summarise the unmatched items for me; do not suggest bookkeeping entries.Approve the script before the agent writes or runs it, and check that it works only on copies. Read the unmatched lists yourself and hand them to your bookkeeper; nothing is entered into the books by the agent.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The Codex CLI README describes a coding agent that runs locally on your computer, and the Claude Code overview says Claude Code reads your codebase, edits files and runs commands, which covers writing and running a matching script over local files. No cited page covers receipts, bank statements or accounting software, so match quality depends on your data and on the review.
Limitations and Considerations
Work on copies of statements and receipts, and keep the agent away from bank logins: it only needs exported files. Check whether your agent can read the receipt formats you have; scanned images may need a text export first. This is not financial, tax or accounting advice: check every match and gap yourself before acting on it, and a person decides what goes into the books or any filing, usually your bookkeeper or accountant. Codex is included across ChatGPT plans, including Free and Go, with usage limits that vary by plan; most Claude Code surfaces require a Claude subscription or Anthropic Console account. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About openai/codex
Meet the New Codex CLI (opens in a new tab)
Published by the project’s official channel.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- openai/codex README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- Codex CLI is a coding agent from OpenAI that runs locally on your computer.
- The README recommends signing in with ChatGPT to use Codex as part of a Plus, Pro, Business, Edu, or Enterprise plan; Codex can also be used with an API key, which requires additional setup.
- Overview - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC
What this source supports
- Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.
- Most surfaces require a Claude subscription or Anthropic Console account.
- Using Codex with your ChatGPT plan | OpenAI Help Center (opens in a new tab)
Project documentation · help.openai.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Codex is included across ChatGPT plans, including Free and Go. Usage limits vary by plan.


