> ## Documentation index
> Fetch the complete documentation index at: https://tryjuice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Build with your agent

> Drop-in plugin for Claude Code, Codex and other coding agents: they design with Juice.

Source: https://tryjuice.ai/platform/docs/agents.md

Juice connects over a stateless Streamable HTTP MCP server (`https://api.tryjuice.ai/mcp`) with OAuth 2.1, paired with an open [Agent Plugin](https://agent-plugins.org/) (`plugin.json` + `mcp.json` + `SKILL.md`). Connect once, approve in your browser, and your chat app or coding agent calls Juice directly with no API keys to copy or manage.

## Installation

Pick your AI app or coding agent below. Web and desktop chat apps connect through their Connectors UI (no terminal needed); local coding agents can also install the companion `SKILL.md`.

### Claude (Web, Desktop & Cloud Code)

Add Juice to Claude on the web and desktop.

[Download Claude plugin](https://tryjuice.ai/platform/plugins/juice/juice-claude-plugin.zip)

1. **Download the Claude plugin.** Click \*\*Download Claude plugin\*\* above.
2. **Upload it to Claude.** In Claude, go to \*\*Plugins\*\*, click \*\*Add\*\*, choose \*\*Upload plugin\*\*, pick the file and click \*\*Upload\*\* at the bottom.
3. **Turn on Juice.** Click \*\*Finish setup\*\*, then \*\*Add…\*\* next to juice. Confirm with \*\*Continue\*\* and \*\*Add\*\*.
4. **Sign in.** Click \*\*Connect\*\* and sign in to Juice in the browser window that opens.
5. **Try it.** Ask Claude to design a landing page with Juice.

Images may not load in Claude on the web or in the Claude app. To fix it, open **Settings → Capabilities → Additional allowed domains** in Claude and add `*.tryjuice.ai`.

### ChatGPT

Add Juice to ChatGPT.

[Download ChatGPT plugin](https://tryjuice.ai/platform/plugins/juice/juice-plugin.zip)

1. **Download the ChatGPT plugin.** Click \*\*Download ChatGPT plugin\*\* above.
2. **Upload it to ChatGPT.** In ChatGPT, go to \*\*Plugins\*\*, click \*\*Add\*\*, choose \*\*Upload plugin archive\*\* and pick the file.
3. **Install and sign in.** Click \*\*Install plugin\*\*, then sign in to Juice when asked.
4. **Try it.** Ask ChatGPT to design a landing page with Juice.

### CLI Agents (Claude Code, Codex, Cursor, Antigravity & more)

Paste this into Claude Code, Codex, Cursor, Antigravity or any other coding agent.

```text
Install the Juice plugin from https://tryjuice.ai/platform/plugins/juice/juice-plugin.zip: download and unzip the archive, connect the Juice MCP server it configures (OAuth signs me in through my browser), and install the included SKILL.md into your skills folder. Whenever you design anything visual (a website, app screens, an email or slides), get the design from Juice first and build from it.
```

### Claude Code

Register Juice in your terminal and save the skill locally.

```bash
claude mcp add --transport http -s user juice https://api.tryjuice.ai/mcp

mkdir -p ~/.claude/skills/juice
curl -fsSL https://tryjuice.ai/platform/skills/juice/SKILL.md -o ~/.claude/skills/juice/SKILL.md
```

Start a new session, then run /mcp -> juice -> Authenticate to sign in.

### Codex

Add Juice, sign in through your browser, and save the skill.

```bash
codex mcp add juice --url https://api.tryjuice.ai/mcp
codex mcp login juice

mkdir -p ~/.agents/skills/juice
curl -fsSL https://tryjuice.ai/platform/skills/juice/SKILL.md -o ~/.agents/skills/juice/SKILL.md
```

### Antigravity

Add Juice to ~/.gemini/antigravity/mcp\_config.json and save the skill.

```json
{
  "mcpServers": {
    "juice": {
      "serverUrl": "https://api.tryjuice.ai/mcp"
    }
  }
}
```

Skill file: curl -fsSL https://tryjuice.ai/platform/skills/juice/SKILL.md --create-dirs -o ~/.agents/skills/juice/SKILL.md

### Cursor

Install with one click, or add Juice to ~/.cursor/mcp.json.

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=juice&config=eyJ1cmwiOiJodHRwczovL2FwaS50cnlqdWljZS5haS9tY3AifQ%3D%3D)

```json
{
  "mcpServers": {
    "juice": {
      "url": "https://api.tryjuice.ai/mcp"
    }
  }
}
```

Optional skill: curl -fsSL https://tryjuice.ai/platform/skills/juice/SKILL.md --create-dirs -o ~/.cursor/skills/juice/SKILL.md

### Headless environments, containers & CI (API key)

No browser available? Authenticate with a Juice API key header or environment variable.

```json
{
  "mcpServers": {
    "juice": {
      "type": "http",
      "url": "https://api.tryjuice.ai/mcp",
      "headers": {
        "Authorization": "Bearer ms_live_..."
      }
    }
  }
}
```

Or export JUICE\_API\_KEY='ms\_live\_...' in your CI secrets.

### Or paste into a local coding agent

For local coding agents with shell and browser access (not cloud containers or web chat apps), you can paste this setup prompt instead:

*Copy to your local agent*

```text
Install the Juice plugin (skill + MCP): connect the Juice Streamable HTTP MCP server at https://api.tryjuice.ai/mcp (OAuth signs me in through my browser) and save https://tryjuice.ai/platform/skills/juice/SKILL.md as juice/SKILL.md in your skills folder. Whenever you design anything visual (a website, app screens, an email or slides), get the design from Juice first and build from it.
```

Plugin files follow the [agent-plugins.org](https://agent-plugins.org/) 1.0 specification: download the portable archive at [juice-plugin.zip](https://tryjuice.ai/platform/plugins/juice/juice-plugin.zip), inspect [plugin.json](https://tryjuice.ai/platform/plugins/juice/plugin.json) and [mcp.json](https://tryjuice.ai/platform/plugins/juice/mcp.json), or read [tryjuice.ai/platform/skills/juice/SKILL.md](https://tryjuice.ai/platform/skills/juice/SKILL.md).

### Verify it works

Once connected, send this prompt to trigger browser OAuth (if you haven’t signed in yet) and confirm Juice is ready:

*Verify connection*

```text
Check my Juice account with get_account, then design a landing page for an independent specialty coffee roaster called Sunstone Coffee.
```

## Sign in with OAuth

The first time your agent connects to `https://api.tryjuice.ai/mcp`, your browser opens Juice’s OAuth screen so you can sign in and approve access in one click. You can inspect and disconnect authorized agents anytime under [API keys](https://tryjuice.ai/platform/dashboard/keys) in the [dashboard](https://tryjuice.ai/platform/dashboard).

Running in a headless CI environment without a browser? Pass an API key as `Authorization: Bearer ms_live_...` to `https://api.tryjuice.ai/mcp`, or export `JUICE_API_KEY` for shell scripts:

```bash
export JUICE_API_KEY='ms_live_...'
```

## MCP tools

The stateless Streamable HTTP server at `https://api.tryjuice.ai/mcp` exposes the full Juice API surface as typed tools:

- `create_generation` and `wait_for_generation`: start one or up to four design directions from a brief (with optional `images` and `reference_ids`) and wait cleanly until completion.
- `get_generation_download_url`, `get_generation_html`, `get_generation` and `list_generations`: get a private download URL for the standalone HTML (so agents with shell access can download it directly without rewriting it), retrieve inline HTML, inspect progress and hosted images, or browse recent generations.
- `share_generation`, `get_generation_share` and `unshare_generation`: create, read, or revoke public share links.
- `cancel_generation`, `delete_generation`, `list_models` and `get_account`: cancel in-flight jobs, delete stored designs, list models, and check available credits.

## Example prompts

Ask your agent to design with Juice and give it your real facts: it builds straight from Juice’s design.

*Build a site*

```text
Use Juice to design our landing page, then build it into this project. Ask me first who it is for, what it must say and anything it must include.
```

*Design app screens*

```text
Use Juice to design the onboarding for this app, then build every screen in that same look with our components.
```

*Design anything*

```text
Use Juice to set the design for our launch, then make the announcement email, a five-slide deck and a square social post in that same design.
```

*See directions*

```text
Use Juice to make three different directions for our pricing page and show me all three.
```

## Docs for agents

- [llms.txt](https://tryjuice.ai/llms.txt): every page with a one-line summary. Start here.
- [llms-full.txt](https://tryjuice.ai/llms-full.txt): every page in one file.
- Any page as Markdown: add `.md` to its address, like [tryjuice.ai/platform/docs/generations.md](https://tryjuice.ai/platform/docs/generations.md).
- [openapi.json](https://api.tryjuice.ai/v1/openapi.json): the whole API. See [OpenAPI](https://tryjuice.ai/platform/docs/openapi.md).

## Common issues

### Images not loading in Claude Artifacts

Claude’s sandbox blocks outbound network requests by default, which prevents it from downloading designs and images directly. In Claude, open **Settings → Capabilities → Additional allowed domains** and add `*.tryjuice.ai` so Claude can download the HTML and bundle images cleanly into Artifacts.

### Codex / ChatGPT reports “missing required issuer”

Codex CLI versions `0.143.0`–`0.146.0` have an OAuth callback bug that drops the `iss` parameter before validation. Update Codex to `0.147.0+` (`codex update`) and run `which -a codex` to make sure an older standalone CLI binary isn’t shadowing the app on your `PATH`, then run `codex mcp login juice` again.

### Claude Desktop Cloud or “No MCP server named juice”

Claude Code loads its MCP server list when a session starts, and cloud containers cannot open a browser on your machine for OAuth. In Claude.ai, Claude Desktop, or Claude Code Cloud, add `https://api.tryjuice.ai/mcp` under **Settings → Connectors → Add custom connector** instead of running CLI commands inside a chat. In local Claude Code, run `claude mcp add`, start a new session, then run `/mcp`.

### The agent hasn’t signed in yet

Run `/mcp` in local Claude Code or `codex mcp login juice` in Codex to open the Juice OAuth window in your browser and approve access.

### The agent isn’t using the skill

Ask it to “use Juice”. Still nothing? Re-run the installer above so `SKILL.md` sits inside your agent’s skills folder alongside the `juice` MCP server, then restart the agent.

### Calls get 401 or 403

`401`: the OAuth grant or `JUICE_API_KEY` was revoked or expired — reconnect your agent via OAuth. `403 PLATFORM_ACCESS_DISABLED`: the Juice team turned off your API access. See [Authentication](https://tryjuice.ai/platform/docs/authentication.md).
