Mono Colombia

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 mcp runs 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 --version

To update: git pull && bun install.

Credentials

Each product authenticates differently, as with the MCP:

ProductEnvironment variables
CoreMONO_CORE_TOKEN: the sandbox token Mono generates for you
Bre-BMONO_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 status shows what is configured without revealing secrets.
  • mono auth logout deletes 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 -
  • --body takes a JSON file, or - to read stdin. Amounts are in cents.
  • --query repeats once per filter and accepts bracketed keys (account_id[], transaction_at[from]).
  • --json prints the full response body, for jq or CI.
  • Commands that move money, change prices or delete ask for confirmation, for example core payouts create, core fee-policies update or breb outgoing-transfers create. --yes skips it.
  • Exit codes: 0 OK response, 1 the API answered with an error, 2 usage 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/program

These commands query the published documentation and send no credentials.

Local MCP

claude mcp add mono -- mono mcp

mono 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-advisor

In Claude Code, ask for something like "build the integration plan for a wallet with cards and Bre-B withdrawals". The advisor:

  1. 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.
  2. Researches only through the CLI: operating models, integration guides, API reference and the command catalog.
  3. Writes plan-integracion-<client>.md with:
    1. a summary of the case;
    2. the recommended operating model;
    3. products and banks;
    4. the call sequence;
    5. webhooks;
    6. sandbox steps as mono … commands;
    7. what certification checks;
    8. 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.

Next steps

On this page