# Antigravity CLI

Use Producer Pal with Google's command line coding assistant.

::: warning Best with a subscription

Antigravity CLI works best with a
[Google AI Pro subscription](https://one.google.com/about/google-ai-plans/).
Without one, you'll hit Google's usage limits quickly. Consider
[Claude Code](./claude-code) for an alternative CLI experience.

:::

If you feel comfortable with the command line, this is an option for using
Producer Pal. Also consider [Google Antigravity](./antigravity), Google's
desktop agent app, or using Gemini with Producer Pal's
[built-in chat UI](./api-keys#gemini) (but probably via OpenRouter as noted on
that page).

::: tip Two ways in

The steps below register Producer Pal's tools natively over MCP. The portable
[Agent Skill](/guide/skills) is the other way: it drives the
[REST API](/guide/rest-api) instead, so the agent picks its own
[notation](/features/midi-notation) and toolset per request without moving your
Chat UI or other MCP clients off theirs. Both reach the same tools — pick either
one, or install both.

:::

## Requirements

<div class="download-band download-band-compact">
  <div class="download-actions">
    <a class="download-btn download-btn-primary" href="https://github.com/adamjmurray/producer-pal/releases/latest/download/Producer_Pal.amxd">
      <span class="download-btn-label">Download Max for Live Device</span>
      <span class="download-btn-sub">Producer_Pal.amxd — for Ableton Live</span>
    </a>
  </div>
</div>

- [Ableton Live 12.3+](https://www.ableton.com/live/) with
  [Max for Live](https://www.ableton.com/live/max-for-live/). Live 12.4 or later
  is recommended. On Live 12.3 these don't work:
  - writing clip automation (reading and clearing it still work)
  - loading a sample into Simpler
  - the [Library](/features/tools#ppal-library) tool (searching your library and
    listing plug-ins)
  - finding a preset by name outside a device's own presets (packs' drum kits,
    Sounds racks, custom folders)
  - opening a plug-in's editor window
  - [full control of a plug-in](/guide/plugins), to reach all its parameters

  Use the version of Max bundled with Live, or make sure your standalone Max is
  up to date.

- [Node.js 20+](https://nodejs.org/en/download)
- [Antigravity CLI](https://antigravity.google/download#antigravity-cli)
  (requires Google account)

## Installation Steps

No need to install the Producer Pal device yourself: in the last step, the AI
sets up Live for you.

::: details Or install the device yourself

Download
[Producer_Pal.amxd](https://github.com/adamjmurray/producer-pal/releases/latest/download/Producer_Pal.amxd),
the Producer Pal Max for Live device.

Open **User Library** (under Places) in Live's browser, go to **Presets → MIDI
Effects → Max MIDI Effect**, and drag `Producer_Pal.amxd` into that folder:

<img src="/img/install-amxd-to-user-library.png" alt="Producer_Pal.amxd in Live's browser, in User Library → Presets → MIDI Effects → Max MIDI Effect" width="300"/>

Drag it from the Max MIDI Effect folder onto a MIDI track:

<img src="/img/device-main-tab.png" alt="Producer Pal device running in Ableton Live" width="375"/>

_It should display "Producer Pal Running" or something isn't working._

Then finish the installation: click **Finish installation…** on the device (or
**Open Chat UI**, then **Settings → Installation**), and click **Install** there
to add the remote script (clip automation, undo, plug-ins).

**Restart Live**, then choose **Producer Pal** as a Control Surface in
**Settings → Tempo & MIDI**, with Input and Output left as **None**.

More in [Finish the Installation](/installation#finish-the-installation).

:::

### 1. Configure Antigravity CLI

Add Producer Pal to `~/.gemini/config/mcp_config.json`. The
[Google Antigravity](./antigravity) app reads the same file, so this sets up
both.

::: warning Still using the deprecated Gemini CLI?

Edit `~/.gemini/settings.json` instead, and use `httpUrl` in place of
`serverUrl` for the HTTP option.

:::

**Option A: With npx (recommended).** Allows flexible startup order and
auto-reconnection:

```json
{
  "mcpServers": {
    "producer-pal": {
      "command": "npx",
      "args": ["-y", "producer-pal@latest"]
    }
  }
}
```

::: tip Scripting or building against Producer Pal?

If you're using MCP and will have the agent **write code that generates or
parses** Producer Pal data (building MIDI programmatically, or piping tool
output through JSON tooling), add `--format json` and `--notation midi-json`:

```json
{
  "mcpServers": {
    "producer-pal": {
      "command": "npx",
      "args": [
        "-y",
        "producer-pal@latest",
        "--format",
        "json",
        "--notation",
        "midi-json"
      ]
    }
  }
}
```

`--format json` returns standard JSON instead of the token-optimized compact
form, and `midi-json` represents notes as a JSON array the agent can generate
and read directly.

For a **normal music-making conversation**, keep the defaults (compact output,
bar|beat notation) — they use fewer tokens and the agent reads them fine.

Both apply to this client only. The device's Setup tab, the chat UI, and any
other connected clients keep their own settings.

:::

::: tip Only need some of the tools?

Narrow the toolset and every conversation gets smaller:

```json
{
  "mcpServers": {
    "producer-pal": {
      "command": "npx",
      "args": ["-y", "producer-pal@latest", "--tools", "core,clip,track"]
    }
  }
}
```

`--tools` keeps only what you list; `--disable-tools` drops what you list. Both
take tool names (`read-clip` or `ppal-read-clip`) and group names: `core`,
`session`, `actions`, `live-set`, `track`, `scene`, `clip`, `device`,
`advanced`, and `read-only`. Run `npx producer-pal@latest --list-tools` to print
the groups plus the tools the running device currently offers.

Withholding a tool also drops the part of the
[Producer Pal Skills](/features#skills) that teaches it, so you stop paying for
the tool's schema _and_ its guidance in every conversation. `--tools read-only`
cuts the skills text by more than half.

Unlike the other flags, this one is per client: the [Chat UI](/guide/chat-ui)
and your other MCP clients keep the full toolset. `ppal-connect` is always kept,
since it is how the AI connects and receives the skills.

One wrinkle with `--tools`: it keeps what you list by withholding everything
else, and "everything else" is the tool list this copy of `npx producer-pal`
knows, so a tool added in a newer Producer Pal stays enabled until you update.
`--disable-tools` names tools directly, so it can withhold a newer tool even
from an older copy; only its _group_ names are limited to the ones above.

:::

**Option B: Direct HTTP.** Requires the device running in Live first (install it
yourself, see above), no auto-reconnection:

```json
{
  "mcpServers": {
    "producer-pal": {
      "serverUrl": "http://localhost:3350/mcp"
    }
  }
}
```

### 2. Start Antigravity CLI

Run `agy` in an empty folder (so it can focus on Producer Pal instead of coding)

### 3. Verify Tools

Run `/mcp` in the Antigravity CLI to confirm the Producer Pal server is
connected.

### 4. Start Using Producer Pal

With Live open, start a conversation with "connect to ableton". Allow Producer
Pal tools when Antigravity tries to use them.

The first time, the AI sets up Live for you:

1. It installs the [Producer Pal remote script](/guide/remote-script) and the
   Producer Pal device into your User Library.
2. **Restart Live**, then choose **Producer Pal** as a Control Surface in
**Settings → Tempo & MIDI**, with Input and Output left as **None**.
3. Tell the AI when you're done. It adds the Producer Pal device to your Live
   Set (it asks first).

Don't want to restart Live yet? Drag Producer Pal from your User Library
(**Presets → MIDI Effects → Max MIDI Effect**) onto a MIDI track instead, and
connect right away.

## Check It Works

Once connected, the AI confirms it can see your Live Set. Try a first request
that doesn't change anything:

> What tracks are in my Live Set?

It should list your tracks. If it can't connect or gets something wrong, see
[Troubleshooting](#troubleshooting) below.

## Troubleshooting

If it doesn't work, see the [Troubleshooting Guide](/support/troubleshooting).
