Skip to main content
AI agents that run terminal commands, such as Claude Code, OpenAI Codex, Cursor’s agent, or Gemini CLI, can use 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.
When an agent runs qonto, the output goes into the agent’s conversation and is sent to the agent’s provider, who controls it from then on under its own terms, which may include keeping it or using it to train models. The agent can also run commands that change your account (create a card, send an invoice) if you let it. Before you start:
  • Check how your agent’s provider handles your data, and use a professional account you trust.
  • Keep the agent asking for your approval before it runs a command that creates, changes, sends, or deletes something.
  • Double-check what the agent tells you. It can misread data or make mistakes.

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 list and get commands, 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 --scopes to get write access back.
  • Ask for less data. --jq and --fields run on your machine, so only the filtered result reaches the agent. Prefer --fields id,amount,label over sending every field of every transaction.
  • Keep tokens out of the conversation. qonto auth token prints 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. 0 success, 1 API or authentication error, 2 usage error, 3 unsupported 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-cleartext and a narrow --scopes list, 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-cleartext and revoke the CLI from the connected apps section of your Qonto account.