Skip to Content
AI agents

Connect OpenCode

Connect OpenCode to Sell so it can search the Sell docs and check your store data while it writes code.

All agents
OpenCode

OpenCode is an open-source coding agent for the terminal.

Quick start

Add the config

Merge this into opencode.json (or opencode.jsonc) in your project root:

{
  "mcp": {
    "servers": {
      "sellapp": {
        "type": "remote",
        "url": "https://sell.app/mcp"
      }
    }
  }
}

Start sign-in

Run this command:

opencode mcp auth sellapp

Sign in to Sell

When OpenCode opens your browser, sign in to Sell if asked.

Approve access

On the Connect to Sell MCP screen, check that it names OpenCode and that Signed in as shows the Sell account you want, then choose Authorize MCP. If the screen says SellApp can't confirm its name, that's expected for a tool on your computer. OpenCode can then reach every store you can open, limited by your role in each.

Try a prompt

Ask OpenCode:

List my Sell stores, then find the API operation that lists products and show me one product.

It worked when opencode mcp list shows sellapp as connected.

Example prompts

Create a checkout for my Design kit product with the Node SDK.
Write a webhook receiver that verifies Sell signatures and saves each event before it replies.
Which API operation refunds an order, and what does it need?
Search the Sell docs for how pagination works, then list every order in my store.

The code your agent writes calls the Sell API with an API key, not with this connection. Create a key as shown in Authentication and keep it in an environment variable such as SELLAPP_API_KEY. Sell MCP does not accept API keys, and the REST API does not accept the MCP sign-in.

What you can do

While it writes code that uses the Sell API and SDKs, OpenCode can search the Sell docs and API reference, read your store data to check its work, and change your store. Most changes show you a preview and wait for your approval. Changes are real; there's no test store. Your role in each store limits what OpenCode can do. You can disconnect it any time under MCP access in your Sell account.

The Sell CLI can also install a ready-made Sell skill for your coding agent.

Troubleshoot

Use Sell MCP covers more errors.

FAQ

Other agents

On this page