AgentsOpenCode MCP

Generate images, PDFs and videos in OpenCode.

Add Orshot to OpenCode, the open-source terminal coding agent, so it can render images, PDFs and video from your templates while it builds.

30 free credits · no credit card · hosted MCP, no local install

OpenCode CLI
opencode mcp add orshot --url https://mcp.orshot.com/mcp
Or paste this config
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "orshot": {
      "type": "remote",
      "url": "https://mcp.orshot.com/mcp",
      "enabled": true
    }
  }
}

Paste into opencode.json.

No client ID to paste — OpenCode sees the 401, registers itself over dynamic client registration and opens your browser. Re-authenticate any time with `opencode mcp auth orshot`.

Full docs
Then just ask

Ask in plain language. OpenCode does the rest.

Once connected, OpenCode can call the Orshot tools directly. You describe the visual you want, it renders it from your template and hands back the links.

  • Render OG images, ad creatives and carousels from a template
  • Resize one design to every social format in a single call
  • Generate certificates, invoices and reports as PDFs
  • Publish the render straight to social, in the same step
See all agent capabilities
You
Render an OG image from the Orshot blog template for this post and wire the URL into the frontmatter.
OpenCode calls the Orshot MCP tools and returns the rendered links.
Generate templates

Describe it. Get a template.

Ask for a design in plain language and get a real, editable Orshot template. Or start from thousands of community templates and make them yours.

Add a discount-badge parameter to my sale-banner template.

Create an Instagram post template with a headline, subtitle and product image.

Agent session
Completed
You

Build a 6-slide Instagram carousel for our Black Friday sale — product-first, brand palette, CTA on slide 6.

Agent
orshot_create_template_design
Template #4821 — 6-slide carousel
Brand fonts + colors pulled from Acme's kitDynamic product / CTA fields on every slide.
Render at scale

One template, every size and format.

Turn any template into images, PDFs or video with your data swapped in, and resize a single design to every social format in one call.

Turn my product template into a short MP4 with the hero video swapped in.

Render the launch template as a 1080×1920 story and a 1200×630 OG image.

Agent session
Completed
You

Render a product banner for every SKU in rows A1–A500 — image, name, sale price, 'Limited' badge.

Agent
orshot_generate_image × 500
500 product banners in 1m 52s
Signed URLs · avg 220 ms per bannerStraight into your CDN for product pages.
Automate with workflows

Put rendering on autopilot.

Wire a sheet, webhook or schedule to a template so fresh visuals get generated on their own, with no dashboard round-trips.

Set up a workflow that renders a fresh OG image whenever I add a blog row in Airtable.

Run my weekly-report workflow and show me the last run's outputs.

Agent session
Completed
You

Set up a workflow: every Monday 9am, render the Weekly Deals template from the newest Google Sheet row and post it to our Slack.

Agent
orshot_list_workflow_nodesorshot_create_workfloworshot_run_workflow
Workflow is live, runs every Monday
Sheet row → render → Slack, no clicks involvedTest run passed · next run scheduled automatically.
Publish to socials

Render and post in one step.

Generate the visual and publish it straight to your connected accounts. Post now, schedule it, or save it as a draft.

Render this post and publish it to Instagram and LinkedIn.

Render the announcement and save it as a draft to all my connected accounts.

Agent session
Completed
You

Render this week's product drop from the Announcement template and publish it to our Instagram and LinkedIn.

Agent
orshot_list_social_accountsorshot_generate_image
Posted to Instagram + LinkedIn
Rendered from the Announcement templateLive now · caption and first comment set.
More setup guides

Connect Orshot to your other tools.

FAQ

Using Orshot with OpenCode

Do I need an API key to use Orshot in OpenCode?

No. OpenCode detects that the Orshot server requires auth, registers itself over dynamic client registration and opens your browser to authorize. If you'd rather use a key, set oauth to false and pass an Orshot workspace API key in the Authorization header.

Where does OpenCode store the Orshot config?

Under the mcp block of your opencode.json, either at the project root or in your global config. Tokens are stored separately in ~/.local/share/opencode/mcp-auth.json.

Can I enable Orshot for only one OpenCode agent?

Yes. Disable it globally with an "orshot*": false entry under tools, then re-enable it under that agent's own tools block. Useful for keeping the tool surface small on agents that never touch visuals.

How do I debug a failed Orshot connection in OpenCode?

Run `opencode mcp debug orshot`. It reports auth status, tests HTTP connectivity and walks the OAuth discovery flow, which is usually enough to spot the problem.

What can OpenCode do with Orshot once connected?

You can ask OpenCode in plain language to render images, PDFs and video from your Orshot templates, resize one design to every social format, and publish the result to social. No image infrastructure to build.

Is the Orshot MCP server free to use?

Connecting is free. Renders draw from your Orshot plan, and every account starts with 30 free credits and no credit card.

Give OpenCode your templates. 30 free credits to try.

No credit card. Connect the hosted MCP server, then let OpenCode render images, PDFs and video from your Orshot templates.