Mono CLI
Try the Core and Bre-B sandbox API from your terminal, query the docs, run the MCP locally and generate integration plans with the advisor.
Not available yet
The Mono CLI is not open to clients yet: its sandbox authentication is still being built. This page describes an internal pilot. It will be linked from the guides once the CLI is available.
mono is Mono's command line. It does from your terminal what the docs MCP does:
- Sandbox API calls to Core and Bre-B. Each command is the same tool the MCP uses.
- Documentation: search, integration guides and API reference.
- Local MCP:
mono mcpruns the MCP on your machine, without Docker. - Integration advisor: a Claude Code skill that writes an integration plan for a concrete case.
Sandbox only. The CLI cannot call production. Your credentials stay on your machine: they are only sent to Mono's sandbox to authenticate each call.
Install
You need Bun installed.
git clone git@github.com:mono-colombia/mono-api-docs.git
cd mono-api-docs
bun install
bun link # puts the `mono` command on your PATH
mono --versionTo update: git pull && bun install.
Credentials
Each product authenticates differently, as with the MCP:
| Product | Environment variables |
|---|---|
| Core | MONO_CORE_TOKEN: the sandbox token Mono generates for you |
| Bre-B | MONO_CLIENT_ID + MONO_CLIENT_SECRET, or a pre-minted token in MONO_CERT_TOKEN |
If you'd rather not use variables, mono auth login --product core or mono auth login --product breb asks for them in the terminal and saves them to ~/.config/mono/credentials.json with mode 600. Environment variables win over the file, so use variables in CI.
mono auth statusshows what is configured without revealing secrets.mono auth logoutdeletes the file.
Bre-B key discovery (Target Discovery) also needs the target_discoveries scope enabled for your tenant. The CLI requests it in a separate token, so every other command works without it.
API calls
Commands look like mono <core|breb> <resource> <command>. mono tools lists them all, and mono tools --json describes each one: method, path, arguments and whether it takes --body or --query.
# Core
mono core programs list
mono core ledger-accounts balances --account-id lacc_…
mono core ledger-transactions list --query 'account_id[]=lacc_…' --query page_size=10
# Bre-B: create a collection and simulate a payment
mono breb collections create --body collection.json
mono breb collections simulate-payment --body payment.json
mono breb collection-attempts list --query collection_id=bbcol_…
# Body from stdin
echo '{"tenant_account_id":"bbtacc_…","format":"plain_key","value":"3001234567"}' \
| mono breb targets resolve --body ---bodytakes a JSON file, or-to read stdin. Amounts are in cents.--queryrepeats once per filter and accepts bracketed keys (account_id[],transaction_at[from]).--jsonprints the full response body, forjqor CI.- Commands that move money, change prices or delete ask for confirmation, for example
core payouts create,core fee-policies updateorbreb outgoing-transfers create.--yesskips it. - Exit codes:
0OK response,1the API answered with an error,2usage error or missing credentials.
Documentation from the terminal
mono guide # lists the integration guides
mono guide operating-models
mono api-ref "create payout"
mono docs search "payin reconciliation"
mono docs get /docs/guides/core/concepts/programThese commands query the published documentation and send no credentials.
Local MCP
claude mcp add mono -- mono mcpmono mcp exposes the same tools as the hosted MCP. The API tools run on your machine with your credentials; the documentation tools query docs.mono.la. It is the recommended way to use the MCP with your credentials without sending them to a Mono server.
Integration advisor
mono skills install # installs the skill in ~/.claude/skills/mono-integration-advisorIn Claude Code, ask for something like "build the integration plan for a wallet with cards and Bre-B withdrawals". The advisor:
- Asks about the case: what you want to do, volume, whether you operate with your own account or a Mono account, which rails you use.
- Researches only through the CLI: operating models, integration guides, API reference and the command catalog.
- Writes
plan-integracion-<client>.mdwith:- a summary of the case;
- the recommended operating model;
- products and banks;
- the call sequence;
- webhooks;
- sandbox steps as
mono …commands; - what certification checks;
- open items.
Every endpoint and command it cites exists in mono tools --json. Whatever it cannot confirm goes under open items. Plans include no pricing: the sales team quotes it.