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.
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
- ChatGPT
- Claude
- Claude Code
- Cursor
- Codex
- In ChatGPT, open Settings > Apps and turn on developer mode.
- Create a connector with the URL
https://mcp.cleo-pay.com. - Sign in to Cleo when ChatGPT asks, pick the business and the access level, and click Allow.
https://mcp.stg.cleo-pay.com in place of https://mcp.cleo-pay.com.
Every desktop agent at once
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 itsclient_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.
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
401to 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
401withWWW-Authenticate: Bearer resource_metadata="...". It points at the protected resource metadata:/.well-known/oauth-protected-resourceon themcp.host, or/.well-known/oauth-protected-resource/v1/mcpon theapi.host. - The authorization server metadata is at
https://api.cleo-pay.com/.well-known/oauth-authorization-server, and athttps://api.stg.cleo-pay.com/.well-known/oauth-authorization-serverfor the sandbox. - Clients register with Dynamic Client Registration (
POST /oauth/register), or use a Client ID Metadata Document (anhttpsclient_idURL). Public clients usetoken_endpoint_auth_method: none. - PKCE with
S256is required.plainis refused. - Send
resourcewith the server URL you connected to. A token or refresh request may leaveresourceout. If it sends one that differs from the authorization request’s, it getsinvalid_target. - Redirect URIs can use
httpson any host,httponly onlocalhost,127.0.0.1or[::1](any port), or a private-use scheme in reverse domain form, such ascom.example.app:/callback. A private-use URI needs a dot in its scheme or its host, somyapp://callbackis 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 ischatgpt.com,claude.aiorclaude.com. - The authorization response carries
iss. Revoke a token withPOST /oauth/revoke.
Rate limits on sign-in
- Discovery (
/.well-known/...),POST /oauth/register,/oauth/authorize,POST /oauth/token,POST /oauth/revokeand the sign-in page’s own calls are limited per client IP address: 100 requests per minute to each endpoint. POST /oauth/registeris also limited to 20 registrations per hour per IP address.- Over the per-minute limit, the answer is
429with aRetry-Afterheader. Over the hourly registration limit, the answer is429withoutRetry-After. Wait up to an hour before you register again. POST /oauth/register,/oauth/authorize,POST /oauth/tokenandPOST /oauth/revokeanswer a429in 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.