Open-source alternative to Paper.design: a multiplayer design canvas where humans and coding agents work together.
오픈소스 Paper.design 대안
Open-source alternative to Paper.design: a multiplayer design canvas where humans and coding agents work together.
READMEGitHub의 doop-design/doop
Doop is the open-source alternative to Paper.design — a multiplayer
design canvas for humans and AI agents. Every design lives on a shareable Canvas
(/c/<id>) holding Frames — artboards that render real HTML in sandboxed iframes. People edit
in the browser; AI agents edit through the built-in MCP server, streaming their designs in
live. Everyone sees everything as it happens: cursors, presence, frame edits, agent status, and an
activity feed.
Think of it as Claude Design for whichever agent you already use: Claude Code, Codex, ChatGPT, Cursor, OpenCode or any other MCP client designs on the same canvas, and the built-in Doop Agent runs on GPT, Claude, Gemini, DeepSeek, Kimi or Qwen models (every agent and model).
ANTHROPIC_API_KEY for as many
free tasks as RESIDENT_TASK_LIMIT grants (none by default) (setup); the
first-canvas welcome performance is scripted and runs without any of it.get_canvas, manage them with set_canvas_pages (passing the original list as
expectedPages to protect collaborators), and target frames with pageId. Each page can wear
a canvas colour of its own, as in Figma: with nothing selected, the sliders icon on the right
opens the Page panel with its Background swatch (agents: set_page_background); cleared, the
page shows the theme paper again./c/<id>/proto. Agents use the same
data-doop-* attributes plus get_prototype / set_prototype_start.docker compose up, or bun run dev with zero configuration
(embedded Postgres, no external services required).Doop isn't tied to one model vendor. Every agent below designs through the same MCP server, works as the person who connected it, and shows up live on the canvas with its own cursor, status and tasks. Connect AI in the top bar walks you through each one.
| Agent | How it connects |
|---|---|
| Claude Code | claude mcp add, OAuth in the browser (setup) |
| Claude (web and desktop) | Add to Claude in Connect AI (setup) |
| Codex (CLI and desktop) | codex mcp add, OAuth in the browser (setup) |
| ChatGPT | A custom MCP server in ChatGPT, guided by Connect AI → ChatGPT |
| Cursor | Add to Cursor in Connect AI |
| OpenCode, VS Code Copilot, OpenClaw and more | Any MCP client, over OAuth or with an agent key (setup) |
| Headless agents (n8n, Mastra, CI) | An agent key as a bearer header (setup) |
Any agent with a shell (the doop CLI) | An agent key; frames as local files (setup) |
No agent of your own? The built-in Doop Agent runs on the model account you connect: a ChatGPT subscription, or an OpenAI, Claude, Gemini, DeepSeek, Kimi or OpenRouter key. OpenRouter brings Qwen, GLM, MiniMax and more (details).
git clone https://github.com/kgoedecke/doop && cd doop
bun install
bun run dev
Doop builds and installs with bun (bun.lock is the only
lockfile); the server itself runs on Node.
/api, /ws,
/mcp, /.well-known, /i/, /ingest and /local-agent to it)bun run dev and bun run build also package the Claude Desktop extension with a Node script,
so Node must be on your PATH as well.
Everything works with no configuration: data persists to an embedded Postgres (PGlite) in data/pg,
and every optional integration (SMTP, stock photos, object storage, analytics) degrades gracefully
until its variable in .env.example is set (the ones that matter).
The built-in Doop Agent runs once a user connects a model account in Settings
(or on the server's ANTHROPIC_API_KEY if you raise RESIDENT_TASK_LIMIT) — agents you connect
yourself over MCP need no key.
Or self-host the production build with Docker:
BETTER_AUTH_SECRET=$(openssl rand -hex 32) docker compose up -d # app + Postgres on :4400
Production build without Docker: bun run build && bun run start (single server on :4400 serving
everything). Set DATABASE_URL to use a real Postgres — same code path as PGlite.
Prefer not to run anything? doop.design is the hosted version.
Once you sign in, Home is where you start: describe what you want and Doop makes a canvas with drafts queued for the Doop Agent, or pick up one of your canvases, workspaces and connected agents.
The bottom toolbar holds the tools; every one has a single-key shortcut. Shapes drawn on the canvas become standalone elements, and shapes drawn inside a frame become positioned HTML/SVG layers of that frame, so agents read and edit them like any other markup.
| Tool | Key | What it does |
|---|---|---|
| Select | V | Click to select, drag the background for a marquee, ⇧/⌘-click to add to the selection |
| Hand | H | Pan (Space or the middle button pans from any tool) |
| Frame | F | Draw an empty frame |
| Rectangle | R | Draw a rectangle |
| Circle | O | Draw a circle or ellipse |
| Vector path | P | Bézier pen: snaps to its own anchors, previews closing the path; Alt skips snapping |
| Text | T | Place a text layer |
| Comment | C | Pin a comment to an element or to the canvas |
W × H badge shows the size), drag the element to
move it within or across frames. The Design tab edits fill, stroke, text (font, size, weight,
alignment), opacity, corner radius, rotation, position, flex layout (direction, gap, padding,
wrap, alignment) and image fills; HTML shows its source; Prototype wires interactions. The
floating toolbar adds Comment, Ask AI (pre-fills an @mention), Code, Edit text and Copy link.| Shortcut | Action |
|---|---|
| ⌘Z / ⌘⇧Z (or ⌘Y) | Undo / redo your own edits |
| ⌘C / ⌘V / ⌘D | Copy, paste, duplicate frames or layers |
| ⌫ | Delete the selected element, else the selected frames |
| ⌘⇧H / ⌘⇧L | Hide / lock the selection |
| ⌥↑ / ⌥↓ | Move a layer up or down (Layers panel) |
| ⇧1 / ⇧2 | Zoom to fit everything / the selection |
| ⌘0 / ⌘+ / ⌘− | Zoom to 100%, in, out |
| ⇧R | Toggle rulers |
| ⌘. | Hide or show all UI |
| ⌘⌥↩ | Present from the selected frame (Ctrl+Alt+↩ elsewhere) |
| ⌘K | Open the Agents composer (on Home: the search palette) |
| Esc | Deselect, stop following |
Click a collaborator's avatar to follow their viewport; an agent's avatar flies you to what it is working on. Placeholder frames show where an agent that has picked up a card is about to design.
Comment on any element or anywhere on the canvas. The Comments tab lists the page's threads
(open or resolved) with their replies. @mention an agent role in a comment or a reply (for example
@doop) to queue a design card; the agent's answer comes back in the thread. People who miss a
comment get an email digest (opt out under Settings → Account), and canvases opened through a
view-only or comment-only link show a badge and disable editing.
The import source picker offers Website (one page, or discover a whole site and pick its pages),
Live app (the sync snippet), and
GitHub repo (through the GitHub App or a fine-grained token: Doop reviews the repo's screens and
components and queues cards for the Doop Agent to sketch them and extract the design system into a
style guide).
Right-click a frame and choose Export… to download PNG, JPG or a vector PDF (of the frame, or of
every selected frame as one PDF). Export in the top bar binds any frames of the page into one PDF. A progress toast tracks the
render; the desktop app opens its native save panel. Every frame also has a public live image at
/i/<frameId>.png?scale=2 (or .jpg) that re-renders when the design changes, handy as an
og:image or in docs.
Figma, Canva and Photoshop (PSD) import and export are currently available in Doop Cloud and not part of the open source.
Integrations in the rail is where an account connects the outside tools Doop works with:
| Integration | What it does |
|---|---|
| Linear | Read issues through MCP, or delegate an issue to Doop: it designs a canvas and reports the result back to Linear (setup) |
| Slack | Mention @Doop with a brief; it designs a canvas and posts the result in the thread (setup) |
| Meta Ads | Pull ad creatives onto a canvas on a schedule with an automation |
The Figma integration (import frames as editable HTML, export frames back to Figma) and the Canva integration (import designs as editable frames, send frames back with live text) are currently available in Doop Cloud and not part of the open source. A self-hosted Integrations page shows Linear, Slack and Meta Ads.
Outbound webhooks (Settings → Webhooks) POST a signed JSON event to your own URL when a comment is created, replied to or resolved, when a frame is created, or when an agent finishes or fails a board card, with retries and a test ping (events and signatures).
To reference a specific element in feedback, select it and choose Copy link
in its floating toolbar, or right-click its Layers row and choose Copy link to
element. Opening the link selects the element and opens its properties on the
correct page. The URL includes the canvas ID, frame ID and URL-encoded CSS
selector, so an AI agent can locate it in the frame HTML. Canvas access rules
still apply. Selectors that use element IDs survive layout changes; selectors
based on sibling positions can change when the HTML is restructured.
Select a frame and turn on Development → Mark as approved in the inspector, or right-click one or more frames and choose Mark ready for dev. A green badge appears above the screen and in Layers. Hover the toggle row or a badge to see who approved it and when. Turn the toggle off to move an approved screen back to draft.
Changing the HTML or frame dimensions switches an approved screen to Needs review; review it and turn Mark as approved on again. Moving, renaming, hiding, locking, or moving between pages keeps approval. Copies start as drafts. An approval checks the frame revision so a concurrent edit cannot accidentally be approved, and waits for live design streams to finish.
Agents can read approvalStatus (draft, ready_for_dev, needs_review) and
approval attribution in get_canvas and get_frame. Call
get_canvas({ canvas_id, approval_status: "ready_for_dev" }) to find approved
screens, then re-read get_frame before implementing. Only ready_for_dev is
current sign-off. Approval is set by people in the app, or by an agent when a person asks
it to: set_frame_approval({ frame_id, status: "ready_for_dev" | "draft" }) (MCP and the Doop
Agent) records the approval in that person's name, with the agent shown as "via". An agent
never approves unasked, and automation runs cannot approve. In Automations, choose
Designs are approved to run a workflow when frames on a selected canvas become
ready for dev. Without an enabled workflow, approval only records sign-off.
The REST equivalent is PUT /api/frames/:id/approval with
{ status: "ready_for_dev" | "draft", expectedUpdatedAt }. The signed-in user's
identity supplies the attribution; the endpoint uses the same canvas access rules
as editing and returns 409 when the reviewed revision is stale.
Turn frames into a flow you can click through. Switch on Prototype mode (top bar), pick an element and add an interaction in its Prototype tab, or drag the handle on its right edge onto another frame. Each interaction is a trigger (click, hover, press, a key or a delay) and an action (go to a frame, open one as an overlay, go back, close the overlay, scroll, open a link), with an optional transition: dissolve, slide or push. Connectors on the canvas show where every element leads, and a Start flag marks the frame each page's flow begins on.
Press Play to run it full screen, or share /c/<canvas-id>/proto: the player follows the
same canvas access rules, and the browser's Back and Forward walk the flow. Frames stay live
while you play, so an edit on the canvas shows up on the screen you are looking at.
Interactions are plain attributes on the element in the frame HTML, so they sync, version and export with the frame, and agents write them with the same tools they design with:
<button data-doop-on="click" data-doop-action="navigate:<frameId>" data-doop-transition="push-left">Book stay</button>
Agents check their wiring with get_prototype, which flags links to missing frames, and set
the start with set_prototype_start. Both the MCP server and the built-in Doop Agent have them.
The full attribute reference is in .context/specs/prototyping.md.
The SwiftUI iOS app lives in ios/. Open ios/Doop.xcodeproj
in Xcode to run it against Doop Cloud or your own HTTPS server. It uses SwiftUI for the app interface and a native canvas that
renders frames with the Blitz HTML/CSS engine (Rust, no WebKit), over the same REST API and WebSocket rooms. The app is in development;
see the iOS README for validation status and remaining release requirements.
The native Kotlin/Jetpack Compose app lives in android/.
Open that directory in Android Studio or run ./gradlew assembleDebug from it.
It shares iOS's Blitz/Skia renderer and the existing REST/WebSocket backend, with
native canvas gestures, editing, agent prompts, comments, exports and optional
background task notifications. It targets ARM64 phones and tablets on Android 8+.
See the Android README for setup, tests and release signing.
Choose Connect AI → Claude → Add to Claude. On hosted Doop, this opens Claude's connector form with Doop's name and server URL filled in. Confirm it, sign in to Doop, then start a new Claude chat and paste the canvas prompt from the dialog. No file download, terminal or API key needed.
The updated Doop desktop app also offers Add to Claude for local and self-hosted
servers: it opens Claude Desktop's extension installer directly, with your server
URL filled in. Confirm the installation in Claude and approve the Doop sign-in.
The online connector needs a publicly reachable HTTPS server; localhost connections
use the desktop app. Manual extension installation remains available as a fallback.
Build and installation details: claude-extension/.
One command connects Claude Code (or any MCP client) to your canvas:
claude mcp add --transport http doop http://localhost:4300/mcp
That triggers the standard MCP OAuth flow — a browser window opens, you approve, and from then on
the agent works as you. Ask it to design something on your canvas id and watch it happen live.
Everything in this shot is the real flow: Claude Code announced itself with set_status, created a
frame, and is streaming the pricing section in — presence avatar, "for Kai Moreno" attribution,
the frame chip, the working strip, and the task in the Agents panel.
The first canvas after signup comes with a performance: the Doop Agent streams a welcome design in while you watch — status in the working strip, a task in the panel, a pulsing border on the frame it's building.
That welcome performance is scripted (server/demo.ts) — a pre-authored frame replayed through
the same machinery real agents use, so it runs with no configuration at all. The Doop Agent proper
needs a key.
Doop ships a built-in design team that lives in the server and picks work up on its own: queue a
board card, @mention a role in a comment, or post task feedback over the API, and it runs
without a human in the loop. Roles (Doop builds; specialists own one pass each — UX, copy, brand,
accessibility) are defined in shared/agents.ts, and a card can be routed
through several in order.
Normally each user's own connected model account pays for their runs (next section). The server
can also pay for a free tier, on Anthropic by default, once RESIDENT_TASK_LIMIT is above 0:
ANTHROPIC_API_KEY=sk-ant-... # in .env, or the environment of your deployment
Same key gates the guideline distiller (server/distill.ts), which proposes
durable style rules from your canvas.
The free tier can run on Azure OpenAI instead — useful when your organisation's credits or compliance rules live there:
DOOP_AGENT_PROVIDER=azure
AZURE_OPENAI_ENDPOINT=https://my-resource.openai.azure.com
AZURE_OPENAI_API_KEY=...
AZURE_OPENAI_DEPLOYMENT=my-deployment
The distiller stays on ANTHROPIC_API_KEY either way and quietly turns off without it.
When a user's RESIDENT_TASK_LIMIT free tasks are gone, they don't lose the agent — they connect a
model account and the Doop Agent keeps running on it. A connected account takes over immediately,
from the very next task: the free tier is a trial that gets people here, not a balance to spend down
first, and connecting stops costing the server anything from that moment. The connection is
account-level, so it lives at /settings (Home → Settings); the free-tier wall links there rather
than carrying its own copy, and "Connect an AI agent" on a canvas stays about MCP clients only. A
user can connect eight kinds of account; the Gemini cloud pilot and Claude Plan appear only where
the operator or the desktop app provides them:
auth.openai.com, then inference through the Codex
backend that Plus/Pro/Business plans include. Tokens live in model_accounts and never reach a
browser.shared/modelMenu.ts). Models without image input still work, in a
degraded mode: the agent skips screenshot review, verifies through the frame HTML instead, and
the picker labels them "no visual review".KIMI_CHAT_URL at https://api.moonshot.cn/v1/chat/completions.KIMI_CODE_CHAT_URL,
api.kimi.ai/coding/v1 overseas) and ids (k3.1-pro, k3.1-pro-highspeed, k3); requests
name Doop in their User-Agent, as Kimi Code's terms ask of every third-party tool.claude -p), with a per-run scoped MCP token. Once switched on it takes
precedence over connected accounts while the app is online. Setup: desktop/README.md.The ChatGPT, OpenAI, Claude and Gemini kinds get their model menu from the provider's own
catalog, asked with that account's credential when the picker opens (server/modelCatalog.ts,
GET /api/model-account/models): the Codex backend's catalog for a ChatGPT subscription (the
same list the Codex CLI reads, asked as CHATGPT_CODEX_CLIENT_VERSION), OpenAI's and
Anthropic's /v1/models, Gemini's /v1beta/models. A newly released model is on the menu
without an upgrade; the newest generation leads, the curated entries above it within each
generation as recommendations, every id is spelled the way the curated ones are, a curated tier
the account cannot run is left off, and the curated menu alone is served if the provider cannot be
reached. OpenRouter, DeepSeek, Kimi and Kimi Code stay on their curated rosters, whose hand-checked vision
flags are what the run relies on. DeepSeek and Kimi return their reasoning as reasoning_content
and refuse a tool-calling conversation that leaves it out, so the transport keeps it in the run's
history and sends it back on every turn.
Azure OpenAI is deliberately not a connectable account kind, and the OpenRouter/Gemini/DeepSeek/Kimi endpoints are fixed constants: a user-supplied endpoint would be a URL the server fetches with the run's full context — an SSRF vector — so custom endpoints stay server-level configuration only.
Either way the user picks their model tier in Settings from that provider's curated menu — on
OpenAI, gpt-6.2-astra (the flagship, priciest; on a ChatGPT subscription it runs on supported
plans, and Enterprise and Edu admins switch it on), gpt-6.2-sol (the default workhorse),
gpt-6.1-terra (fast and efficient) or gpt-6-luna (cheapest and fastest). They are paying for it, so the choice is theirs;
DOOP_AGENT_OPENAI_MODEL, DOOP_AGENT_OPENROUTER_MODEL, DOOP_AGENT_GEMINI_MODEL,
DOOP_AGENT_DEEPSEEK_MODEL, DOOP_AGENT_KIMI_MODEL and DOOP_AGENT_KIMI_CODE_MODEL only set the default they start on. Note that
gpt-5.4 and gpt-5.4-mini retire from ChatGPT-authenticated Codex on 31 August 2026, so
pinning a 5.4 id via that env var will break the subscription path after that date.
OpenAI registers no redirect URI for a hosted app, so connecting ChatGPT takes one of three shapes and Doop picks the cheapest one available:
| Where Doop runs | Flow | What the user does |
|---|---|---|
| Same machine as the browser (dev, self-host) | Loopback catch — Doop holds 127.0.0.1:1455 | Approve in the OpenAI tab. Nothing to copy, no setup |
| Hosted (doop.design) | Device code (/api/accounts/deviceauth/*) | Type a short code at auth.openai.com/codex/device |
| Device codes disallowed | Browser redirect + paste | Paste the dead localhost:1455 page's address back into Doop |
The device flow needs device code authorization switched on in ChatGPT → Settings → Security (workspace members need an admin to allow it) — that is why the loopback flow, which needs no setting at all, stays the default when Doop is local. All three end at the same server-side PKCE exchange.
Before you turn this on for real users: driving a ChatGPT subscription from a third-party server is not something OpenAI's terms sanction, and heavy use can get an account rate-limited or suspended. The API-key path is the fully supported alternative and shares all the same code.
CHATGPT_CONNECT_DISABLED=1switches the subscription path off and leaves the key path.
Runs are attributed to the human whose card, comment or feedback they picked up, so the person who
asked for the work is the person whose account runs it. The translation between the agent's
Anthropic-shaped loop and OpenAI's Responses API lives in
server/openaiAgent.ts; which credential a run gets is decided in
server/agentModel.ts.
With no server key and no connected account the Doop Agent is off, and it fails quietly by
design — queued cards and @mentions simply wait for some agent to claim them. The startup banner
tells you which state you're in.
All of this is separate from connecting your own agent. Claude Code and any other MCP client authenticate over OAuth and drive the canvas from outside, on your own subscription — never metered. Three paths, same canvas: the Doop Agent on our key (free tier), the Doop Agent on your key, or your own agent over MCP.
| Variable | Default | What it does |
|---|---|---|
DOOP_AGENT_PROVIDER | anthropic | What the free tier runs on: anthropic | azure |
ANTHROPIC_API_KEY | unset | Pays for the free Doop Agent tier (default provider) and the distiller |
AZURE_OPENAI_ENDPOINT | unset | The free tier's Azure OpenAI resource, when DOOP_AGENT_PROVIDER=azure |
AZURE_OPENAI_API_KEY | unset | A key of that resource |
AZURE_OPENAI_DEPLOYMENT | unset | The deployment the free tier runs on |
AZURE_OPENAI_API_VERSION | unset | Pins an api-version query parameter; the v1 surface needs none |
AZURE_OPENAI_REASONING_EFFORT | unset | Reasoning effort on Azure runs; unset sends none (non-reasoning-safe) |
RESIDENT_TASK_LIMIT | 0 | Free Doop Agent tasks per account; 0 means a connected account from the first task |
DOOP_AGENT_MODEL | claude-opus-5-5 | Model for the Doop Agent on the server's Anthropic key |
DOOP_AGENT_OPENAI_MODEL | gpt-6.2-sol | Default tier on a user's account; each user can pick another in Settings |
DOOP_AGENT_OPENAI_EFFORT | medium | Default reasoning effort on a user's OpenAI account; each user can pick low–xhigh |
DOOP_AGENT_OPENROUTER_MODEL | moonshotai/kimi-k3.1-pro | Default model on a connected OpenRouter key |
DOOP_AGENT_GEMINI_MODEL | gemini-4-hydrogen | Default model on a connected Gemini key |
DOOP_AGENT_DEEPSEEK_MODEL | deepseek-flash | Default model on a connected DeepSeek key |
DOOP_AGENT_KIMI_MODEL | kimi-k3.1-pro | Default model on a connected Kimi key |
DOOP_AGENT_KIMI_CODE_MODEL | k3.1-pro | Default model on a connected Kimi Code plan |
CHATGPT_CONNECT_DISABLED | unset | 1 hides the ChatGPT flow, leaving the API-key path |
DOOP_DISTILL_MODEL | claude-haiku-5-5 | Model for the guideline distiller |
RESIDENT_TASK_LIMIT is the free-tier meter. By default it is 0: the Doop Agent only runs once
the user connects a model account (any of the kinds above) — a connected
account is never metered. Connecting your own MCP agent does not lift the meter: it runs on your
model when it designs, but resident tasks still bill a credential. Set the limit above 0 to
grant that many free tasks on the server's key; everything that triggers resident work counts,
including feedback and retries. There is no "unlimited" value: self-hosting with your own key, set
it to a large number, since you're paying Anthropic directly either way.
The web app requires an account (better-auth, email/password — open signup). Your account
name is your identity everywhere: cursors, presence, the activity feed, and feedback
attribution are all server-authoritative from the session, and the WebSocket rejects
unauthenticated joins. Canvases are private by default, Figma-style: only the owner
and people they invite (Share → invite by email, existing doop accounts) can open one.
The Share modal also sets what anyone with the link gets: nothing (invite-only, the
default), view, comment or edit. From the same modal an owner can file the canvas
in a workspace or list it in the Community gallery (/community), where signed-in people
browse published canvases and copy them into their own. Your home screen lists
your own canvases plus ones shared with you (plus unowned legacy ones, claimable there).
Agents connected over MCP act under the account that approved them and get exactly that
user's access.
With SMTP configured (SMTP_HOST etc. — see .env.example), signups require email
verification and "forgot password" sends real reset links. Without it, signup stays open and every
email is printed to the server log, links included — the flows still work in development.
Set SIGNUP_EMAIL_DOMAINS=jointhetroops.com to restrict new accounts to one email domain, or use a
comma-separated list for several domains. Matching is case-insensitive and exact; existing accounts
are unaffected. Leave it unset to keep public signup open.
Set REQUIRE_EMAIL_VERIFICATION=false to let people in before they verify — the link is still
emailed, it just stops gating sign-in. Admin promotion is deliberately not part of that trade:
ADMIN_EMAILS only ever promotes a verified address (see below).
If signup or password reset hangs rather than failing, the cause is almost always a host that
blocks outbound SMTP: Railway and most PaaS block 25/465/587. Resend also serves 2465/2587, so
SMTP_PORT=2587 is the usual fix.
Env: BETTER_AUTH_SECRET (required in production), TRUSTED_ORIGINS (comma-separated,
defaults to the localhost dev origins).
A workspace is a team's shared home for canvases: everyone in it opens every canvas inside,
with no per-canvas invites. Create one from the sidebar on the home screen, invite people by
email (existing accounts join at once; anyone else joins the moment they sign up with that
address), file canvases in it from the Share modal or the canvas menu ("Move to workspace…"),
and manage people, roles (owner / admin / member) and billing at /w/<id>. Agents see workspace
canvases in list_canvases and can create into one with create_canvas's workspace_id.
Workspaces are the paid part of doop on a hosted deployment. Plans (see shared/billing.ts):
| Plan | Price | What it is |
|---|---|---|
| Personal | free | Your own canvases, per-canvas invites, agents, community, imports. |
| Team | $20 / seat / month, or $192 / seat / year | Shared workspaces with roles; seats follow the people list. |
| Enterprise | talk to us | SSO, dedicated support, custom terms. |
Self-hosting: billing is off unless you turn it on. Without STRIPE_SECRET_KEY every
workspace is active and nothing is locked. With it, a workspace must hold a live per-seat
subscription before it can grow — create canvases in it, invite people, take canvases in —
and the upgrade modal appears wherever that is attempted. Canvases already in a workspace stay
open to its members whatever the subscription does (a failed card never locks a team out of its
work). Deleting a workspace hands every canvas back to its owner's personal space and cancels
the subscription.
To enable billing: create the product and prices with node scripts/stripe-setup.mjs
(prints STRIPE_PRICE_TEAM_MONTHLY / STRIPE_PRICE_TEAM_YEARLY), point a Stripe webhook at
<origin>/stripe/webhook for checkout.session.completed and
customer.subscription.{created,updated,deleted}, and set STRIPE_WEBHOOK_SECRET. Checkout,
cards, invoices and cancelling all happen on Stripe's hosted pages; the server only mirrors the
subscription onto the workspace (through the webhook, and a direct sync when the browser lands
back from Checkout, so local development works without a tunnel).
ADMIN_EMAILS (comma-separated) names the accounts that get the admin role, applied at
signup, on email verification, and at boot — so you can name an admin before or after they
have an account. This requires SMTP in production: an address only identifies someone
once they have proven they own it, and without a mailer signup is open, so anyone could sign
up as your address and take the role with it. A production instance without SMTP promotes
nobody and warns at boot; set the role directly in the database if that is your setup.
Admins get /admin: every canvas and account on the instance, and "view as", which hands
them a real but read-only 15-minute session as that user. Being an admin does not widen
canvas access itself: the gate in server/access.ts is shared with MCP,
so a privileged read there would give every agent holding an admin's token the run of the
instance. View-as sessions cannot write, cannot connect agents, and record who is behind
them in session.impersonated_by.
Optional login against an external OIDC provider (Zitadel, Okta, Authentik, Keycloak,
etc.), alongside email/password — not a replacement for it. Set OIDC_ISSUER,
OIDC_CLIENT_ID, and OIDC_CLIENT_SECRET together to enable it; a partial set refuses
to boot rather than run with SSO half-configured. OIDC_SCOPES (default
openid email profile) and OIDC_PROVIDER_NAME (default SSO, shown on the login
button — e.g. Zitadel) are optional. Signing in via SSO links to an existing
email/password account when the emails match and the provider marks the email
verified, and this works even on an instance with no SMTP configured, where a
local account could otherwise never verify on its own. SSO alone never grants
the admin role, even for an address listed in ADMIN_EMAILS — an IdP is not
trusted as an admin-promotion source, only as an email-ownership check;
promotion still requires the normal ADMIN_EMAILS path (verified signup, or
syncAdmins at boot for an account SSO has since verified).
Env: see the OIDC block in .env.example.
Optional, alongside email/password and SSO. Create an OAuth client (Web application) in
the Google Cloud console, add
<BETTER_AUTH_URL>/api/auth/callback/google as an authorised redirect URI, and set
GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET together (one without the other refuses to
boot). The login page shows a "Sign in with Google" button whenever both are set. Account
linking and admin promotion follow the same rules as SSO above; SIGNUP_EMAIL_DOMAINS
applies to Google (and SSO) sign-ups exactly as it does to email/password.
Same shape as Google. Register an app in Microsoft Entra
(App registrations, platform Web) with <BETTER_AUTH_URL>/api/auth/callback/microsoft as a
redirect URI, create a client secret, and set MICROSOFT_CLIENT_ID and
MICROSOFT_CLIENT_SECRET together. MICROSOFT_TENANT_ID (default common, any Microsoft
account) can be organizations, consumers, or your tenant id to make the button an
org-only door. Microsoft does not assert email ownership unless the app registration's
ID token includes the email and verified_primary_email optional claims; without them a
Microsoft sign-in still works but only links to an existing account that is already
verified. Everything else (allowlist, admin promotion) follows the SSO rules above.
Same shape as Google. Register an OAuth app under
GitHub developer settings with
<BETTER_AUTH_URL>/api/auth/callback/github as the authorization callback URL, generate a
client secret, and set GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET together. It is a
separate app from the GITHUB_APP_* GitHub App that imports repositories. Doop takes the
account's primary GitHub address (the user:email scope), not the one shown on the public
profile, and links to an existing account when GitHub has verified that address. Everything
else (allowlist, admin promotion) follows the SSO rules above.
Two independent halves, documented in .env.example. For the web button,
register a Services ID with Sign in with Apple enabled and
<BETTER_AUTH_URL>/api/auth/callback/apple as a return URL, then set APPLE_CLIENT_ID (the
Services ID) and APPLE_CLIENT_SECRET (the client-secret JWT signed with your Sign in with
Apple key, which Apple caps at six months) together. For the iOS app, set
APPLE_APP_BUNDLE_IDENTIFIER to the app's bundle id: the app shows the native Sign in with
Apple button and posts the identity token Apple issues for that bundle id to
/api/auth/sign-in/social, which the server verifies against Apple's keys. Apple only sends
the person's name on their first sign-in, so the app forwards it then; a later sign-in from a
fresh install leaves the name as stored. Linking and admin promotion follow the SSO rules
above. Apple's "Hide My Email" addresses are on privaterelay.appleid.com, which
SIGNUP_EMAIL_DOMAINS rejects unless listed.
The /mcp endpoint requires OAuth. Adding the server in Claude Code / Codex triggers
the standard MCP OAuth flow: a browser window opens, you sign in to Doop and approve,
and the client stores a bearer token. Every tool call then carries your identity —
agent tasks show "for ⟨you⟩" in the Agents panel, and presence tooltips name the owner.
Unauthenticated calls get a 401 whose WWW-Authenticate header points at
/.well-known/oauth-protected-resource/mcp and asks for openid profile email offline_access
(so clients get refresh tokens); that is what kicks off the flow. The approval screen lives at
/oauth/consent. Dynamic client registration is enabled, so no manual client setup.
ping and resources/list/resources/read answer without a token, and a banned account's
agents get a 403 even with a valid one.
The endpoint takes POST only and answers with plain JSON rather than an SSE stream, which is what
ChatGPT needs. Tool results also carry structuredContent for an inline frame-preview card
(ui://doop/frame-preview-2.html) in clients that render MCP Apps, such as ChatGPT.
In production also set BETTER_AUTH_URL to the public origin — OAuth URLs are built on it.
The repo ships a production Dockerfile (client build + Chromium for frame screenshots).
Any container host works; Railway/Fly are the least friction:
DATABASE_URL. Don't skip this in real deployments —
the PGlite fallback is embedded/single-process and only suits a single instance with a
persistent volume mounted at /app/data.BETTER_AUTH_SECRET (long random string) and BETTER_AUTH_URL (the public origin,
e.g. https://doop.example.com). Extra allowed origins: TRUSTED_ORIGINS (comma-separated).GET /healthz. The server trusts one proxy hop (trust proxy), so
TLS termination at the platform edge works out of the box.Local sanity check of the exact production image:
docker build -t doop .
docker run -p 4400:4400 -e BETTER_AUTH_URL=http://localhost:4400 -e BETTER_AUTH_SECRET=dev-only doop
Every variable is optional except the two marked required in production. Each one is declared and
validated once at boot (server/env.ts) and documented in
.env.example, which also lists endpoint overrides and other rarely needed knobs.
The server listens on port 4400 on all interfaces by default (IPv6 when available, otherwise IPv4;
most operating systems also accept IPv4 on the default IPv6 listener). Set HOST=127.0.0.1 to restrict
it to local IPv4 connections, or HOST=::1 for local IPv6, and PORT to change the listening port.
This is the short list a self-hoster usually touches:
| What | Variables | Without them |
|---|---|---|
| Core | BETTER_AUTH_SECRET, BETTER_AUTH_URL (both required in production), DATABASE_URL, TRUSTED_ORIGINS, HOST, PORT | Embedded PGlite in data/pg, localhost origins |
| Sign-in | OIDC_*, GOOGLE_*, MICROSOFT_*, APPLE_*, SIGNUP_EMAIL_DOMAINS, ADMIN_EMAILS (Accounts) | Email/password only, open signup |
SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS, SMTP_SECURE, EMAIL_FROM, REQUIRE_EMAIL_VERIFICATION | Emails print to the server log; no verification | |
| Object storage | BUCKET, ACCESS_KEY_ID, SECRET_ACCESS_KEY, ENDPOINT, REGION (any S3-compatible store) | Uploaded assets stored under data/assets |
| Doop Agent | ANTHROPIC_API_KEY, RESIDENT_TASK_LIMIT, DOOP_AGENT_*, AZURE_OPENAI_* (The Doop Agent) | Runs only on accounts users connect |
| Image generation | OPENAI_API_KEY, GEMINI_API_KEY, ARK_API_KEY (Seedream), DOOP_IMAGE_MODEL | Runs only on accounts users connect; Seedream off |
| Agent search tools | PEXELS_API_KEY (photos), BRANDFETCH_CLIENT_ID (logos), BACKGROUNDS_ORIGIN, CONTEXT_DEV_API_KEY | No photo search; open-source and favicon logos; local Chromium |
| Screenshots | CHROME_PATH, CHROME_NO_SANDBOX (the Docker image sets both up) | Auto-detected Chrome/Chromium |
| Integrations | META_APP_ID/_SECRET, LINEAR_* (setup), SLACK_* (setup), GITHUB_APP_* | That integration is unavailable; GitHub import uses a personal token |
| Billing | STRIPE_SECRET_KEY, STRIPE_PRICE_TEAM_*, STRIPE_WEBHOOK_SECRET (billing) | Billing off, every workspace active |
| Rate limits | MCP_UPLOADS_PER_MIN, MCP_SEARCHES_PER_MIN, MCP_GENERATIONS_PER_MIN, MCP_IMPORTS_PER_MIN, SYNC_INGESTS_PER_MIN, PREVIEW_RENDERS_PER_MIN, SYNC_FREEZE_MS | Defaults sized for the hosted service; requests over a cap get 429 |
| Webhooks | WEBHOOK_ALLOW_PRIVATE_URLS (webhooks) | Webhook URLs on private networks are refused |
| Analytics | VITE_POSTHOG_KEY (build time: a Docker build ARG), POSTHOG_KEY, POSTHOG_*_HOST | No analytics; when set, the browser reports through the same-origin /relay proxy |
| iOS push | DOOP_APNS_TEAM_ID, DOOP_APNS_KEY_ID, DOOP_APNS_PRIVATE_KEY, DOOP_APNS_BUNDLE_ID | No Live Activity pushes; the app polls |
| Gemini cloud pilot | DOOP_GEMINI_CLOUD_WORKERS (pilot guide) | Off |
The MCP endpoint (streamable HTTP, stateless) is at:
http://localhost:4300/mcp
Claude Code:
claude mcp add --transport http doop http://localhost:4300/mcp
Codex:
codex mcp add doop --url http://localhost:4300/mcp
codex mcp login doop # approve in the browser
In the Doop desktop app, Connect AI → Codex → Add to Codex writes the entry into
~/.codex/config.toml for you (CLI and the Codex tab of the ChatGPT desktop app). Connect AI also
has one-click Add to Claude and Add to Cursor. ChatGPT needs Doop on a public HTTPS address
(or an OpenAI Secure MCP Tunnel); it cannot reach localhost.
Generic MCP config:
{ "mcpServers": { "doop": { "type": "http", "url": "http://localhost:4300/mcp" } } }
OpenCode takes Doop as a remote MCP server in opencode.json. An
agent key in the header skips the browser sign-in:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"doop": {
"type": "remote",
"url": "http://localhost:4300/mcp",
"headers": { "Authorization": "Bearer dpk_…" }
}
}
}
The OAuth flow above assumes a human at a browser to approve the connection. A headless client — a Mastra workflow, n8n, CI, any server-side agent framework — authenticates with an agent key instead: mint one under Settings → Agent keys and send it as a bearer header. The key acts as your account (same canvas access, same attribution) and is checked on every request, so revoking it in Settings cuts the agent off immediately.
{
"mcpServers": {
"doop": {
"type": "http",
"url": "http://localhost:4300/mcp",
"headers": { "Authorization": "Bearer dpk_…" }
}
}
}
Then tell the agent something like:
Work on canvas
<canvas-id>(shown in the top bar). Callget_canvasto see the existing frames. To design, create a frame withcreate_frame, then stream the design into it withappend_frame_htmlone complete section at a time, roughly 1–4 KB per chunk (start=trueon the first,done=trueon the last) so people watch it build up live. Complete HTML with inline CSS. After finishing, callget_frame_screenshotto see it, fix what looks wrong, and re-check. Pick anagent_nameand reuse it on every call.
Screenshots render in your system Chrome/Chromium via puppeteer-core (set CHROME_PATH if it isn't
auto-detected). Humans can hit the same renderer at GET /api/frames/:id/screenshot.png?scale=2.
For website viewing/imports, setting CONTEXT_DEV_API_KEY makes Context.dev acquire the rendered
HTML while Doop still sanitizes it and renders the preview locally; without the key, Doop navigates
to the public page directly in Chromium.
An agent that has a shell (Claude Code, Codex, Cursor) or a CI job can work on a canvas without MCP,
through the doop CLI: frames and components are local files it edits with its own tools, and
screenshots and exports are written to disk. It is one dependency-free file, on npm as
@doop-design/cli. It signs in through the browser, or with an agent key in CI.
npm install -g @doop-design/cli # or bun add -g, pnpm add -g; npx @doop-design/cli runs it uninstalled
export DOOP_SERVER=http://localhost:4300
doop login # approve in the browser; in CI set DOOP_API_KEY to an agent key
doop link --create "Onboarding v2" # or an existing canvas: its id, name or URL
doop pull # frames -> designs/*.html
doop push # changed files -> the canvas, live
doop screenshot designs/hero.html # prints the path of a PNG
doop wait # blocks until a person leaves feedback
A server also serves the CLI it was built with at /cli/doop.mjs, for when no registry is reachable.
doop init tells the coding agents in a repository about it. Commands, conflicts, components, CI
use and the HTTP endpoints underneath are in docs/cli.md.
Server-side import can't reach apps behind SSO or a VPN. The doop-sync snippet flips the capture to the user's browser: mint a write-only key under a canvas's Import → Live app, drop one tag into the app —
With desktop installers for Windows, macOS, and Linux, plus a Docker/self-hosted web app.
GitHub에서 마지막으로 가져온 시각: 4시간 전
GitHub 수치는 하루에 몇 번씩 갱신돼요.
아직 댓글이 없어요. 첫 댓글을 남겨 보세요.
자랑해 보세요. 내 순위와 평점을 보여 주는 실시간 카드로, 알아서 업데이트돼요.
작은 배지가 더 좋다면 다음을 추가하세요: ?style=flat