atlas + customer_123 + gmail.
The provider catalog comes from GET /v1/oauth/providers. Most providers use a browser redirect flow. openai-codex uses a device-code flow when it is enabled.
Connect With The CLI
github, google, slack, discord, microsoft, linkedin, and x.
Use custom scopes when needed:
Connect With The SDK
How Tools Use Connections
When you run a Tool Hub action, RunTools resolves credentials in this order and only fills missing required credential fields:- Per-request
credentials credentialOverridesthat point at stored secrets- Stored credentials for the installed tool
- Matching user or org secrets
- Connected OAuth account for the tool’s provider
apiKey maps to the secret name APIKEY; use credentialOverrides when you want a different secret name.
connected_account and connected_connection_id inputs on OAuth-backed tools. Prefer connected_account so the model can use labels users naturally mention, such as an email address or GitHub username.
BYOA Provider Configs
Bring-your-own-app configs let an organization use its own OAuth client for a provider. Creating, listing, updating, or deleting provider configs requires credential-admin access.cURL
Custom Tools
Custom tools declare OAuth needs in their credential spec. RunTools maps the connected provider token into the credential field before running the tool.tools/my-google-tool.ts
API Reference
Internal services also call
/v1/oauth/token/{provider} and /v1/oauth/export/{provider} with internal scopes. Those endpoints are not public customer APIs.