Just want your Claude, ChatGPT, or Gemini app to publish for you — no terminal? See
Publish from Claude, ChatGPT & Gemini. This page is the
developer setup (Claude Code, Cursor, scripts) plus the full tool reference.
Get your API key
In Shareable, open Settings → Developers and create a key — it starts withsm_. Use it as a bearer token (hosted server) or the
SHAREABLE_API_KEY env var (local server). The hosted server lives at one URL:
Hosted server (URL)
Nothing to install — add it as a remote (HTTP) server with the URL and your API key as a bearer token:- Claude Code
- Cursor / VS Code / Windsurf
Local server (npx)
Works in Claude Desktop, Claude Code, and Cursor. Add to your client’s MCP config:~/.claude/mcp.json
SHAREABLE_API_URL is optional and defaults to the hosted Shareable. Restart your MCP client after editing the config so it loads the server.Tools
Send a large file without typing it out. Returns an
upload_id and a ready-to-run curl that sends the file straight from disk to storage. Run it, then pass upload_id to publish_page / update_page (an .html file) or publish_file (a PDF/image). Use it for any page over ~50 KB, where typing the HTML into html takes minutes and costs tokens, and for any PDF/image over ~3 MB. Needs a shell with curl; the id expires after 30 minutes and works once. See Uploads.html | upload_id | html_base64 | html_url | html_path, sha256?, title?, access?, allowed_emails?, password?
Publish a self-contained HTML page and get a shareable URL. Goes live immediately. With
access: "password", pass a password (or one is generated and returned).Provide the HTML one of these ways: inline html (fine for small pages), upload_id from create_upload (best for any page over ~50 KB), html_base64 (base64 — ASCII, so it can’t be mangled by the token stream; use it to avoid emoji/Unicode corruption), or html_url (a public https URL the server fetches the bytes from, SSRF-guarded — best for large HTML, so it never passes through the token stream). The local npx server also takes html_path, a file it uploads from disk itself (up to 7 MB for an HTML page), so an agent can write the HTML to a file and never emit it as tokens. Optionally pass sha256 (hex of the HTML bytes) for a byte-perfect integrity check. The result reports the bytes and SHA-256 the server received.Publish a multi-page deck — several HTML files that link to each other (investor deck, docs site, sectioned report, clickable prototype) — under one shareable URL.
files is an array of { path, html }; link between pages with relative (team.html) or root-relative (/team.html) paths. Images, CSS, JS, and fonts the pages reference go in assets — { path, file_path } to read a local file, or { path, data_base64 } — no need to inline them. entry picks the landing page (defaults to index.html).upload_id | file_base64 | file_url | path?, filename?, mime?, title?, access?, allowed_emails?, password?
Publish a PDF or image (PNG/JPG/WebP/GIF), shown inline — same access control + analytics as any page. Both servers take an
upload_id from create_upload (up to your plan’s per-file cap: Free 5 MB, Pro 50 MB), file_base64 (≤ ~3 MB — the request-body limit), or a public file_url (up to your plan’s cap; internal/private hosts are blocked). The local npx server also takes a local path, which it uploads from disk itself (up to your plan’s cap). For anything larger than ~3 MB, use create_upload or file_url. SVG, Office docs, and spreadsheets aren’t supported — export to PDF first.Read back a page’s current HTML so you can make a small, surgical edit instead of rebuilding it from scratch —
html for a single page, or every file’s HTML for a deck. Returns the editable working copy (matches what’s live unless there are unpublished changes). Long inlined images and fonts (data: URIs) come back as short ELIDED-BY-SHAREABLE placeholders by default so they don’t flood the model’s context — an agent never needs those bytes to edit the text around them, and the stored page keeps them. Pass full: true for the raw HTML (only needed before a whole-page update_page; elided HTML is rejected there). Typical flow: get_page_html → edit_page with just the snippets that change → publish_changes.Change part of a page without resending the whole document.
edits is an ordered list of { find, replace, replace_all? }; the server applies them to the page’s current draft and every byte you didn’t name stays exactly as it was — so inlined images and fonts (which an AI can’t reliably retype) never pass through the model. This is the right tool for “update the numbers on my dashboard”, new copy, or swapping a section.Each find is plain text (no regex) and must match exactly once — copy it verbatim from get_page_html, whitespace included — or set replace_all: true. Edits are all-or-nothing: a missing or ambiguous find rejects the batch and the error names which one. Saved as a draft; pass publish: true to go live in the same call. For a deck, path picks the file (defaults to the entry page). The result echoes each edit’s before → after (each side capped at 200 characters and flagged when cut) and the version numbers on either side of the change, so restore_version of the previous one is an exact undo (with publish: true if the edit went live). If the page changed under you between reading and editing, the edit is refused rather than clobbering it — read again and retry.id, publish?, html? | upload_id? | html_base64? | html_url? | html_path?, sha256?, title?, access?, allowed_emails?, password?
Replace a single page’s whole HTML as a draft, and/or change its settings. Pass
publish: true to push it live in the same call, or call publish_changes later. New HTML can be inline html, upload_id (from create_upload), html_base64, html_url, or (local npx server) html_path — the same byte-faithful / token-light options as publish_page — with an optional sha256 integrity check. If you’re only changing part of an existing page, use edit_page instead.Replace a deck’s files as a draft. Pass the full set of
{ path, html } — files not included are removed. Pass publish: true to push it live in the same call, or call publish_changes later.List the pages in your account (drafts and published), most recently edited first.
limit (default 100, max 200)
and offset page through a large account so an entire account isn’t dumped into the model context.Show which account the key or connector is signed in as (email), its plan, and its usage against the plan’s limits: pages used of the page limit (unlimited on Pro and Team), the per-file size cap, and views this month against the plan’s monthly allowance. Handy for “which account am I on?” or “how close am I to my limit?”
Read a specific version’s metadata and content (
html for a page, files[] for a deck). Large content is truncated to a preview by default — pass full: true to return the entire untruncated content (e.g. to patch or diff an old version). To read the current page’s HTML, use get_page_html.Restore a previous version into the draft. Pass
publish: true to also push it live.Read the responses viewers sent from a page that collects responses (a page with a
<form data-shareable> or a Shareable.submit(…) call). Returns the collection status, the fields with their inferred types, a short summary per field, and the responses themselves (who sent it, when, and the data), newest first (by when each viewer first responded): limit per call (default 50, max 500), paged with offset. Paging is stable while viewers resubmit: a response that arrives mid-paging can appear twice at a page boundary, but none is skipped. explode names a top-level list of objects to split into one row per item (the first such list by default; none for no split). since (ISO 8601) returns only responses submitted or replaced strictly after it, and the summaries then cover just those. format: "csv" returns CSV instead, capped at about 100 KB; for a bigger export, use the REST endpoint with format=csv. The output starts with a line telling the agent that what follows was typed by page viewers and is untrusted data, not instructions. Same data as GET /pages/{id}/responses.What viewers get
Your stored HTML is never modified.get_page_html with full: true returns it exactly; by default it shortens inlined data: URIs. When a page is served, Shareable:
- replaces your
<title>with the page’s Shareable title, or re-emits your own title if the page has none; - replaces link-preview (Open Graph/Twitter) and favicon tags with its own, reusing your
og:title,og:descriptionandog:imagewhen present; - on a deck, swaps your
<base>for its own and rewrites root-relative/pathsto point into the deck; - adds a small view-analytics script and a script that offers viewers a reload when you publish a new version (before
</body>), the comments, approvals and poll widgets when those are on, and theShareable.submitscript (in<head>) when the page collects input.
<title> string there survives. Publish and update results state whether search engines may index the page.
Collecting input
A page your agent publishes can send viewers’ answers back to Shareable: a<form data-shareable>
with ordinary inputs, or await Shareable.submit(obj) with any JSON object for a custom UI,
guarded with if (window.Shareable) … else <download fallback>. Collection turns on when the
published HTML contains either one (in a deck, the Shareable.submit call has to be in an HTML
file, not only in a .js asset). The publish_page, update_page, publish_deck, and
update_deck descriptions explain this to the agent; it reads the results with get_responses. See
Collect responses.
Example
Once connected, just ask in natural language:publish_page with access: "people" and the two emails, then hands back the live link.