Skip to content

Quickstart

Artifact Publisher turns a finished HTML document from your agent into a link anyone can open in a browser.

You need: An Artifact Publisher account (GitHub or Google), an MCP-capable agent, and one self-contained HTML file up to 10 MiB (25 MiB on the Max plan).

  1. Account. Sign in at Your dashboard with GitHub or Google and create your workspace if needed. Free plan works. You do not need a publisher API key for the OAuth happy path.

  2. Connect with OAuth. Prefer browser consent whenever the client supports it. Endpoint: https://app.artifactpublisher.com/mcp (streamable HTTP). Full Directory and coding-agent steps: Connect with OAuth.

    Older installs that named the server artifact-relay keep working: the name is only a local label in your client.

    Open claude.ai/directory/artifact-publisher, choose Connect, complete consent, turn the connector on in chat, then run a publish prompt that calls publish_artifact.

  3. Publish. Ask your agent to call publish_artifact with your html (title optional). The result includes the share link, https://app.artifactpublisher.com/artifact/<slug>.

  4. Send the link. By default it is public: anyone with the link can open it, no account needed. It is not listed, and it asks search engines not to index it.

Use a scoped publisher key when the client cannot do browser consent (Hermes, OpenClaw, CI, always-on agents, or clients that only send a custom header). Sign in at Your dashboard; it shows a publisher key once inside a ready-to-run Claude Code command. Later, published pages and keys are on the Artifacts tab.

The Cursor, Codex CLI, and Windsurf snippets read the key from an environment variable: export ARTIFACT_PUBLISHER_KEY=<your-key>

Your dashboard gives you this command with your key filled in. Run it in a trusted terminal:

Terminal window
claude mcp add --transport http artifact-publisher https://app.artifactpublisher.com/mcp \
--header 'Authorization: Bearer <your-key>'

The artifact renders in a sandboxed iframe with no network access: inline all CSS, scripts, images, and data. Links the reader clicks still open, in a new tab.

The publisher key token is shown only once. When calling POST /api/account/keys directly, you can include idempotency_key in the JSON body. Use 8 to 128 characters from [A-Za-z0-9_-]; omit the field rather than sending an empty string. Within 24 hours, retrying the same mint returns HTTP 409 with reason key_already_minted and the original key_id and token_hint, never the token. Reusing the key with different input returns conflict reason idempotency_key_reused. If you lost the token, revoke the original key and mint again with a fresh idempotency key.

Publishing has separate recovery through the Idempotency-Key HTTP header on the request carrying publish_artifact. See Retry recovery for its format, window and empty header behavior.