Use TypeUI with OpenCode
Follow this guide to connect OpenCode to TypeUI while it edits UI in your project.
Open OpenCode
Open the project where you want OpenCode to build UI.
Add TypeUI to OpenCode
Create or update opencode.json in your project root:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"typeui": {
"type": "remote",
"url": "https://mcp.typeui.sh/mcp",
"enabled": true
}
}
}
If OpenCode asks you to authenticate, sign in with TypeUI. You can also start authentication manually:
opencode mcp auth typeui
Choose a theme
Browse the Design Skills page to compare available themes.
After you choose a theme, ask OpenCode to use it:
I like the Bento style. Let's use it.
Start building UI
Build me a checkout page.
Tell OpenCode what to build. TypeUI helps it choose the right style and layout.
Review and refine
Run your app and review the changes. Ask OpenCode for targeted improvements:
I don't like this pricing section, give me more variations.
TypeUI will now create three pricing variations so you can compare different layouts before choosing one.
After you choose a direction, tell OpenCode which one to use:
I like the comparison one. Let's use it.
Once OpenCode is connected to TypeUI, you can keep working in the same flow: choose a theme, ask for the interface you need, review the generated variations, and tell OpenCode which direction to continue with.









