---
title: Connect OpenCode to Blossom
url: /docs/ai-agents/connect-ai-apps/opencode/
canonical_url: https://blossom88.com/docs/ai-agents/connect-ai-apps/opencode/
markdown_url: https://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 and choose your Account. Select
**Read only** to inspect or **Full access** to deploy. 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"}}}
```

## Example prompts

Debug and Status work with **Read only** access. To deploy or create a database,
choose **Full access** and [add a Location](/docs/learn/getting-started/choose-your-cloud/#connect-your-provider) if you don’t have one yet.


- **Deploy** — Preview the FastAPI Quickstart on Blossom and, once I approve the plan, deploy it and send me the live URL.
- **Debug** — Find my latest failed deploy, use the logs to explain what went wrong, and suggest a fix.
- **Database** — Set up managed PostgreSQL for my App after I approve the Location and size.
- **Status** — Tell me which Blossom Apps are healthy, what deployed recently, and which errors need attention.



## What You Get

Preview, deploy, and check your Apps from the same chat. For a guided first
deploy, follow [Deploy from Chat](/docs/learn/getting-started/chat/).
