Browse all docs & guides
On this page
AGENT / CLI / API

Connect OpenGen MCP & CLI
to your AI coding agents.

Find an image, video, or audio model, inspect its options and published rates, and generate from the place you already work.

AGENT PROMPT · PASTE INTO YOUR AGENT OR AUTO-READ
Read https://opengen.dev/docs/clients.md and https://opengen.dev/docs/mcp.md.
1. Connect to OpenGen via remote Streamable HTTP MCP at https://opengen.dev/mcp (OAuth DCR + PKCE) or zero-auth discovery at https://opengen.dev/mcp/readonly, or install the portable CLI (@opengen-dev/cli).
2. Run read-only discovery first (balance, find_models, get_model, estimate_cost) before requesting workspace approval for any billable generation.
View raw .md ↗
01

Hosted assistant

Add the gateway’s MCP address in your client. Sign in and choose the workspace that pays. There’s no local installer.

02

Local agent

Use the client’s MCP OAuth support, or OpenGen’s portable CLI with browser login and a private local profile.

03

Your application

Create a separate expiring API key in your workspace. Keep its read/generate permissions limited to the job.

Hosted gateway is live; client verification stays explicit.

Hosted sign-in, workspace billing, and live-verified official routes are live on https://opengen.dev (self-hosted gateways need their own configured identity and provider credentials). Third-party client guides were reviewed 2026-11-03–2026-11-30 from official documentation; live checks through 2026-11-30 verified bounded live image generation and first-party /media PNG delivery (each openai/gpt-image-2, 1K low quality, ~$0.006 settled) in ChatGPT web (with live OAuth refresh-token rotation), Claude web, and Grok Bot web (both with live OAuth refresh-token rotation verified on 484d99f), plus on commit 484d99f bounded live image generation in codex-cli 0.155.1 (with live OAuth refresh-token rotation) and source apps/cli 0.1.2 (with published @opengen-dev/cli 0.1.2 clean install, read-only commands, and logout revocation verified 2026-11-28), live OAuth login and MCP connection/6-tool discovery in Hermes Agent v0.16.0, live OAuth login and MCP connection in Claude Code 2.1.301, and live OAuth browser login and token exchange in Muse Code 1.4.25. Unexercised models and operations, upload/edit flows, post-publish @opengen-dev/cli 0.1.3 install, other clients (including desktop/mobile apps, Grok CLI, hosted Meta Muse, Cursor, OpenClaw, OpenCode, and pi), token refresh in other clients (including OpenGen CLI), and billable runs in other clients remain unverified.

New personal workspaces start with $0 managed credit — model discovery is free. Add workspace credit ↗ or connect your own provider keys when you are ready to generate.

See the support matrix ↓

Ready to use a private reference? Follow the image-to-video walkthrough →

Where do you want to create?

Choose your setup
Hosted assistant

ChatGPT

Add a custom MCP plugin and authorize a paying workspace in your browser.

Live OAuth MCP + generation verified
Hosted assistant

Claude

Use a remote connector, with no local installer or provider credentials.

Live OAuth MCP + generation verified
Local agent

Claude Code

Register an HTTP MCP server, then use the client’s browser authorization.

Live OAuth login + MCP connected
Local agent

Cursor

Preview a URL-only MCP configuration and authorize through Cursor.

Client verification pending
Local agent

Codex

Add a Streamable HTTP server and use OAuth login with read/generate scopes.

Live OAuth MCP + generation verified
Local agent

Muse

Add a Streamable HTTP MCP server in Muse Code with native OAuth.

Live OAuth login verified
Local agent

OpenClaw

Use the client’s MCP settings and browser authorization; verify the connection separately.

Client verification pending
Local agent

Hermes Agent

Register the remote OAuth MCP server with the Hermes CLI or config.yaml.

Live OAuth + 6/6 tools discovered
Local agent

OpenCode

Configure a remote MCP server and complete the client’s OAuth flow.

Client verification pending
Local agent

pi

Use the portable OpenGen CLI; native MCP is not assumed.

Client verification pending
Hosted assistant

Grok Bot

Add OpenGen as a custom Remote HTTPS MCP connector in Grok Bot or Grok CLI.

Live OAuth MCP + generation verified
CLI / API

CLI & API

Use the portable CLI with browser login, or create one scoped workspace API key.

Live browser login + generation verified

What has actually been checked?

Documentation reviewed 2026-11-03–2026-11-30. “Protocol fixtures” means synthetic requests against local code, without a real client, identity provider or generation charge.

OpenGen client support evidence as of 2026-11-30
ClientSetup pathDocumentationTested client / version / date
ChatGPTHosted MCP with OAuthOfficial OpenAI documentation ↗ChatGPT web (2026-11-30): live OAuth DCR + PKCE consent, refresh-token rotation, 6/6 tools discovered, bounded openai/gpt-image-2 1K low-quality generation ($0.00606 settled), first-party /media PNG delivery (?utm_source=chatgpt.com), and MCP App preview card verified
ClaudeRemote connector with OAuthClaude custom connector guide ↗Claude web (2026-11-30): live OAuth DCR + PKCE consent, refresh-token rotation (on 484d99f), 6/6 tools discovered, bounded openai/gpt-image-2 1K low-quality generation ($0.0061 settled), first-party /media PNG delivery, and MCP App preview card verified
Claude CodeRemote HTTP MCP or OpenGen CLIClaude Code MCP documentation ↗Claude Code 2.1.301 (2026-11-30, 484d99f; logout 2026-11-28): live OAuth DCR + PKCE login and Connected MCP check (clean POST /mcp handshake) verified; LLM tool turn and generation pending
CursorStreamable HTTP MCP or OpenGen CLICursor MCP documentation ↗None recorded — unverified
CodexNative MCP OAuth or OpenGen CLIOfficial OpenAI command reference ↗codex-cli 0.155.1 (2026-11-30, 484d99f): live OAuth refresh-token rotation, fresh DCR + PKCE login, 6/6 tools discovered, balance/catalog_get/pricing.list, bounded openai/gpt-image-2 1K low-quality generation ($0.00598 settled), and first-party /media PNG delivery (?utm_source=test) verified
MuseStreamable HTTP MCP (OAuth DCR)Meta AI developer documentation ↗Muse Code 1.4.25 (2026-11-30, 484d99f; local logout and muse.ai inspection 2026-11-29): live OAuth DCR + RFC 8252 ephemeral-port browser login, consent, and token exchange (auth=logged-in) verified; hosted muse.ai has no custom MCP UI
OpenClawStreamable HTTP MCP or OpenGen CLIOpenClaw MCP documentation ↗None recorded — unverified
Hermes AgentHTTP MCP with OAuth or OpenGen CLIHermes MCP documentation ↗Hermes Agent v0.16.0 (2026-11-30, 484d99f): live OAuth 2.1 PKCE login, hermes mcp test opengen (Connected, 6/6 tools discovered), and hermes chat tool registration verified; LLM tool invocation and generation pending
OpenCodeRemote MCP OAuth or OpenGen CLIOpenCode MCP documentation ↗None recorded — unverified
piCLI through the agent’s shellpi project documentation ↗None recorded — unverified
Grok BotCustom Remote HTTPS MCP (OAuth DCR)Grok Bot app documentation ↗Grok Bot web (2026-11-30): live OAuth DCR + MCP connection, refresh-token rotation (on 484d99f), 6/6 tools discovered, balance/catalog_get, bounded openai/gpt-image-2 1K low-quality generation ($0.006 settled), and clickable first-party /media PNG delivery verified
CLI & APIOpenGen browser PKCE login / scoped API keyOpenGen MCP & CLI guide ↗Source apps/cli 0.1.2 at 484d99f (2026-11-30): unauthenticated pricing (178 routes)/catalog, live browser login, bounded openai/gpt-image-2 1K low-quality generate/wait/get/recover ($0.005985 settled), and first-party /media PNG delivery (?utm_source=test) verified; published @opengen-dev/cli 0.1.2 (2026-11-28) clean npm install, login, read-only doctor/balance/catalog search, and logout revocation verified

The OpenGen protocol fixtures cover PKCE/state, workspace consent, permission boundaries, token rotation/revocation and private profiles. They do not certify any third-party client. pi’s documented core has no native MCP; its CLI path is unverified.