Skip to content

Supabase

Supabase connects OpenCode to Supabase: account login, Management API tools, bundled Supabase agent skills, and guided Supabase MCP setup.

Key features

FeatureDescription
Account loginRun /supabase and approve Supabase in your browser
Management API toolsList organizations, list regions, create projects
Bundled agent skillssupabase, supabase-postgres-best-practices, and opencode-supabase-guide installed by default
Guided MCP setupConnect a project to Supabase MCP with step-by-step guidance

Quickstart

Requires OpenCode >= 1.17.4.

opencode plugin opencode-supabase

Open opencode in your project, then run:

/supabase

Approve Supabase in your browser. Back in OpenCode, start simple:

List my Supabase projects

From there you can ask OpenCode to list organizations, list regions, create projects, or connect a project to Supabase MCP.

Supabase MCP

MCP is optional. Use it when you want project-scoped database, docs, advisor, and management tools inside OpenCode.

After /supabase, ask:

Connect this project to Supabase MCP

OpenCode opens Supabase Studio so you can choose permissions and MCP parameters. Copy the generated OpenCode prompt from Studio, then switch OpenCode to Build mode and paste that prompt into OpenCode — the plugin knows how to handle the Studio prompt and guide the config update.

After the config is added:

  1. Close OpenCode or exit the current session.
  2. Run opencode mcp auth supabase.
  3. Complete OAuth in the browser.
  4. Start OpenCode again.

Bundled skills

Installed by default — no separate skills setup is needed:

  • supabase
  • supabase-postgres-best-practices
  • opencode-supabase-guide

Reference