---
title: "Connect Claude or ChatGPT"
description: "Add AI Agent as a custom connector in Claude, Claude Code, or ChatGPT so the assistant can work in your workspaces as you, with the permissions you approve."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.aiagent.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Claude or ChatGPT

Connect an AI assistant such as Claude or ChatGPT to AI Agent so it can work in your workspaces for you: check and update tickets, ask your agents for help, and run workflows. The assistant signs in as you, can do only what you approve, and works only in workspaces you belong to.

AI Agent runs a remote MCP server for this. The only thing you need to enter is its URL:

```text
https://aiagent.app/mcp
```

## What a connected assistant can do

When you connect, AI Agent shows a consent screen with the permissions the assistant asks for. Each permission has a tick box. **Read your workspaces** is always on. Clear **Make changes** or **Run agents and workflows** to withhold them. **Connect accounts, repositories and computers** starts off; tick it only when you want the assistant to link GitHub, attach and detach repositories, reuse a GitHub connection from another workspace, pair computers, choose which workspaces a computer serves, or turn on a computer's auto-start. Click **Allow access** to approve, or **Deny access** to refuse.

| Permission                                       | What it allows                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Read your workspaces**                         | See tickets, agents and their conversations, workflows and their runs, tables and their records, knowledge, projects, approvals, inbox messages, members, connected accounts (never their credentials), your computers, and the credit balance in workspaces you belong to.                                                                                                                                           |
| **Make changes**                                 | Create and update tickets, comments, labels, subtasks, and projects; mark inbox messages read, archive, snooze, or flag them; move a ticket above or below another in the Board's order; reorder a computer's run queue; and cancel workflow runs, as you.                                                                                                                                                            |
| **Run agents and workflows**                     | Ask an agent to do work and get its reply, have a ticket's agent start working on it, queue up to 25 tickets at a time to run on your computer, start workflow runs, draft a reply to an inbox message, create a workflow from a short brief, create a workspace in an organization you belong to, and write table records (which can trigger agent columns and table workflows). These spend your workspace credits. |
| **Connect accounts, repositories and computers** | Link your GitHub account to a workspace, attach and detach its repositories, reuse a GitHub connection from another workspace in the same organization (organization admins only), pair a computer, choose which other workspaces a computer serves, and turn on a computer's auto-start. The assistant never sees the tokens. It is off until you tick it.                                                           |

When a ticket's run needs a folder on one of your computers, the assistant starts nothing. It gets the list of your folders back and must call again with one of them, or ask for the cloud. A ticket's agent that runs on your computer is told not to push or open pull requests. To keep a computer busy, the assistant can queue several tickets on it in order and reorder that queue. With the connect permission it can also turn on auto-start with a daily cap and choose which workspaces the computer runs work for. See [Run background work](/account/connect-a-computer#run-background-work). A queued run waits for the computer and never uses the cloud. A ticket that needs a folder or a fallback choice is not queued, and the assistant must start it with that choice instead. The assistant can queue and reorder only on your own computers, and only in workspaces you belong to.

A connected assistant cannot:

- approve or reject an action that is waiting for review — you decide that in AI Agent;
- send a reply for you — a drafted reply waits until you approve it;
- turn on a workflow's schedule or trigger — a workflow it creates stays paused until you turn it on;
- change billing or members, or see the tokens of a connected account;
- link GitHub, attach or detach repositories, pair a computer, or change which workspaces a computer serves, unless you ticked the connect permission. Linking GitHub gives the assistant a link that you open and approve in your browser. A pairing code it creates works for 10 minutes and enrolls a machine for whoever runs it, so keep it private;
- approve a computer that is asking to join. A computer that shows a code in its own terminal waits for you to click **Approve** in AI Agent, and the assistant has no tool for that step;
- see workspaces you are not a member of.

AI Agent does not issue API keys or personal access tokens. Every assistant connects through your sign-in and your approval.

## Before you start

- An AI Agent account that belongs to at least one workspace.
- An assistant plan that supports custom MCP connectors. Check [Anthropic's custom connector guide](https://support.claude.com/en/articles/11175166) or [OpenAI's developer mode guide](https://developers.openai.com/api/docs/guides/developer-mode). On team and enterprise plans, an admin may need to allow custom connectors first.

## Connect

### Claude

1. **Add a custom connector**

   In Claude, add a custom connector and enter `https://aiagent.app/mcp` as the remote MCP server URL. Leave the optional OAuth client ID and secret empty: Claude registers itself with AI Agent. [Anthropic's guide](https://support.claude.com/en/articles/11175166) shows where connectors live on your plan.
2. **Sign in and approve**

   Choose to connect. AI Agent opens in your browser. Sign in if asked, check the permissions on the consent screen, and approve them.
3. **Use it in a conversation**

   Turn on the AI Agent connector in the conversation where you want to use it.

### Claude Code

1. **Add the server**

   Run this in your terminal:

   ```bash
   claude mcp add --transport http aiagent https://aiagent.app/mcp
   ```
2. **Sign in and approve**

   Start Claude Code, run `/mcp`, choose **aiagent**, and finish signing in to AI Agent in your browser. The [Claude Code MCP guide](https://code.claude.com/docs/en/mcp) covers the sign-in options.

### ChatGPT

1. **Turn on developer mode**

   Turn on developer mode in ChatGPT's settings. [OpenAI's developer mode guide](https://developers.openai.com/api/docs/guides/developer-mode) lists the plans that include it and where the setting is.
2. **Create an app for AI Agent**

   Create an app for a remote MCP server. Enter `https://aiagent.app/mcp` as the server URL and choose OAuth for authentication. You don't need a client ID or secret: AI Agent supports both client metadata documents and dynamic client registration.
3. **Sign in and approve**

   When ChatGPT sends you to AI Agent, sign in if asked, check the permissions on the consent screen, and approve them.

## Connect a coding agent with one prompt

AI Agent can write the setup commands for you. Click your avatar at the bottom of the sidebar rail, then click **Settings**. In **My account**, click **Profile**. In **Connected apps**, click **Copy setup prompt**, then paste the prompt into your coding agent. The prompt holds the setup for Claude Code, Codex, Gemini CLI, Cursor, VS Code with Copilot, and OpenCode. Finish signing in in your browser when the agent asks.

## Verify the connection

Ask the assistant:

```text
List my AI Agent workspaces.
```

It answers with the workspaces you belong to. Then check that AI Agent lists the assistant.

1. **Find the assistant in Connected apps**

   1. Click your avatar at the bottom of the sidebar rail, then click **Settings**.
   2. In **My account**, click **Profile**.
   3. Scroll to **Connected apps**. The assistant is listed there.

   ![The Connected apps section in Settings, Profile, with the Copy setup prompt button.](/screenshots/guides/connect-apps-card.webp)

## Work with a connected assistant

- **Name the workspace.** The assistant looks up your workspaces first, then works in the one you name.
- **Runs cost credits.** Asking an agent or starting a workflow spends workspace credits, as it does in the dashboard. A run can finish after the assistant replies; ask it to check the run.
- **Duplicate tickets are refused.** When the assistant creates a ticket with the same title as an open ticket in the same workspace, project, and parent, AI Agent refuses. The reply names the existing ticket. Capitals and extra spaces do not make a title different, and **Done** and **Cancelled** tickets do not count. To create the ticket anyway, tell the assistant to set `allow_duplicate` to `true`. The check applies to assistants only, not to tickets you create in the dashboard.
- **Reviews stay with you.** When an agent proposes an action that needs review, it waits for your decision in AI Agent. Approve or reject it in the **Inbox**, on the ticket, in the chat, or in the workflow run.
- **Changes are recorded.** Each change the assistant makes is written to the audit log of the workspace it changed. The entry names your account and the connected app. The **Audit Log** is a Labs feature: turn on **Show Labs features** and **Activity** in **Settings → Labs** to see it.

## Disconnect

1. **Revoke the assistant**

   1. Open **Settings → Profile** and scroll to **Connected apps**.
   2. In **Connected apps**, click **Revoke** on the assistant's row.
   3. In the confirmation dialog, click **Revoke**. To keep the app, click **Keep it connected**.

The assistant's next request is refused. To use it again, connect it and approve it again.

Removing the connector in Claude or ChatGPT stops that assistant from using it, but revoking it in **Connected apps** is what ends its access to AI Agent.

## Fix a connection problem

### Sign-in does not finish

Finish signing in in the browser window the assistant opened, with the account you use for AI Agent. If you declined the consent screen, connect again and approve.

### Workspace not found

The assistant can only use workspaces you belong to. Ask it to list your workspaces and pick one from that list.

### The assistant asks for more permission

The task needs a permission you did not approve, such as running agents and workflows, or connecting accounts, repositories and computers. Approve it when AI Agent asks, or leave it off and do that part in the dashboard.

### Rate limited

The assistant sent too many requests in a short time. Tools that spend credits are limited to 20 calls per minute and 200 per hour for each person, and all tools together to 120 calls per minute. Wait the number of seconds shown, then try again.

## Continue learning

- [Approvals](/core-concepts/approvals)
- [Plans, credits, and usage](/billing/plans-credits-and-usage)

Source: https://docs.aiagent.app/guides/connect-claude-or-chatgpt/index.mdx
