# Connect an Agent to outside services

> Give an Agent a sign-in to Linear, Figma, Gmail, Supabase and other services, or to your own MCP server, and manage its Connections.

Source: https://air.build/docs/agents/connect-outside-services/

A Connection lets an Agent sign in to an outside service, such as Linear or Figma, and work in it for you. Each Connection belongs to one Agent: other Agents can't use it. It isn't tied to the person who signed it in, so anyone in the Team can ask that Agent to work in the service.

There are two ways to get one: add a specialist Agent that comes with its Connection, or add a Connection to any Agent yourself.

## Add a specialist Agent

Specialists are Agents made for one service. Each comes with a Connection to that service.

1. Tap **+** (on the Mac, click it) and choose **New Agent**.
2. Under **Specialists**, find the service you want.
3. Tap **Add** on its row.
4. Open your chat with the new Agent. It has posted a card asking you to sign in.
5. Tap **Connect** followed by the service's name, and sign in. See [Sign in from a card](https://air.build/docs/agents/connect-outside-services/#sign-in-from-a-card).

| Agent | Service | What it does |
| --- | --- | --- |
| Ari | Ahrefs | Researches keywords, backlinks and rankings in your Ahrefs. |
| Cloudflare | Cloudflare | Runs your Cloudflare: Workers, Pages, DNS, R2, KV and D1. |
| Figmama | Figma | Reads your Figma designs and works on the canvas and in FigJam. |
| Mailey | Gmail | Reads your Gmail, drafts replies, and sends only with your yes. |
| Linda | Linear | Reads and updates your Linear issues, projects and cycles. |
| Lou | Loops | Runs your Loops contacts, campaigns and workflows; sends nothing without your yes. |
| Mobbin | Mobbin | Finds real app screens and flows on Mobbin for your designs. |
| PostHog | PostHog | Runs your PostHog: product analytics, errors and feature flags. |
| Supa | Supabase | Runs your Supabase: databases, SQL, functions, storage and logs. |
| TikTok Ads | TikTok Ads | Shows how your TikTok ads are doing; spends nothing without your yes. |
| Vercel | Vercel | Runs your Vercel: projects, deployments, domains and logs. |

Mobbin needs a Mobbin Pro, Team or Enterprise plan. The **New Agent** sheet lists the ones available to you. To read about a specialist before you add it, tap its row. The page lists the services it signs in to and says "Sign in after you add the agent." For GitHub, see [Connect your GitHub account](https://air.build/docs/team/connect-github-account/). For everything else about adding Agents, see [Add an Agent to your Team](https://air.build/docs/team/add-an-agent/).

## Sign in from a card

When an Agent needs you to sign in, it posts a card in chat. The card shows the service's icon and name, the line "Sign in so the agent can use your account." and a button: **Connect** followed by the service's name. An Agent posts the same card for the first sign-in and when an earlier sign-in stopped working.

1. Tap **Connect** followed by the service's name.
2. If an AirBuild page opens first, check it and tap **Continue to** followed by the service's name.
3. Sign in to the service and allow access.

**iPhone**

The sign-in opens in a sheet inside AirBuild. When you finish, the sheet closes. On iPad it works the same way.

**Mac**

The sign-in opens in your default browser. When you finish, go back to AirBuild. If you leave the browser page for several minutes without finishing, the card says "Sign-in timed out. Try again."

For most services, the first page is AirBuild's, titled "Connect _Service_ to this Agent?". It lists the **Service**, the **Agent**, the **Workspace** (your Team) and who it was **Started by**, with that person's email partly hidden. It also says: "Continue only if you started this in AirBuild yourself. If someone sent you this link, close this page. Continuing would give their Agent access to your _Service_ account." The page is in English only. Figma and Vercel skip this page and go straight to their own sign-in.

When you're done, the card shows a check mark and **Connected**, and the Agent is told so it can carry on. A finished card can't be tapped again. If the Agent needs another sign-in later, it posts a new card.

Anyone in the chat can tap the card. The account used is the one of whoever signs in.

> [!WARNING]
> Whoever signs in decides which account the Agent uses, and everyone in the Team can then ask that Agent to work in it. Sign in with an account you're happy for the Team's Agent to use.

## See an Agent's Connections

Open the Agent's profile and find **Connections**. See [Edit an Agent's profile](https://air.build/docs/agents/edit-an-agent/) for how to open a profile. Each row shows the service and its state:

| Shown under the name | Meaning | Button on the row |
| --- | --- | --- |
| An email address | Signed in with this account. | None |
| A web address | A custom MCP server that's signed in, or that needs no sign-in. | None |
| **Connected** | Signed in. The service didn't share which account. | None |
| **Not Connected** | No one has signed in yet, or someone disconnected it. | **Connect**, or **Add Key** for a server that uses an API key |
| **Needs Reauthorization** | The service stopped accepting the sign-in. | **Reconnect**, or **Update Key** |

The **⋯** menu on each row has:

- **Reconnect**: sign in again, for example with a different account. The old sign-in keeps working until the new one is done.
- **Disconnect**: "The agent can no longer use this account until someone connects it again." The Connection stays on the Agent, marked **Not Connected**.
- **Update Key…**: for a server that uses an API key.
- **Remove from Agent**: "The agent loses this service and its sign-in. You can add it again later."

Anyone in the Team can do all of these.

## Add a service to any Agent

1. On the Agent's profile, under **Connections**, tap **Add Connection**.
2. Choose **Add a Service…**.
3. Tap **Add** next to the service. Services the Agent already has say **Added**.
4. The sign-in starts right away. Sign in as described in [Sign in from a card](https://air.build/docs/agents/connect-outside-services/#sign-in-from-a-card).

Agents can also add or remove their own Connections when you ask them to in chat. After adding one that needs a sign-in, the Agent posts a card for you to tap.

## Add your own MCP server

If a service has a remote MCP server, you can connect an Agent to it.

1. On the Agent's profile, under **Connections**, tap **Add Connection**.
2. Choose **Add a Custom MCP Server…**.
3. Type a **Name** and the server's **URL**. The URL must start with `https://`.
4. Choose how the Agent signs in under **Sign-in** (see the table below).
5. Optionally, type what the server is for. "The agent reads this to know when to use the server."
6. Tap **Add**.

| Sign-in | When to use it |
| --- | --- |
| **Sign-in Page** | "You sign in on the server's own page once it is added." The sign-in starts as soon as you tap **Add**. |
| **API Key** | The server takes a key in a header. Fill in **Header** (it starts as `Authorization`) and **Value**. Tap **Add Header** for more, up to 8. "Sent with every request the agent makes. Saved values are never shown again." |
| **None** | "For a server anyone can use without signing in." |

Choose **Sign-in Page** only if the server lets apps sign in without being registered with it first. If the server asks you to register an app or gives you a token, choose **API Key** and paste the token as the value.

To change a key later, choose **Update Key…** from the row's **⋯** menu. Saved values never come back, so type every header again, then tap **Save**. To change a custom server's name or URL, remove it and add it again.

## What an Agent can do with a Connection

The Agent uses the service's own tools through its Connection. It can do what the service lets the signed-in account do, within the access you allowed on the service's sign-in page. Ask the Agent in chat by its @ID, for example "@linear, what's in this week's cycle?" for Linda. Type **@** and pick the Agent from the list to put in its @ID. See [Work with your Agents in chat](https://air.build/docs/projects/work-with-agents-in-chat/#mention-an-agent).

Some specialists, like Mailey, Lou and TikTok Ads, say they send or spend nothing without your yes.

## Questions

**Sign-in didn't finish**

The card or the profile says why. "Unable to open browser to sign in." means AirBuild couldn't open the sign-in page. "Sign-in timed out. Try again." means the page waited too long. "The account was not connected. Try again." covers anything else, including saying no on the service's page. Tap the button again to start over. If you closed the sign-in page, tapping again starts a new one.

**This connection is no longer available**

The Connection was removed from the Agent after the card was posted. Ask the Agent to add it again, or add it from the Agent's profile.

**Adding a Connection failed**

"This agent already has it." The service is already on the Agent. "This agent has as many connections as it can hold. Remove one first." "This service is no longer available." "Use the server's public https address." Check the URL. "A header name or value can't be used. Check them and try again." "Keep the name and description to one short line."

**Can another Agent use this Connection?**

No. A Connection belongs to the Agent it's on. Add the service to the other Agent too, or ask the first Agent.

**Someone sent me a sign-in link**

Don't continue. Close the page. Only continue on a page that opened after you tapped **Connect** in AirBuild yourself.
