Skip to main content
Your AI agent can read your bills, payments and contacts in Cleo, and with your permission approve or flag bills. You add one URL to the agent and sign in to Cleo. No API key is needed. The first time the agent calls Cleo, it opens a Cleo sign-in page. There you pick:
  • Business: one of the businesses you are an active member of.
  • Access: Read only or Read and approve.
Click Allow, then go back to your agent.

Access levels

Any active member can connect with Read only. Read and approve is offered to admins and to members whose role can approve bills. The agent never gets more than your role allows: it approves only what you could approve yourself in Cleo. An admin can approve any step, as in the Cleo web app.
Neither level can pay a bill or move money. A connection never gets payments:initiate, balance:transfer, payables:write, contacts:write or bank-accounts:write, so the agent cannot pay, transfer, or create and change bills, contacts or bank accounts. To build an integration that pays, use an API key.

Connect by client

  1. In ChatGPT, open Settings > Apps and turn on developer mode.
  2. Create a connector with the URL https://mcp.cleo-pay.com.
  3. Sign in to Cleo when ChatGPT asks, pick the business and the access level, and click Allow.
On a ChatGPT Business or Enterprise workspace, an admin must allow custom connectors first.
For the sandbox, use https://mcp.stg.cleo-pay.com in place of https://mcp.cleo-pay.com.

Every desktop agent at once

The script finds Claude Code, Codex, Cursor and Claude Desktop on your computer and adds Cleo to each one. It stores no key. Each agent asks you to sign in to Cleo the first time it calls Cleo. Restart Claude Desktop after the script runs. Claude Desktop connects through npx mcp-remote, so it needs Node.js. You can also copy these commands from the Cleo web app, under Settings > Connect your agent.

Review bills with your agent

With Read and approve, you can ask the agent to check your unpaid bills against something you trust, such as a P&L or a list of expected costs. For example:
Check every unpaid bill in Cleo against this P&L. Approve the bills whose vendor, amount and event date match. Flag the rest and say what differs. Do not pay anything.
The agent uses these tools: Cleo also tells every connected agent to approve only when the vendor, amount and event date match, and to flag otherwise. A connection cannot pay in any case. Agents that support MCP prompts can start this review with the review_unpaid_bills prompt. After approval, a bill waits for payment. Someone on your team pays it in Cleo. All tools are listed in MCP server.

What your team sees

The agent acts as you. Each approval or flag shows in the bill’s activity in Cleo under your name, with the agent’s name, for example Jane Doe approved via ChatGPT. The agent’s name is the name the client gave when it registered with Cleo. A client that gave none shows as Unnamed app, or as the host of its client_id URL.

See and revoke connections

In the Cleo web app, open Settings > Connect your agent. Connected agents lists each connection with the agent, the member who connected it, the access level and when it was last used.
  • A member sees their own connections.
  • An admin sees every connection for the business.
Click Revoke to end a connection. The agent’s next call answers 401, and it must sign in again to reconnect. If your settings do not show Connect your agent, ask Cleo support to revoke a connection. Removing a member from the business also stops that member’s connections.

How sign-in works

  • The agent gets an access token that lasts one hour, and a refresh token it uses to get a new one.
  • The refresh token changes on every use and expires after 30 days without use. If a refresh token is sent again more than 30 seconds after it was used, Cleo ends the connection.
  • The token works only on the MCP server. The REST API answers 401 to it.
  • Connections do not appear in your list of API keys.
  • While your business has not finished identity verification, the agent sees only get_business_status.

For client developers

Cleo follows the MCP authorization spec:
  • A request without a valid token gets 401 with WWW-Authenticate: Bearer resource_metadata="...". It points at the protected resource metadata: /.well-known/oauth-protected-resource on the mcp. host, or /.well-known/oauth-protected-resource/v1/mcp on the api. host.
  • The authorization server metadata is at https://api.cleo-pay.com/.well-known/oauth-authorization-server, and at https://api.stg.cleo-pay.com/.well-known/oauth-authorization-server for the sandbox.
  • Clients register with Dynamic Client Registration (POST /oauth/register), or use a Client ID Metadata Document (an https client_id URL). Public clients use token_endpoint_auth_method: none.
  • PKCE with S256 is required. plain is refused.
  • Send resource with the server URL you connected to. A token or refresh request may leave resource out. If it sends one that differs from the authorization request’s, it gets invalid_target.
  • Redirect URIs can use https on any host, http only on localhost, 127.0.0.1 or [::1] (any port), or a private-use scheme in reverse domain form, such as com.example.app:/callback. A private-use URI needs a dot in its scheme or its host, so myapp://callback is refused. A redirect URI with a fragment or user info is refused. The sign-in page labels the app Unverified app unless the redirect host is chatgpt.com, claude.ai or claude.com.
  • The authorization response carries iss. Revoke a token with POST /oauth/revoke.

Rate limits on sign-in

  • Discovery (/.well-known/...), POST /oauth/register, /oauth/authorize, POST /oauth/token, POST /oauth/revoke and the sign-in page’s own calls are limited per client IP address: 100 requests per minute to each endpoint.
  • POST /oauth/register is also limited to 20 registrations per hour per IP address.
  • Over the per-minute limit, the answer is 429 with a Retry-After header. Over the hourly registration limit, the answer is 429 without Retry-After. Wait up to an hour before you register again.
  • POST /oauth/register, /oauth/authorize, POST /oauth/token and POST /oauth/revoke answer a 429 in the OAuth error shape, {"error": "temporarily_unavailable", "error_description": "..."}.
  • One connect flow makes only a few calls to each endpoint, so a client that does not loop stays well under these limits.
  • The MCP endpoint has a per-IP limit too. See Rate limits.