# Connect your AI

Your AI works with BitHut through a connector (an MCP server). You add it once; after that the AI can put projects online, read their logs and fix them. This page lists the steps for each AI. The same steps, with copy buttons, are on [bithut.app/connect](/connect) and in the cabinet at [app.bithut.app/connect](https://app.bithut.app/connect).

BitHut's address for AI apps is `https://api.bithut.app/mcp`.

Most of these AIs can add BitHut by themselves: paste the sentence below into the AI, and it runs the command or edits its settings file. Then you sign in to BitHut in your browser and press **Allow**.

## Claude Code

Paste this into Claude Code:

```
Add the BitHut MCP server for me: run “claude mcp add --transport http bithut https://api.bithut.app/mcp”.
```

Or run the command yourself in a terminal:

```
claude mcp add --transport http bithut https://api.bithut.app/mcp
```

Then restart Claude Code, type `/mcp`, pick **bithut** and sign in. Sign in to BitHut in your browser and press **Allow**.

Already added BitHut in the Claude app, and you sign in to Claude Code with the same Claude account? Then BitHut is already in Claude Code: Claude Code uses your Claude connectors.

## Codex

Paste this into Codex, and it connects BitHut by itself:

```
Connect the BitHut MCP server for me: run “codex mcp add bithut --url https://api.bithut.app/mcp”, then “codex mcp login bithut”. The address must be exactly https://api.bithut.app/mcp: if a backslash got into it when pasting, remove it before adding.
```

Or run the two commands yourself:

```
codex mcp add bithut --url https://api.bithut.app/mcp
codex mcp login bithut
```

The second one opens a page in your browser: sign in to BitHut and press **Allow**.

## Google Antigravity

Antigravity is Google's app for building with Gemini. Paste this into its agent:

```
Add the BitHut MCP server for me: in ~/.gemini/config/mcp_config.json, under “mcpServers”, add "bithut": {"serverUrl": "https://api.bithut.app/mcp"}.
```

Or add it yourself:

1. In the Antigravity editor, click **…** at the top of the agent panel, then **MCP Servers**, **Manage MCP Servers**, **View raw config**.
2. Under `"mcpServers"`, add this line and save the file:

   ```
   "bithut": {"serverUrl": "https://api.bithut.app/mcp"}
   ```

3. When Antigravity asks, sign in to BitHut and press **Allow**.

## Cursor

Paste this into Cursor's chat:

```
Add the BitHut MCP server to Cursor for me: in ~/.cursor/mcp.json, under “mcpServers”, add "bithut": {"url": "https://api.bithut.app/mcp"}.
```

Then open Cursor Settings, find BitHut among the MCP servers, sign in and press **Allow**.

## VS Code

For VS Code with Copilot:

1. Open the Command Palette (Ctrl+Shift+P, on a Mac ⇧⌘P) and run **MCP: Add Server**.
2. Choose **HTTP**, paste `https://api.bithut.app/mcp` and name the server `bithut`.
3. When VS Code asks, sign in to BitHut and press **Allow**.

## Another AI

Any AI app that supports remote MCP servers can use BitHut:

1. Find where your AI app adds MCP servers. It may be called MCP servers, connectors or tools.
2. Add a remote (HTTP) server with the address `https://api.bithut.app/mcp`.
3. If it asks how to sign in, choose OAuth. Sign in to BitHut and press **Allow**.

Can’t find the setting? Ask your AI: “How do I add a remote MCP server here?”

## Chat apps: Claude, ChatGPT, Gemini

The chat apps can also connect BitHut. They usually work with what you write in the chat, not with a project folder on your computer, so they suit small projects made right in the chat. For a project in a folder, use one of the tools above.

**Claude** (claude.ai or the Claude app): open Customize, then Connectors, click **+ Add**, then **Add custom connector**, name it BitHut and paste the address. Press **Connect**, sign in to BitHut and press **Allow**. On Claude's free plan you can have one custom connector. On Team and Enterprise plans an owner or admin adds BitHut for the organization first.

**ChatGPT** (chatgpt.com on a computer, not in the phone app): open Plugins, press **+** and choose **Add custom MCP server**. Name it BitHut, paste the address as the Server URL and choose OAuth. Press **I understand and want to continue**, then **Create as a plugin**, and install it. Sign in to BitHut and press **Allow**. In a new chat, type @ and pick BitHut. On Business, Enterprise and Edu plans an admin may need to allow it.

**Gemini** (gemini.google.com on a computer): open Settings, then Connected Apps, paste the address under Custom apps, click Next, sign in to BitHut and press **Allow**. Google allows this only for personal accounts in the US, age 18 and over, in English. This is the Gemini chat; for Antigravity see [above](#google-antigravity).

## Check it works

Ask your AI: “Show my BitHut projects.” If it answers, you are connected. On a new account the list is empty.

## One connection, one BitHut account

A connection works with the BitHut account you signed in with when you connected it. If your AI already has BitHut with another account, your new account will not see it. To switch:

1. Remove BitHut from your AI's MCP servers or connectors. In Claude Code: `claude mcp remove bithut`. In Claude: Customize → Connectors, find BitHut, choose Remove.
2. Connect it again and sign in to the account you want.

Your projects in the other account stay as they are.
