Overview
OneCLI connects AI agents to Attio through OAuth or a scoped API key. Agents can read and manage CRM data such as contacts, companies, deals, lists, notes, and tasks, with credentials injected into requests to the Attio API automatically. This is useful for agents that enrich records, move deals through a pipeline, or capture notes and tasks without manual CRM data entry.What you will set up
- An Attio connection through OAuth, or a scoped API key for tighter control
- Automatic credential injection and token refresh on requests to
api.attio.com - Per-agent, per-tool access to CRM data
How it works
OneCLI sits between your agent and Attio as a transparent proxy. When an agent calls the Attio API, the gateway matches the request, injects the stored credential, and forwards it toapi.attio.com. Your agent never sees the token or API key.
Because the gateway speaks the Attio REST API directly, agents use the same endpoints and request shapes as any Attio client. There is no SDK to install and no Attio-specific code in your agent. You connect Attio once, assign it to an agent, and the agent can read and write CRM data within the permissions you grant.
OneCLI also handles the connection lifecycle. For OAuth connections it refreshes expiring access tokens for you. For API key connections it injects your key on every request. In both cases credentials are encrypted at rest and only decrypted inside the gateway at request time.
Setup
OAuth is the default connection method and requires no setup beyond authorizing OneCLI.Go to Connections
Authorize

The Attio connect window on OneCLI Cloud.
Verify
Configure
Optional: connect with a scoped API key instead
Optional: connect with a scoped API key instead
Create a scoped API key in Attio
Connect in OneCLI

Self-hosted: use your own Attio app
ATTIO_CLIENT_ID and ATTIO_CLIENT_SECRET set, or if you want your own company name on Attio’s consent screen. The API key option above works on self-hosted with no app at all.1. Create the Attio app
1. Create the Attio app
OneCLI. Open its OAuth settings.
Create the app in Attio's developer dashboard.
2. Add the scopes
2. Add the scopes
3. Add the redirect URI
3. Add the redirect URI

Copy the Redirect URI from Custom credentials in OneCLI.

The OAuth tab of your Attio app, with the OneCLI Redirect URI.
4. Connect with your app
4. Connect with your app
Permissions
OAuth connections request the following scopes. With an API key, you choose the scopes when you create the key in Attio.What agents can do
- Search and manage contacts, companies, and deals
- Create and update records, custom objects, and attributes
- Organize lists and list entries
- Add notes, tasks, and comments to records
- Upload and read files attached to records
- Read meeting details and call recording transcripts
- Manage webhooks for real-time updates
Disconnecting
You can disconnect Attio at any time. OAuth connections- In OneCLI, open Connections > Attio and remove the connection.
- In Attio, you can also revoke access by uninstalling OneCLI from the installed apps section of your workspace settings.
- In OneCLI, open Connections > Attio and remove the connection.
- In Attio, revoke or delete the API key so it can no longer be used.
Controlling access
Access is per agent: grant the connection to each agent that needs it, choosing per tool what runs freely, what needs human approval, and what stays blocked — a read-only agent is a single grant. Organization rules add guardrails on top, like rate limits and blanket blocks. Everything is checked before credential injection, so a blocked request never reaches Attio.FAQ
Should I use OAuth or an API key for Attio?
Should I use OAuth or an API key for Attio?
How do I rotate an Attio API key?
How do I rotate an Attio API key?
Does the agent see my Attio token?
Does the agent see my Attio token?