Skip to Main Content
Credit CardLearnAbout UsCareersSupport

Connect

Request an Invitation
Help centerManaging your accountHow do I connect an AI agent to my Zed account?

How do I connect an AI agent to my Zed account?

You can connect an AI agent, like ChatGPT or Gemini, to your Zed account so it can shop for you. Every purchase is paid for with a new single-use card that Zed creates just for that purchase, within the limits you set.

What's an MCP?

MCP (Model Context Protocol) is an open standard that lets AI agents connect to apps and take actions in them. Zed's MCP is how your agent talks to your Zed account. You add it to your agent once with a link, then sign in to Zed to approve the connection.

What your agent can do

  • Buy things online for you, paying with your Zed credit.
  • Request a new single-use card for each purchase.

What your agent can't do

  • See your Zed card number. Each purchase card is new, and it never holds a balance or a number your agent can reuse.
  • Spend more than your monthly limit.
  • Make a purchase without your approval, if you've turned approvals on.

Before you connect

Purchases your agent makes are charged to your Zed credit, just like purchases you make yourself, and you're responsible for them. Only connect agents you trust, and choose a monthly limit you're comfortable with. You can change your limit or disconnect an agent at any time.

Connect your AI agent

Every app uses the same Zed MCP link: [ZED MCP LINK]

Find your app below, follow the steps, then finish setting up in Zed.

Claude Code

  1. In your terminal, run: claude mcp add zed --transport http [ZED MCP LINK]
  2. Start Claude Code and enter /mcp.
  3. Select zed, then Authenticate. Your browser opens so you can sign in to Zed.

Claude (desktop and web)

  1. Go to Settings → Connectors → Add custom connector.
  2. Name it Zed and paste the Zed MCP link: [ZED MCP LINK]
  3. Select Connect and sign in to Zed.

ChatGPT

  1. In Settings, turn on Developer mode.
  2. Add a new connector using the + button, and paste the Zed MCP link: [ZED MCP LINK]
  3. Select Connect and sign in to Zed.

Codex app

  1. Go to Settings → MCP servers and choose Streamable HTTP.
  2. Paste the Zed MCP link: [ZED MCP LINK]
  3. Save, then sign in to Zed when prompted.

Codex CLI

  1. In your terminal, run: codex mcp add zed --url [ZED MCP LINK]
  2. Run codex mcp login zed and sign in to Zed in the browser window that opens.

Cursor

  1. Go to Cursor Settings → Tools & MCPs and add a new MCP server.
  2. Paste the Zed MCP link: [ZED MCP LINK]
  3. Select Connect and sign in to Zed.

Gemini

  1. On the web at gemini.google.com, go to Settings → Connected apps → Custom apps.
  2. Add a custom app and paste the Zed MCP link: [ZED MCP LINK]
  3. Select Connect and sign in to Zed. Once connected, Zed is also available in the Gemini mobile app.

Gemini CLI

  1. In your terminal, run: gemini mcp add --transport http zed [ZED MCP LINK]
  2. Start Gemini CLI and enter /mcp auth zed.
  3. Sign in to Zed in the browser window that opens.

Other apps

Most apps that support MCP connectors can connect to Zed. Look for an option to add a custom connector or MCP server, paste the Zed MCP link, and sign in to Zed when prompted.

Finish setting up in Zed

When you sign in, Zed walks you through a few quick steps:

  1. Set your agent permissions. Choose a monthly limit, and whether you want to approve every purchase. If you've connected an agent before, review your existing settings.
  2. Name your agent. Give it a nickname so you can recognize it in the Zed app.
  3. Allow access. Your agent is connected and appears in the Zed app under Agents.

Disconnect an agent

In the Zed app, go to More → Agents. Select the agent and choose Revoke, or use Manage → Revoke all to disconnect every agent. Any unused purchase card expires, and the agent can't request a new one.

Troubleshooting

  • Make sure you copied the full Zed MCP link, with no extra spaces.
  • If your agent says it isn't connected, remove the Zed connector from your agent, add it again, and sign in.
  • Still stuck? Contact support@zed.co and tell us which app you're using.

Related articles