Overview
OneCLI connects AI agents to Clay with an API key. Agents can search Clay’s GTM database for people and companies, run Clay-managed or custom functions to enrich records, and query Clay tables. The gateway injects the key into requests toapi.clay.com, so your agent never sees it.
Setup
1
Create an API key in Clay
In Clay, go to Settings > Account > API keys and create a key. Keys are tied to your Clay user and workspace. See Find your Clay API key.
2
Connect in OneCLI
Open the OneCLI dashboard, go to Connections > Clay, and paste your key. The connection shows your Clay email and workspace.
What agents can do
Quick example
No auth header is needed, the gateway adds it:Disconnecting
- In OneCLI, open Connections > Clay and remove the connection.
- In Clay, delete the API key under Settings > Account > API keys.