---
title: Connect OpenCode to Blossom
url: "/docs/ai-agents/connect-ai-apps/opencode/"
canonical_url: https://docs.blossom88.com/docs/ai-agents/connect-ai-apps/opencode/
markdown_url: https://docs.blossom88.com/docs/ai-agents/connect-ai-apps/opencode.md
summary: Connect OpenCode to your Blossom Account and preview what your Git repository
  would deploy.
categories:
- learn
- ai
---

# Connect OpenCode to Blossom

## Connect from your repository

In OpenCode 2, run these commands from your Git checkout:

    opencode mcp add blossom --url https://mcp.blossom88.com/mcp
    opencode mcp auth blossom

When your browser opens, sign in to Blossom, choose your Account, and select
**Read only** to preview. Run `opencode mcp list` to check that Blossom shows
as connected. To use the connection across projects, add `--global` to the
first command.

**Using OpenCode 1?** Add this entry to your project's opencode.json instead,
then run `opencode mcp auth blossom`:

```json
{"mcp": {"blossom": {"type": "remote", "url": "https://mcp.blossom88.com/mcp"}}}
```

## What You Get

Start OpenCode in your repository and ask:


> **Ask your AI agent:** Which Blossom Account am I connected to? Preview this repository and show me
> which Services would run. Stop at the preview.



You get the Account name and a deployment plan without creating an App.
The equivalent CLI commands are `blossom whoami` and
`blossom app_plan:preview`. When you're ready to deploy, connect with **Full
access** and follow [Deploy from Chat](/docs/ai-agents/first-blossom-chat/).
