Using connectors
Connectors are driven from the shell with prevail connectors … or from the cockpit with /connectors.
List what’s available
Section titled “List what’s available”prevail connectors listShows every connector, its auth type, and whether it’s currently authenticated. In the cockpit, the apps sidebar shows the same status inline: ✓ connected, ! needs attention, · not configured.
Test a connection
Section titled “Test a connection”prevail connectors test plaidProbes the connector’s auth without doing real work — checks that an API key is present, a refresh token is valid, or a browser session is still live. prevail connectors probe <id> is the same thing.
Authenticate
Section titled “Authenticate”-
API-key connectors read from your environment or
auth/folder. Set the documented variable (e.g.PLAID_CLIENT_ID) andtestwill go green. -
OAuth connectors need a one-time browser flow:
Terminal window prevail connectors oauth youtube-analyticsPrevail opens the consent page, listens on a loopback port for the callback, exchanges the code, and stores the refresh token at
chmod 0600. From then on it refreshes the access token automatically. -
Browser connectors capture a session by driving the real site once with Playwright; re-run the auth if the session goes stale.
-
Manual connectors just need you to drop exported files into the connector’s watched folder.
In the cockpit, the same flows are available as /connectors oauth <id> and /connectors test <id>.
See what a connector can do
Section titled “See what a connector can do”prevail connectors skills plaidLists the runnable skills a connector exposes — discrete actions like sync-transactions, get-balance, or list-institutions.
Run a connector skill
Section titled “Run a connector skill”prevail connectors run plaid sync-transactionsprevail connectors run plaid sync-transactions --input institution=chase --input months=3Pass parameters with repeated --input key=value flags. The skill does its work — syncing data into ~/.prevail/connectors/<id>/data/ — and logs the run under the connector’s _log/.
A typical first run
Section titled “A typical first run”prevail connectors list # what's here?prevail connectors oauth google-calendar # authenticateprevail connectors test google-calendar # confirm it's greenprevail connectors skills google-calendar # what can it do?prevail connectors run google-calendar sync # pull events inNow open the calendar domain in the cockpit and your real events are part of the context the council reasons over.