Wiki · AI connections

Connect Stripe

Customers, payments and invoices — read-only is plenty.

Create the key

Stripe has two kinds of secret keys. The standard secret key can do everything, including moving money. For an AI connection, create a restricted key with read-only access instead — it answers every “how much did we make?” question while being unable to touch funds.

  • Stripe Dashboard → Developers → API keys (dashboard.stripe.com/apikeys).
  • Click “Create restricted key”, name it “Cortex”.
  • Set “Read” on the resources you care about — Customers, Charges, Invoices, Subscriptions — and leave the rest at “None”.
  • Create the key and copy it (it starts with rk_live_ or rk_test_).

Test vs live mode

Keys are mode-specific: an rk_test_ key sees only test data, an rk_live_ key only real data. Pick the mode you actually want your AIs to look at.

Paste it into Cortex

  • Connect AI page → Connected tools → “Connect a tool” → pick Stripe.
  • Paste the key into the “Secret key” field and click Connect.

Confirm it worked

After the tool count confirms the key, ask a connected AI for “my latest Stripe payments”. If it errors on a specific resource, the restricted key likely has that resource set to “None” — edit the key in Stripe and grant Read.