For Claude Code and Codex

Reconcile your books without leaving your terminal

MatchLedger runs a native MCP server, so your coding agent can upload statements, reconcile them against your ledger, and hand back the report, without you opening a browser tab to do the work.

1Connect MatchLedger.

One command, nothing to install:

Claude Code
claude mcp add --transport http matchledger https://app.matchledger.ai/mcp
Codex
codex mcp add matchledger npx mcp-remote https://app.matchledger.ai/mcp

2Ask for what you want.

In your own words:

"Upload bofa-july.pdf and my-ledger.csv to MatchLedger, reconcile them,
 and email me the results."

3Sign in when your browser opens.

The first time your agent reaches MatchLedger, your browser pops open a sign-in page. New to MatchLedger? Create your account right there: continue with Google or email, accept the terms, and you're in. Every account runs at Professional capacity while the beta is on, whichever plan you pick later. There's no credit card and no trial clock. Choose which organization to connect and click Allow. You'll never see this page again. Your terminal stays signed in.

4Let it run.

Extraction and matching happen in the background. Your agent reports progress as it goes, and the full reconciliation report lands in your inbox: match rate, confirmed matches, and anything that needs your review.

That's the whole setup. Two commands you type, one page you click through, and your agent does the bookkeeping.

Every plan is free during the open beta. No credit card required.

Create your account

Or skip it: run the command above and your agent will open the sign-up page for you.

The same command works in every shell

Both commands paste unchanged into bash, zsh, PowerShell and the Windows Command Prompt, on macOS, Linux and Windows alike. There is no PowerShell version, no Windows version and no quoted variant to look for. Neither line has a space inside a value, a variable, a file path or any character a shell treats specially, so every shell hands the CLI the same words.

What matters is where you run it: in the same environment you run Claude Code or Codex in. If you use either one inside WSL, run the command inside WSL too.

What each CLI needs

Install the CLI with its maker's own guide, which keeps up with their releases.

CLIWhat you needHow it reaches MatchLedger
Claude CodeClaude Code. Nothing else. Anthropic's setup guideDirectly. Claude Code speaks HTTP to MatchLedger itself (--transport http).
CodexCodex, plus Node.js 18 or newer. OpenAI's Codex CLI guide, Node.js downloadsThrough a bridge. Codex starts mcp-remote with npx, and the bridge talks to MatchLedger.

Why only the Codex command mentions npx. Claude Code connects to MatchLedger's server on its own, so its line names the server and nothing else. The Codex line hands the connection to mcp-remote, a third-party open-source bridge that is not part of MatchLedger or Codex. npx fetches it the first time and starts it every time Codex starts, which is why Node.js is needed on the Codex path only. It is also the most likely reason a first Codex attempt fails: with no Node.js on the machine, Codex has nothing to start and the MatchLedger tools never appear. Install Node.js and the same command works, with nothing to add again.

Windows, WSL and where the setup is saved

SituationWhat to know
WindowsUse PowerShell, Command Prompt or Windows Terminal, whichever you run the CLI in. The command does not change.
WSLInstall the CLI inside your Linux distribution and run the command there. WSL keeps its own home folder, so a connection added from Windows does not show up in WSL, or the other way round. For Codex, install Node.js inside Linux as well, with your distribution's package manager or nvm: WSL can otherwise pick up the Windows copy through its path, and that copy breaks there.
Signing in from WSLThe sign-in page has to open in your Windows browser, and that hand-off from WSL is the step most likely to misfire. If no browser opens, or the browser ends on a connection error, see If something goes wrong.
Where the setup is savedClaude Code writes ~/.claude.json in your home folder, for the folder you ran the command in. Codex writes ~/.codex/config.toml, for every folder, and its bridge keeps your sign-in in ~/.mcp-auth. On Windows, ~ is your user folder.

The add command wrote these for you. There is nothing to open or edit by hand, and the next section shows how to see the server in the CLI's own list.

Check that it worked

First, ask the CLI what it has set up:

Claude Code
claude mcp list

The matchledger entry should show as connected. If it shows as needing authentication, you have not signed in yet: start Claude Code, run /mcp, pick matchledger, and choose to authenticate.

Codex
codex mcp list

matchledger should be listed and enabled, with npx as its command. Inside Codex, /mcp shows the servers that are running.

Then prove the whole path, sign-in included, with a question only MatchLedger can answer:

In Claude Code or Codex

Ask MatchLedger how much of my monthly plan I've used.

Your agent should show that it used MatchLedger, then return the organization you connected, your plan, and the used, remaining and limit values for line items and reconciliation jobs, with the date they reset. Compare those figures with the Plan & Usage card in the MatchLedger web app. If they agree, the connection works and points at the books you expect. The question needs no data, so it works on a brand-new account before your first upload.

If something goes wrong

What you seeWhat to do
Codex: the MatchLedger tools never appear, or Codex says the matchledger server failed to start.Node.js is missing or older than 18, so Codex cannot start the bridge. Install Node.js 18 or newer, open a new terminal, and start Codex again. The command you already ran stays in place.
Codex: the matchledger server timed out while you were still signing in.Codex gives a server 30 seconds to start by default, and a first sign-in, especially one that creates your account, can take longer. Sign in to the bridge on its own once, then start Codex again.
Claude Code: claude mcp list says matchledger needs authentication.You have not signed in yet. Start Claude Code, run /mcp, pick matchledger, and choose to authenticate. Your browser opens the sign-in page.
No browser opens for the sign-in (common in WSL).Claude Code: copy the sign-in link it shows and open it in your browser yourself. Codex: the bridge writes the link to Codex's log, not your screen, so sign in to the bridge on its own.
Claude Code: the browser signs you in, then shows a connection error on a localhost address.The browser could not hand the result back to the terminal, which can happen in WSL. Copy the full address from the browser's address bar and paste it into the prompt Claude Code shows.
Claude Code: MatchLedger is missing when you start it in a different folder.Claude Code saves the connection for the folder you ran the command in. Run the same command in the new folder, or use the every-folder option in the Gmail and MatchLedger setup guide.
You added MatchLedger in Windows, but the CLI inside WSL does not list it (or the other way round).Each side keeps its own settings. Run the command again where you run the CLI.
The usage figures do not match Plan & Usage, or a document you uploaded is not found.The connection is attached to a different organization. Claude Code: run /mcp, clear MatchLedger's authentication, then authenticate again and pick the right organization. Codex: delete the .mcp-auth folder in your home folder, which is the bridge's saved sign-in for every server it connects to, then start Codex again and pick the right organization.

Codex: sign in to the bridge on its own

Codex runs the bridge in the background and sends its messages to Codex's log, so if no browser opens, or the sign-in outlasts Codex's wait, the sign-in link never reaches you. Run the bridge by itself once, in the same terminal environment you use Codex in:

Codex: one-time sign-in
npx mcp-remote https://app.matchledger.ai/mcp

It prints a line beginning “Please authorize this client by visiting”, followed by the sign-in link, and tries to open your browser. If it can't, open the link yourself; in WSL, paste it into your Windows browser. Sign in, choose your organization, and click Allow. When the browser says authorization was successful, press Ctrl+C in the terminal. The bridge saved your sign-in in ~/.mcp-auth, and the copy Codex starts uses it.

Other ways to connect

Want the longer version, with your inbox in the loop? The inbox-to-Monarch walkthrough runs the whole thing end to end from the terminal, and its setup guide covers connecting Gmail alongside the command above.

Not a terminal user? Connect a desktop app instead. Claude Code, on this page, and Claude, Anthropic's chat app, are separate products with separate setups. For the app, follow the click-by-click Claude Desktop connector guide. For ChatGPT, follow the ChatGPT connector guide. Both check the connection with the same usage question as above, so all three pages agree on what a working connection looks like.

Check pricing for what each plan includes. Claude and Claude Code are products of Anthropic, and ChatGPT and Codex are products of OpenAI. MatchLedger is not affiliated with or endorsed by either.