Give OpenCode a checklist that outlasts the model you’re on.

OpenCode runs on whatever model you point it at. Hutch keeps the work as records, so a long job can span sessions, and models, without starting over.

  1. 01

    Switch models mid-job. The checklist lives in Hutch, not in one model’s context.

  2. 02

    Big jobs span sessions. Each session queries what’s left and starts there.

  3. 03

    Configured once. Add Hutch to your global opencode.json and every project has it.

CONNECT IN ONE PROMPT

Paste this into OpenCode. It adds Hutch to ~/.config/opencode/opencode.json and runs opencode mcp auth hutch. In the browser, choose Read + write and click Approve.

Connect Hutch (hutchdb.com) to OpenCode as an MCP server.

URL: https://app.hutchdb.com/api/mcp

Transport: remote streamable HTTP

Auth: OAuth (no API key). I'll approve in the browser.

How to do it in OpenCode:

In ~/.config/opencode/opencode.json, add under "mcp": "hutch": {"type":"remote","url":"https://app.hutchdb.com/api/mcp"}

Then run opencode mcp auth hutch.

1. Add the server for my user account, not just this project, so it works everywhere.

2. Start the OAuth login, or tell me exactly what to click if you can't start it yourself.

3. Tell me if I need to restart or reload you. Then call hutch_list_collections to confirm it works.

Full setup ↓

Watch a migration use it

One session maps out a logger migration as a checklist. The next one, on a different model, works through part of it.

opencode / logger-migration6 CALLS
  1. Found 14 files still importing the old logger

    Grepsession 1

  2. Saved one checklist record per file

    Hutchhutch_store_recordssession 1

  3. Checked the checklist for files still open

    Hutchhutch_query_recordssession 2

  4. Moved 5 files to the new logger

    Editsession 2

  5. Ran the type check: clean

    Bashsession 2

  6. Marked 5 files done

    Hutchhutch_set_record_statussession 2

hutch / logger-migrationTABLE
Example: the migration checklist after the second session
filecallsstatus
api/routes.ts12 callsdone
api/auth.ts7 callsdone
jobs/sync.ts5 callsdone
jobs/billing.ts4 callsdone
lib/cache.ts2 callsdone

14 records · 5 done, 9 open

Where a long job lives between sessions

A migration or a cleanup can take a dozen sessions. Hutch holds the checklist as records with a status, so each session starts from what’s left, whichever model it runs on.

CHECKLISTS / MIGRATIONS / ANY MODEL
OC.01

One record per item

Ask OpenCode to save the work as a checklist: one record per file, call site, or ticket, each with a status.

OC.02

Any model, same list

Start a job on one model and finish it on another. The records stay the same when the model changes.

OC.03

Watch progress in the browser

Open the collection as a kanban to see what’s open, in progress, and done. Move a card and OpenCode sees it on its next query.

Set it up by hand

The prompt above is the fast path: OpenCode makes the changes and walks you through the sign-in. These are the same steps if you’d rather do them yourself. No Hutch account yet? You’ll create one when you approve the sign-in.

~/hutch/install-opencodeSETUP

01Step 1. Configure

Add this to opencode.json (project root or ~/.config/opencode/opencode.json):

JSON
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "hutch": {
      "type": "remote",
      "url": "https://app.hutchdb.com/api/mcp"
    }
  }
}

02Step 2. Authenticate

Run:

SHELL
opencode mcp auth hutch

Optional: OpenCode also prompts on first use. Either way, sign in to Hutch in the browser, choose Read + write, and click Approve.

03Step 3. Try it

In an OpenCode session:

  • >"Store this article in my Hutch reading-list collection."
  • >"Save the bugs we just discussed to a "tickets" collection in Hutch."
  • >"What collections do I have in Hutch?"
  • >"Find my notes about caching in Hutch."

Before you ask

FAQ.01

Does it matter which model I use?

Any model that can call tools works. Hutch is an MCP server, and OpenCode hands its tools to whichever model you’ve configured. Records saved under one model are there for the next.

FAQ.02

Global or per-project config?

Either. Put Hutch in ~/.config/opencode/opencode.json for every project, or in opencode.json at a project root for just that one.

FAQ.03

Do I have to run opencode mcp auth?

No. OpenCode also asks you to sign in the first time it uses Hutch. Either way, sign in in your browser, choose Read + write, and click Approve.

FAQ.04

Can my team see it?

Yes. Invite teammates to your Hutch org and they get the same collections in the browser, no MCP required.

Give OpenCode an app database