Whimsical Logo

Brand
Get all logo versions.
Download
IntegrationsOpenCode
v1

OpenCode

Diagram your codebase from the terminal

OpenCode

OpenCode is the open source coding agent for your terminal and desktop. Connect it to Whimsical and it can turn what it reads in your code into diagrams: an architecture overview of a repo, a flowchart of your API endpoints, or a sequence diagram of a sign-in flow. You get an editable board your team can open and change, instead of a wall of text in your terminal.

What you can do

  • Explain a repo at a glance. Ask OpenCode to draw the project’s architecture, so new teammates see how the pieces fit before they read the code.
  • Map your API. Turn the endpoints in a repo into a flowchart that shows what calls what.
  • Build from what your team drew. OpenCode can read your Whimsical boards and docs too, so it can work from a wireframe or a spec.
  • Set up once for every project. Add Whimsical globally and it’s there in every repo you open.

Get set up

  1. Install OpenCode and run:
opencode mcp add whimsical --global --url https://mcp.whimsical.com/mcp
  1. Sign in to Whimsical. This opens Whimsical in your browser:
opencode mcp auth whimsical

Leave out --global to add Whimsical to the current project only. You can also sign in from inside OpenCode: run /mcps and select whimsical. Running OpenCode over SSH or in a container? After you sign in, the browser lands on a page that doesn’t load. Copy its address and paste it into OpenCode’s sign-in prompt.

Prompts to try

Draw this repo's architecture as a Whimsical diagram
Document the API endpoints in this repo as a flowchart in Whimsical
Make a Whimsical sequence diagram of how a user signs in to this app

Frequently asked questions

  • Run opencode mcp add whimsical --global --url https://mcp.whimsical.com/mcp, then run opencode mcp auth whimsical to sign in to Whimsical in your browser. You can also sign in from inside OpenCode by running /mcps and selecting whimsical.

  • OpenCode can turn what it reads in your code into editable Whimsical boards, such as architecture diagrams, API flowcharts, and sequence diagrams of sign-in flows. It can also read your existing Whimsical boards and docs, so it can build from a wireframe or spec your team wrote.