Brickworks

Connect your AI

Connect Gemini CLI

Add Brickworks to Gemini CLI, sign in once, and it builds in your open Brickworks tab while you watch.

Before you start

  • Who can add it: Paid Gemini Code Assist plans. Checked on 2 November 2026.
  • In Brickworks: an account, and the assistant on: Tools › Settings…, Assistant (AI), Show the assistant. Or open the app with it on.

Add Brickworks

In Brickworks, Connect your AI at the foot of the assistant panel (or Tools › Connect your AI…) does this for you: choose Gemini CLI under Your AI and press Connect Gemini CLI. It copies this command. Or copy it here:

gemini mcp add --transport http brickworks https://brickworks.diy/api/mcp
  1. Run the command in a terminal.
  2. In Gemini CLI, type /mcp auth brickworks.

Sign in

Gemini CLI sends you to Brickworks to sign in, with a code we email you, or straight on if this browser is signed in already. Brickworks asks Let Gemini CLI build in Brickworks? Press Allow.

The Brickworks page your AI app opens, here for Claude: signed in as you@example.com, it asks Let Claude build in Brickworks?, lists what it will be able to do, and has Allow and Cancel buttons.The Brickworks page your AI app opens, here for Claude: signed in as you@example.com, it asks Let Claude build in Brickworks?, lists what it will be able to do, and has Allow and Cancel buttons.
The one question Brickworks asks, once for each app.

That is once for Gemini CLI: it stays connected, for every Brickworks tab you open, until you disconnect it.

Build

With Brickworks open and signed in, ask Gemini CLI: "build a small red house in Brickworks". It builds in your open tab, on whichever device it is, and you watch every step. Each change it makes is one step of Undo.

With several tabs open, start the chat from the one you want: New chat for this tab, in Account and under Connect your AI, copies the command that starts Gemini CLI on a chat for that tab, to run in a terminal. More in Several tabs, several chats.

If something is wrong

  • Gemini CLI will not let you add it. Which of its plans can add it is for Gemini CLI to say, and may have changed since we checked. Otherwise another AI app or your own API key designs on any Brickworks plan.
  • Added it before? Connect the Brickworks already in Gemini CLI rather than adding it again: adding it again sets up a new one, with its tool permissions to choose again.
  • A new Brickworks tool is missing. Start a new chat. Still missing, connect Brickworks again in Gemini CLI.
  • It built in the wrong tab. Start each chat from its tab, as above: a chat stays in the tab it chose.
  • To stop it, press Disconnect beside it in your Settings, under Assistants. Connecting again asks you to Allow again.

More in Troubleshooting.

Something missing, or not as the app does it? Say so on GitHub, or see the questions people ask.

↑↓ to chooseEnter to openEsc to close