How-to

BankBridge with OpenAI AgentKit

2 min read
Add BankBridge to OpenAI AgentKit once, then ask it about your real bank accounts, transactions, subscriptions, and investment holdings. Every question live-fetches in real time — nothing is cached. $5/mo per connected bank.

Setup

Paste the config below into openai-agents SDK. Swap the placeholder key for your real bbk_ key from your dashboard.

import { Agent, MCPServerStreamableHttp } from "openai-agents";

const bankbridge = new MCPServerStreamableHttp({
  url: "https://bankbridge.money/api/mcp",
  headers: {
    Authorization: `Bearer ${process.env.BANKBRIDGE_API_KEY}`,
  },
});

const agent = new Agent({
  model: "gpt-4.1",
  mcpServers: [bankbridge],
});

const result = await agent.run("How is my spending trending?");

// export BANKBRIDGE_API_KEY="bbk_your_api_key_here"

The full doc page for OpenAI AgentKitauto-fills your real key when you’re signed in.

Three prompts to try

  • List my bank accounts and current balances.
  • How much did I spend on food this month?
  • What are my recurring subscriptions?

If it doesn’t work

Check the OpenAI AgentKit doc page for the Troubleshooting section. 90% of first-time failures are either a missing Bearer prefix (note the space) or a placeholder key that didn’t get replaced with a real one.