qonto like any other command-line tool. There is nothing to configure in the agent: once you have signed in, the agent runs qonto commands with your session.
CLI or MCP server?
Both give an AI assistant access to your Qonto account, as you, within your role.Tell your agent about the CLI
Agents discover the CLI with--help, but a few lines in your agent’s instructions file (AGENTS.md, CLAUDE.md, or your agent’s equivalent) make it faster and safer:
Keep the agent’s access narrow
A few habits limit what an agent can do and how much data it sees:-
Use your agent’s permission settings. Most agents can allow some commands and ask for others. Allow
listandgetcommands, and keep approval on everything else. -
Sign in with read-only scopes when the agent only needs to read. The session then cannot change anything, whatever the agent tries:
The CLI keeps one session per machine, so this also applies to the commands you run yourself. Sign in again without
--scopesto get write access back. -
Ask for less data.
--jqand--fieldsrun on your machine, so only the filtered result reaches the agent. Prefer--fields id,amount,labelover sending every field of every transaction. -
Keep tokens out of the conversation.
qonto auth tokenprints a credential to your account; an agent has no reason to run it.
What agents can rely on
- The API’s own JSON. With
-o json, or whenever the output is not a terminal, every command prints the API’s response unchanged. The API reference describes every field. - Separate channels. Data goes to standard output; messages, warnings, and errors go to standard error.
- Exit codes.
0success,1API or authentication error,2usage error,3unsupported CLI version. See Exit codes. - Strong Customer Authentication. When an action needs it, the command waits until you approve in the Qonto app, then finishes. The agent cannot approve for you. See Strong Customer Authentication.
Scripts and scheduled jobs
For unattended use, such as a nightly export on a server:- On a machine without a credential store, sign in once with
--store-cleartextand a narrow--scopeslist, then pass the same flag on every command. - Alternatively, pass a short-lived access token in
QONTO_CLI_ACCESS_TOKEN. The CLI uses it without storing it.
--store-cleartext writes your Qonto session to disk unencrypted, in ~/.config/qonto/credentials.json. Whoever can read that file can act on your Qonto account as you, within the scopes you granted, until you sign out or revoke the access: another administrator of the machine, a backup or a disk image, any program running under your user, including an AI agent with shell access.- Use it only on a machine you control, never on a shared or personal laptop that has a credential store.
- Sign in with the fewest scopes the job needs, read-only if it only reads.
- Never copy, commit, or upload the file, and keep it out of backups and container images.
- When the job no longer needs access, run
qonto auth logout --store-cleartextand revoke the CLI from the connected apps section of your Qonto account.