Connect your AI agent
Connect your agent of choice (Claude Code, Codex, and more) to your Arc financial data. Have your agent read your Arc data and intelligently answer questions about your accounts, transactions, payments, and more!
Prerequisites
- An Arc account with an MFA connected
- Node.js 20 or newer on the machine where the agent runs.
- An interactive terminal
Install the CLI and skills
npm install -g @joinarc/cli
arc --version
arc skills install
Log in
Start the interactive flow:
arc login
The CLI prints an eight-digit terminal confirmation code, opens an Arc approval page, and listens on localhost for the result. A human signs in to Arc and completes MFA if prompted. On the approval page, enter the code printed by the initiating terminal, then approve the CLI. An agent can start the command and give the browser step to a human, but it must never ask for a password, MFA code, API key, or credential file.
For SSH, a container, or a remote agent host that the browser cannot reach, run:
arc login --no-browser
Give the printed link and terminal confirmation code to the human. After approval, the browser
shows a one-time authorization code. The human sends back only that code, which is pasted into
the waiting terminal. This mode does not open a browser or start a localhost listener. A normal
arc login also accepts a manual code if its listener is unreachable. Rerun the command if the
ten-minute link expires or Arc says the request was already used. If the human cancels, stop;
start another attempt only if they request it.
Verify the server accepts the saved session:
arc whoami --format json
arc status --format json
whoami returns the server-validated person, company, browser session, and expiry. status
shows both the selected local credential and server validation. A saved login alone is not
proof that its server session remains valid.
Choose the company explicitly
One browser login can cover several companies. Discover the available IDs before reading data:
arc companies --format json
arc transactions list --company <company-id> --format json
Agents should pass --company <id> on every company-scoped data command. That makes the scope
visible and avoids changing a shared machine's default. A person can save a default with
arc company use <company-id>; arc company current shows its source. The precedence is
--company, then ARC_COMPANY, then the saved default. A one-command override does not change
the saved default.
JSON list output includes nextCursor. Pass it back as --cursor with the same filters until
it is null; never answer an aggregate question from a partial page. JSONL omits the cursor.
End or recover a login
arc logout
Logout ends the Arc session and removes the local login. If Arc cannot be reached, it still removes the local login and tells the human to revoke the session in Arc settings.
Browser sessions refresh automatically, but they can expire, be revoked, require MFA again, or lose access to a company. Follow the CLI's recovery message:
- Run
arc loginagain when the sign-in ended or is no longer valid. - Run
arc companies --format json, then retry with--company <id>forcompany_requiredorcompany_unavailable. - Ask a company admin when the role or company CLI access is denied.
Your login credentials are stored securely in your operating system’s credential store.
Use an API key for CI or servers
API keys remain the non-interactive option. A human creates one under Settings → Developer and completes MFA. Each key is scoped to its owning company and acts with its owner's permissions.
For an interactive machine, use the hidden prompt:
arc config add
arc whoami --format json
For CI, inject ARC_TOKEN from the CI platform's secret store. Do not put a key in shell
history, logs, a committed file, or agent context. Do not pass --company with an API key;
the key always acts for its owning company, and the CLI rejects that flag.
Credential precedence is --token, ARC_TOKEN, saved browser login, then the default
profile's API key. Naming --profile or ARC_PROFILE deliberately selects that profile's
API key over a browser login.
Ask your agent
Start the agent without pasting credentials into its chat. For example, ask:
- "What were my largest transactions in the last 30 days?"
- "What's my total cash position across all accounts?"
- "Summarize spending by counterparty last quarter."
The agent should use structured output, keep --company <id> explicit for browser login,
and page complete result sets.
No-shell assistants such as ChatGPT, Claude.ai, and Slack cannot run the CLI. A one-click MCP connector is coming; see MCP.
Security
- The CLI is read-only and follows the signed-in person's permissions.
- The human completes browser authentication and MFA.
- Agents never receive passwords, MFA codes, API keys, or credential files.
- Browser sessions and API keys can be revoked; server checks apply on every request.
arc whoamiandarc statusvalidate the selected identity against Arc.
Use of the Arc CLI and API is subject to the Arc Developer Terms.