drobek is open-source (AGPL) vibe coding hosting: your agent builds web apps, drobek compiles, previews and publishes them. Use the hosted instance at drobek.app or run your own server.
The drobek plugin lets Claude Code, Codex or Cursor build apps directly in your drobek workspace. The agent writes the files, checks the server's compile result after each write and gives you a live preview URL. Every change creates an immutable version. The agent publishes a version to its production URL only when you ask.
The plugin connects to your drobek server at <origin>/mcp and provides the
agent's build workflow. It uses OAuth 2.1: you sign in through your browser and
approve the requested scopes. The default origin is https://drobek.app;
to connect to your own server, see
Server URL.
At work, almost everyone has started vibecoding: landing pages, internal tools, small websites and reports for colleagues. I wanted us to have an answer to where those apps run, who can access them and where the API keys end up.
I built drobek for that. It grew out of something we run internally, and I released it as open source so others can host it too. People bring the coding agent they already use; drobek compiles, versions and hosts the frontend. Backend features go through modules, and the app owner sets secrets in the dashboard.
This plugin connects that workflow to Claude Code, Codex and Cursor. The agent can build an app, fix compile errors and return a preview in the same conversation. You decide when it goes live.
npx drobek-plugin # setup steps for Claude Code, Codex and Cursor
npx drobek-plugin cursor --url https://drobek.example.com # one agent, a self-hosted drobekThe npm package drobek-plugin
prints setup instructions. It does not edit your agent's config or ask for a
key. It also includes the plugin, so Claude Code can load it without the
marketplace:
claude --plugin-dir "$(npx -y drobek-plugin path)"claude plugin marketplace add freema/drobek-plugin
claude plugin install drobek@drobekInside Claude Code, use /plugin marketplace add freema/drobek-plugin
and /plugin install drobek@drobek. Then run /mcp, select the drobek server and
sign in. Build an app:
/drobek:build-app a tip calculator that splits the bill between friends
The agent replies with the app's preview URL. Ask it to publish when you want the app live.
Move a Claude artifact (a page, a React component, or a folder with its images and video) to drobek:
/drobek:port-artifact ./family-film
The agent copies the text files unchanged and uploads videos, images and fonts
to the paths the page already uses. Binary files go through single-use upload
URLs (curl -T), never through the model. The agent then returns the preview URL.
Move a project exported from Lovable, Bolt, v0 or any Vite + React app:
/drobek:port-app ./my-lovable-app
The agent keeps the paths, pins the packages on esm.sh, loads Tailwind in the page and moves Supabase calls to drobek's modules, then returns the preview URL.
For a self-hosted drobek, start Claude Code with DROBEK_URL set to its origin
(see Server URL).
codex plugin marketplace add freema/drobek-plugin
codex plugin add drobek@drobek
codex mcp login drobekcodex mcp login drobek opens the drobek sign-in in your browser; restart Codex
afterwards so it loads the drobek tools. Codex has no plugin commands: ask it to
build an app on drobek, to move a Claude artifact to drobek (the
port-artifact-to-drobek skill), or to move a Lovable, Bolt, v0 or Vite + React
project to drobek (the port-app-to-drobek skill).
Codex does not expand environment variables in a plugin's MCP config, so the
plugin connects the hosted https://drobek.app/mcp. For a self-hosted drobek,
add your endpoint under the same name before signing in. A drobek server in
your ~/.codex/config.toml takes the place of the plugin's:
codex mcp add drobek --url https://drobek.example.com/mcp
codex mcp login drobekInstall the hosted drobek MCP server with this link:
Add drobek to Cursor
cursor://anysphere.cursor-deeplink/mcp/install?name=drobek&config=eyJ1cmwiOiJodHRwczovL2Ryb2Jlay5hcHAvbWNwIn0=
You can also add the server manually in ~/.cursor/mcp.json:
{
"mcpServers": {
"drobek": {
"url": "https://drobek.app/mcp"
}
}
}For a self-hosted drobek, put your origin in url instead
(https://drobek.example.com/mcp), or read it from the environment with
Cursor's interpolation: "url": "${env:DROBEK_URL}/mcp" (DROBEK_URL must
then be set wherever Cursor starts). Sign in when Cursor asks; the server then
shows as connected under Settings > Tools & MCP.
The plugin in this repository (.cursor-plugin/) adds the
build-app-on-drobek, port-artifact-to-drobek and port-app-to-drobek
skills, the route-app-builds-to-drobek rule and the build-app,
port-artifact and port-app commands on top of the MCP server. It also bundles the hosted
server (https://drobek.app/mcp); with a self-hosted drobek, keep your own
drobek entry and turn the plugin's server off under Settings > Tools & MCP.
| Piece | Role |
|---|---|
plugins/drobek/.mcp.json |
Claude Code: the drobek MCP server at ${DROBEK_URL:-https://drobek.app}/mcp (OAuth 2.1). |
plugins/drobek/.mcp.hosted.json |
Codex and Cursor: the drobek MCP server at https://drobek.app/mcp (neither expands an env var with a default in a plugin's MCP config). |
skills-claude/build-app-on-drobek |
Claude Code workflow, used only after the user chooses drobek. |
skills-codex/build-app-on-drobek |
Codex workflow. |
skills-cursor/build-app-on-drobek |
Cursor workflow. |
skills-{claude,codex,cursor}/port-artifact-to-drobek |
Move a Claude artifact to drobek, preserving text files and uploading binaries at the same paths. Covers differences in CSP, runtime APIs (no window.claude.*) and limits. |
skills-{claude,codex,cursor}/port-app-to-drobek |
Move a Lovable, Bolt, v0 or Vite + React project to drobek: paths unchanged, packages pinned on esm.sh with one React, the @/ alias through drobek.json paths, Tailwind's browser build, Supabase calls moved to drobek modules. |
rules/route-app-builds-to-drobek.mdc |
Cursor rule: use drobek when the user chooses it; keep local work local. |
commands/build-app.md |
/drobek:build-app <idea>: build an app and return its preview URL. |
commands/port-artifact.md |
/drobek:port-artifact <path> (Cursor: port-artifact): move a Claude artifact to drobek and return its preview URL. |
commands/port-app.md |
/drobek:port-app <path> (Cursor: port-app): move a Lovable, Bolt, v0 or Vite + React project to drobek and return its preview URL. |
The three build skills share the same workflow. The agent calls list_apps,
creates the app with create_app and reads its briefing. It then calls
write_files, fixes any compile.errors and returns the preview_url. The
open preview reloads itself after each write that compiled, and the agent reads
the errors the preview raised in your browser (get_logs kind browser, the
stack mapped to its own source lines) before guessing what is wrong; it can
also ask the open preview for a screenshot, which you allow with one click.
The app's page in the dashboard shows a QR code for opening the app on a phone.
It calls publish only on an explicit request and lists the app in the public
gallery only after the user agrees (user_confirmed: true).
Video, audio, images and fonts go through create_asset_upload, which returns
a single-use URL for curl -T. They must never be sent as base64 in a tool call.
The agent uses URLs from tool results; it never assumes drobek.app because app
hosts are <slug>.<APPS_DOMAIN> on the connected server. The tool contract is
<origin>/llms-full.txt of your drobek server (hosted:
drobek.app/llms-full.txt).
The server shows each client only the tools its grant allows (read, write,
publish on the consent screen); the last five rows appear only for a server
super-admin. Every tool carries the MCP annotations readOnlyHint,
destructiveHint, idempotentHint and openWorldHint. A call that changes
what the public sees, e-mails someone or deletes for good requires
user_confirmed: true, which the agent sets only after you say yes.
| Tool | Scope | Annotations | What it does |
|---|---|---|---|
list_apps |
read | read-only | You, your workspaces with your role, and the apps in them. Start here. |
create_app |
write | not destructive | A new app with a compiling version 1 (react-ts or html), its preview_url, the briefing and the skills list. |
duplicate_app |
write | not destructive | Copies a gallery app whose owner allows duplicates into a new, unpublished app in your workspace (published files as version 1); module settings that need a confirmation come back with a confirm_url. Only when the user asks. |
get_app |
read | read-only | One app: briefing, files, last 20 versions (published, preview, kept) and their retention, the newest version's readiness (with the background type check) and render signal (page_loads, errors), the preview's browser errors in short (preview_errors), open and resolved feedback notes, the last 7 days' visits (traffic), module configs (secrets as hasSecret only), visibility, embedding, the write lock. |
read_file |
read | read-only | One file or up to 20 (paths), a line range of each (offset, limit), or the lines that contain a literal text (search), inside an untrusted envelope. |
write_files |
write | destructive | Applies 1–20 file changes, creates one version and returns its server-side compile result, plus previous_version_browser_errors when the version it replaced raised errors in the preview. New versions are rate-limited per app and per person; the workspace's versions share a source quota. |
restore_version |
write | destructive | A new version that copies an old one (history is never rewritten). |
list_versions |
read | read-only | The version history, newest first, a page at a time (next_before), each version flagged published, preview and kept. |
keep_version |
write | not destructive, idempotent | Keeps a version so neither the history retention nor a clean-up deletes it, or stops keeping it; at most APP_VERSIONS_KEPT_MAX per app. |
delete_versions |
write | destructive, idempotent | Deletes old versions (or only failed builds) for good and frees storage; the published, preview, kept, rollback, newest and last hour's versions stay. Requires user_confirmed: true with the plan_id of the plan you said yes to; when that plan changed in between it answers plan_changed and deletes nothing. |
publish |
publish | destructive, idempotent, open world | Puts a compiled version on the production URL when the user asks. publish_blocked means the operator disabled publishing for the workspace; publish_not_approved means operator approval is required. Both errors name the operator in contact. |
set_gallery_listing |
publish | not destructive, idempotent, open world | Lists a published app in the server's public gallery with user_confirmed: true after the user agrees, or removes it from the gallery. |
unpublish |
publish | destructive, idempotent, open world | Takes the app off its production address and custom domains; the preview keeps serving. Requires user_confirmed: true. |
set_visibility |
publish | destructive, idempotent, open world | public or password on every host of the app. The password is set only in the dashboard (password_not_set returns the link); making a protected app public requires user_confirmed: true. |
set_frame_ancestors |
write | not destructive, idempotent, open world | Which other sites may embed the app in an <iframe> ('self' and up to 10 origins; none by default). |
release_lease |
write | not destructive, idempotent | Frees your own write lease so another member's agent can write at once. |
delete_app |
write | destructive, idempotent, open world | Deletes the app: every address answers 404 and it cannot be brought back. Requires user_confirmed: true. |
skill_info |
read | read-only | The server's skills: the list, or one skill's Markdown with SDK types, config schema and limits. |
configure_module |
write | destructive, idempotent | A platform module's config for one app (a partial merge patch); sensitive changes wait for the owner's confirmation, and a second one joins the change already waiting. |
query_data |
read | read-only | Records of one of the app's data collections (≤ 100 per call), inside an untrusted envelope. |
create_records |
write | not destructive | Stores 1–500 records in a data collection as the app's owner, all or nothing. |
update_record |
write | destructive, idempotent | Merges new fields into one record, or replaces them with replace: true. |
delete_record |
write | destructive, idempotent | Deletes one record. |
delete_collection |
write | destructive, idempotent | Deletes a collection with its records. Requires user_confirmed: true. |
purge_orphan_records |
write | destructive, idempotent | Deletes the records of collections the data config no longer declares. Requires user_confirmed: true. |
get_logs |
read | read-only | Browser errors, files that failed to load and CSP blocks with the render counts (runtime), the preview's browser errors with the stack mapped to the app's source lines (browser), the compile history (compile), request stats (requests), the runs of the app's sync sources (sync) or the latest incoming webhook deliveries without their bodies (webhooks). |
get_analytics |
read | read-only | Page views, estimated visitors (no cookies) and bot views per day of the production URL and custom domains, with the top pages and referrer hosts, inside an untrusted envelope. |
list_feedback |
read | read-only | The notes workspace members left with the preview's Feedback button, each pinned to a version, page and spot (with a short label of the element) and with the size of an attached screenshot, inside an untrusted envelope. |
get_feedback_screenshot |
read | read-only | The screenshot a member attached to a feedback note, as an image the agent can look at, inside an untrusted envelope. |
resolve_feedback |
write | not destructive, idempotent | Resolves a feedback note with a short note on what changed, or reopens it (editor+). |
delete_feedback |
write | destructive, idempotent | Deletes a feedback note for good (its author or a workspace admin), only with user_confirmed: true after the user's explicit yes. |
request_screenshot |
write | not destructive | Asks the people with the app's preview open for a screenshot: each open preview tab shows a Capture / Not now bar with the agent's note. At most 20 per app per hour by default. |
get_screenshot |
read | read-only | Where a screenshot request stands (pending, declined, expired) or, once ready, the screenshot as an image inside an untrusted envelope. |
sync_now |
write | destructive, open world | Runs one of the app's sync sources now instead of waiting for its schedule and returns the run; a failed run (status: "failed" with its error) changes nothing. |
create_asset_upload |
write | not destructive | A single-use upload URL (30 minutes) for one video, audio file, image or font at /<path> of the app. Upload with curl -T <file> '<url>', never base64. |
list_assets |
read | read-only | The app's assets (path, size, type) and its asset quota. |
delete_asset |
write | destructive, idempotent | Removes one asset. |
list_form_submissions |
read | read-only | What visitors sent through the app's forms (the Forms tab), inside an untrusted envelope. |
delete_form_submission |
write | destructive, idempotent | Deletes one form submission. |
list_end_users |
read | read-only | The people who signed in to the app (the Users tab), inside an untrusted envelope. |
set_end_user_role |
write | destructive, idempotent | Makes an end user admin or user. |
set_end_user_blocked |
write | destructive, idempotent | Blocks or unblocks an end user. |
sign_out_end_users |
write | destructive | Signs every end user of the app out. Requires user_confirmed: true. |
list_uploads |
read | read-only | The files the app's end users uploaded (the Uploads tab), inside an untrusted envelope. |
delete_upload |
write | destructive, idempotent | Deletes one end-user upload. |
remove_module_secret |
write | destructive, idempotent | Removes the stored value of one module secret. Requires user_confirmed: true; a value is set only in the dashboard. |
list_activity |
read (workspace admins) | read-only | The workspace's audit trail (the Activity page), inside an untrusted envelope. |
list_domains |
read | read-only | The app's custom domains: status (pending / verified), primary, the two DNS records to create and the last check. |
add_domain |
write | not destructive, idempotent | Attaches a domain the user owns and returns the CNAME and TXT records to create. |
verify_domain |
write | not destructive, idempotent, open world | Looks both records up; domain_not_verified names the missing or wrong one (DNS can take up to 48 hours). |
set_primary_domain |
publish | not destructive, idempotent, open world | Makes a verified domain the app's primary address (the production URL redirects there) or clears it. Requires user_confirmed: true. |
remove_domain |
write | destructive, idempotent, open world | Detaches a domain. A verified domain requires user_confirmed: true. |
list_upstreams |
read (workspace admins) | read-only | The workspace's proxy upstreams: base URL, allowed methods and path prefixes, auth type, whether a key is stored, whether answers stream (allow_streaming) and the apps allowed to call each. |
register_upstream |
write (workspace admins) | not destructive, idempotent | Registers an external API for the proxy module. auth_type: "none" registers immediately; bearer / header return secret_url, a prefilled dashboard form where the user enters the key. Keys never pass through MCP. allow_streaming: true (default false, for an LLM API) lets a text/event-stream answer reach the app as it arrives; otherwise every answer is buffered. One upstream is one host: never register in bulk; past the workspace caps the answer is limit_exceeded or rate_limited. |
set_upstream_streaming |
write (workspace admins) | not destructive, idempotent | Turns streaming on or off for a registered upstream: on, a text/event-stream answer reaches the app as it arrives (at most PROXY_STREAM_MAX_MS); off, every answer is buffered. Keeps the key and the app assignments. |
remove_upstream |
write (workspace admins) | destructive, idempotent | Removes an upstream and its key with user_confirmed: true. Apps calling it stop working immediately. |
create_workspace |
write | not destructive, idempotent | Creates a team workspace and makes you its workspace-admin. |
list_members |
read | read-only | A workspace's members and their roles. |
invite_member |
write (workspace admins of a team) | not destructive, open world | E-mails an invite as viewer, editor or workspace-admin. Requires user_confirmed: true; the invite link never passes through MCP. |
set_member_role |
write (workspace admins) | not destructive, idempotent | Changes a member's role. |
remove_member |
write (workspace admins; anyone to leave) | destructive, idempotent | Removes a member, or leaves the workspace with your own e-mail. Requires user_confirmed: true. |
delete_workspace |
write (workspace admins) | destructive, idempotent | Deletes a team workspace with every app in it. Requires user_confirmed: true. |
set_workspace_publishing |
publish (super-admins only) | not destructive, idempotent | Sets a workspace's publishing to default (the server mode decides), allowed or blocked. Requires user_confirmed: true. |
set_workspace_module |
write (super-admins only) | destructive, idempotent | Turns an opt-in module on or off for a workspace. Requires user_confirmed: true. |
takedown_app |
publish (super-admins only) | destructive, idempotent, open world | Takes an app down for breaking the terms (every address answers 451). Requires user_confirmed: true. |
restore_app |
publish (super-admins only) | not destructive, idempotent, open world | Lifts a takedown; the app stays unpublished until its owner publishes. Requires user_confirmed: true. |
set_gallery_hidden |
publish (super-admins only) | not destructive, idempotent, open world | Hides an app's gallery entry or lets the gallery show it again. Requires user_confirmed: true. |
These stay in the dashboard, with no MCP tool: setting a secret's value or an app's password, confirming a pending module change, API keys and agent connections, changing the sign-in e-mail and deleting the account.
With all nine built-in platform modules active skill_info() lists fourteen
skills; a server lists only the modules it runs.
An opt-in module (availability: "opt-in") works only in the workspaces the
operator enabled it for: skill_info({ name, app_id }) says
enabled_for_workspace, and configure_module answers module_not_enabled
elsewhere.
| Skill | Kind | Use when |
|---|---|---|
auth |
module | people must sign in to the app (invited e-mails, a company domain, admins, per-user data) |
data |
module | the app stores records (lists, todos, entries, votes) |
forms |
module | visitors fill in a form and the answers must be kept or e-mailed to the owner |
email |
module | the app must tell its owners about something by e-mail |
files |
module | people upload files the app keeps (photos, PDFs, CSVs) |
proxy |
module | the app calls an external API that needs a secret key |
sync |
module | data from an external API should refresh on its own: a cron or periodic update of scores, prices, a feed (the server never runs app code) |
oidc |
module | people sign in with their company account (Google Workspace, Microsoft Entra ID, Okta, Keycloak, Auth0) |
webhooks |
module | another service (payments, code hosting, a form service) must notify the app with signed webhooks, stored in a data collection |
start |
general | creating or changing an app: files, drobek.json, writing, previewing and publishing |
debug |
general | a write did not compile, the preview is broken, or a module call fails |
ui |
general | styling and screens: Tailwind from esm.sh, responsive and accessible layout |
port-artifact |
general | moving a Claude artifact to drobek: text files unchanged, binaries through upload URLs |
port-app |
general | moving a Lovable, Bolt, v0 or Vite + React project to drobek: files kept, packages pinned on esm.sh, Tailwind in the page, Supabase calls moved to drobek modules |
drobek is AGPL and self-hostable (freema/drobek). The plugin talks to one drobek server, set by its origin:
Set DROBEK_URL to the origin only: scheme, host and optional port, with no
trailing slash and no /mcp. For example: https://drobek.example.com.
The default is https://drobek.app, and the MCP endpoint is $DROBEK_URL/mcp.
Claude Code expands ${DROBEK_URL:-https://drobek.app}/mcp in the plugin's
.mcp.json when it starts. Set the variable in your shell:
export DROBEK_URL=https://drobek.example.com
claudeor for every session in ~/.claude/settings.json:
{ "env": { "DROBEK_URL": "https://drobek.example.com" } }Leave it unset for the hosted drobek. claude mcp get plugin:drobek:drobek
shows the URL in use. Codex and Cursor do not expand a variable with a
default in a plugin's MCP config: add your endpoint as described under
Codex and Cursor.
The OAuth sign-in (/mcp in Claude Code, codex mcp login drobek, Cursor's
sign-in) happens against that same origin: you sign in with your account on
that drobek server and approve the scopes on its consent screen. After changing
the URL, sign in again. The server's own setup page,
<origin>/build-with-your-agent, shows its MCP endpoint.
npm ci
npm test # the npx CLI
npm run validatenpm run validate needs the Claude Code CLI (claude) on the PATH and runs:
claude plugin validate --stricton the marketplace, the plugin, and every skill variant + command (scripts/validate-claude-components.mjs);- the Cursor schema and structure validators and the Codex validator
(
scripts/validate-*.mjs, adapted from langtail/macaly-code-plugin; see THIRD_PARTY_NOTICES.md); scripts/check-drobek.mjs, which checks the tool names and workflow rules, matching bodies across the build skills and across the threeport-artifact-to-drobekandport-app-to-drobekvariants, and$ARGUMENTSand publishing restrictions in the three commands. It also checks that manifest versions match, each host uses the correct MCP URL (DROBEK_URLfor Claude Code, the hosted endpoint for Codex and Cursor), both READMEs documentDROBEK_URL, and the repository contains no drobek API keys.
When the drobek MCP tool surface changes, update the skills and the tool list in
scripts/check-drobek.mjs together with TOOL_DOCS in the drobek repository.
Bump the version in package.json and in every plugin and marketplace manifest
(npm run check fails when they differ), commit, then tag and push:
npm pack --dry-run # the package holds bin/, plugins/, the marketplaces and the docs
git tag v0.2.19 && git push origin v0.2.19The tag runs .github/workflows/release.yml. The workflow tests the package,
checks that the tag matches the package.json version, publishes to npm with
provenance through Trusted Publishing (OIDC), and creates a GitHub Release.
It needs no npm token in the repository. Check that the release appears as
Latest under Releases; if the job did not run, create the release manually.
The npm package trusts this workflow through Settings > Trusted Publisher on
npmjs.com.
MIT. See LICENSE.