integration is setup (connect, confirm, disconnect), and broker is execution (operate an already-connected provider). They are deliberately separate. See Integrations and Connections for the model and Broker for the semantics. Add --json to any command for machine output.
Integrations (setup)
| Command | Description |
|---|---|
integration catalog | Providers you can connect. |
integration connect <provider> | Start the authorize flow. |
integration confirm <provider> | Persist the connection after authorizing. |
integration list | Your connected integrations. |
integration rm <id> | Disconnect (aliases: delete, disconnect); revokes the credential. |
Broker (operate)
The broker is gated (off by default in production) and fail-closed.driftless broker setup prints guidance only.
| Command | Description |
|---|---|
broker connections | Your connections with health, status, and criterion. |
broker operations [provider] | List operations, or search with --query, --provider, --effect read|write, --risk low|medium|high, --limit, --cursor, --refresh. |
broker capabilities <provider> | The capability directory. |
broker inspect <provider> <op> | One operation’s full spec. |
broker invoke <provider> <op> [--input <json>|@file] | Execute one operation inline. |
broker criterion <provider> [--add <slug>|--rm <slug>] | Attach or detach a criterion topic slug. |
Reading and materializing
| Command | Description |
|---|---|
broker models <provider> | Importable record models (enabled syncs). |
broker records <provider> --model <m> | Read a model’s records from the mirror (--modified-after, --cursor, --limit). |
broker page <pageId> | Read one page’s bounded, live, citeable content (--max-bytes). |
broker index <provider> | Materialize connector documents. --dry-run previews; also --model, --limit, --sample-limit, --max-bytes, --import-run-id. |
broker events [provider] | The inbound provider event feed (--limit). |
records reads a cache; page reads live; index writes Driftless-owned connector documents (never the provider). Normal context retrieve never queries a provider.
Gates and grants
A broker call can be refused by any of three gates: the master flag, the external-lane rollout, and per-principal grants. For a CLI call authenticated with your own key you are an internal caller (governed by identity and scopes, not grants); a faceless OAuth/MCP caller additionally needs rollout on and a matching grant. Managing grants is owner/admin only, via the API or dashboard.Flags, files, and JSON
@fileis accepted bybroker invoke --input.--jsonworks on every command.broker invokeon a write effect requires anidempotency_keyto be safely replayable; writes are never auto-retried.
Related
- Integrations and Connections - the setup-to-usable chain and provider availability.
- Broker - actions, gates, and read/write semantics.
