Publish HTML from ChatGPT, DeepSeek or Gemini

ChatGPT, DeepSeek, Gemini and other chats write complete pages: calculators, quizzes, lessons, forms, small games. Copy the code, paste it into BrewPage and get a link you can share, right from your phone.

Open the editor and paste

Publish HTML from ChatGPT, DeepSeek, Gemini or any chat

  1. 1Ask the chat for one file: add the line below to the end of your request.
  2. 2Tap Copy code under the answer, or Download the file.
  3. 3Open the editor, tap Paste for the code or Browse for the file, and tap Publish.

Line for the chat

Give me the whole result as one self-contained HTML file in a single code block. If you can send web requests, publish it on brewpage.app instead (https://brewpage.app/llms.txt) and give me the page link and the management link.
Open the editor and paste

Copied the whole answer, text and all? If it holds one HTML code block, BrewPage publishes just that block and tells you so. Save the management link from the result if you want to publish a new version later.

If your chat can run code

Some chats can run code with network access, for example Claude. Paste this prompt and the chat publishes the page by itself and replies with the link:

Prompt for the chat

When you make an HTML page or report for me, publish it on brewpage.app: POST https://brewpage.app/api/html with header Content-Type: text/html, raw HTML as the body. Give me "link" and "manageUrl"; keep "ownerToken" (header X-Owner-Token on updates) and show it to me when I ask. Add ?ns=public only for content for others; else omit ns (private). More: https://brewpage.app/llms.txt; to save visitor input: https://brewpage.app/llms-page-data.txt

From a coding agent: Claude Code, Codex, Cursor and others

Coding agents run commands, so they publish their own output. Put the prompt above into the agent's project notes, such as AGENTS.md or CLAUDE.md, and it publishes finished reports and replies with a link. For tool-based publishing, add the remote MCP server: one URL, nothing to install, and it works with MCP clients such as Claude, Codex, Cursor and Gemini:

MCP server URL

https://brewpage.app/mcp

Per-app setup: Integrations. Claude Code users can also add the Claude Code plugin and run /brewdoc:publish. Agents that load llms.txt find the whole API described there.

The request behind it

Every path above ends in the same call. JSON works well when the HTML is already in a variable:

Publish HTML from JSON

curl -X POST "https://brewpage.app/api/html" \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyAgent/1.0" \
  -d '{"content": "<h1>Build report</h1><p>All checks passed.</p>"}'

The response carries the link, the ownerToken and the expiry date. In GitHub Actions the same step is one action:

GitHub Actions step

- name: Publish report
  id: brewpage
  uses: kochetkov-ma/brewpage-action@v1.2.4
  with:
    path: ./report.html
- run: echo "Report: ${{ steps.brewpage.outputs.url }}"

Check AI output before you publish

  • One file. Generated pages sometimes point at style.css or app.js that were never written. After publishing, BrewPage warns when a page references local files that were not uploaded; inline them, or publish the folder as a site.
  • No secrets. Generated code can contain API keys, tokens or internal URLs copied from the conversation. Remove them before publishing.
  • The right audience. Public pages are listed in the gallery and the sitemap, unlisted links can be forwarded, and only a password restricts reading.
  • Browser features. If the page stores data in the browser or changes the address bar, it works best on its own subdomain; BrewPage may choose that address automatically and tells you why.

Limits

Size
One HTML or Markdown page up to 5 MB. A multi-file site up to 20 MB in total, 200 files, 5 MB per file.
Lifetime
You pick how long the page stays online; with a free profile you can extend it any time. When the time is up the content is deleted for good, with no recovery. Updating a page keeps its original expiry date; it does not extend it.
Visibility
Public pages without a password are listed in the gallery and the sitemap, and search engines can index them. An unlisted address is not private: anyone who has the link can open it. Set a password (at least 4 characters) when readers should have to enter one.
Ownership
No account needed. Keep the owner token or management link to edit or delete; a profile is optional.
Usage
Publishing and reading are rate-limited per IP address. A 429 response carries a Retry-After header that says when to try again.
Attribution
Published pages show a small BrewPage badge. Publishing follows the terms, and anyone can report a page.

Compared with typical hosting for generated pages

QuestionBrewPageTypical static-site hostCode playground
Account neededNoUsually yesDepends on the service
Can an agent publish without a humanYes: API, MCP server, plugin or GitHub ActionThrough a deploy tool and credentialsDepends on the service
What the reader seesThe page itself, with a small badgeThe page itselfThe page next to the code editor
How long it stays onlineAs long as you set, then deletedUntil you take it downVaries
Can the page save what visitors enterYes: Page data is built in, with no key in the pageUsually through an added form or database serviceDepends on the service
Good fitReports, prototypes and one-off pages from AI toolsSites you maintainExperimenting with code

Publishing AI-generated HTML — FAQ

Can ChatGPT publish a page by itself?

Not from the chat window. Copy the code it writes, open the editor, paste it and tap Publish. A chat that can run code with network access can publish by itself with the prompt on this page.

Can I publish from my phone?

Yes. Copy the code in the chat app, open the editor in your phone browser, tap Paste, then Publish. You can upload a downloaded .html file instead.

What if I paste the whole answer, not just the code?

If the answer holds one HTML code block, BrewPage publishes only that block and tells you so. If it holds several code blocks, ask the chat for one self-contained HTML file and copy the code again.

Which AI tools work with BrewPage?

Any tool whose output you can copy, and any agent that can make an HTTP request or use an MCP server: Claude Code, Codex, Cursor, Gemini CLI and others.

Do I need an API key?

No. Publishing needs no key and no account. Each publish returns an owner token for later updates.

Can an agent update the same page on every run?

Yes. Keep the owner token and send each new version with PUT /api/html/{ns}/{id}, or use the GitHub Action with its update inputs. The link stays the same and the expiry date does not move.

What if the generated page loads external files?

Files referenced by a full URL load as usual. Files referenced by a relative path must be published together as a site: drop the folder or a .zip.

How long do published pages stay online?

You choose how long when you publish, and with a free profile you can extend a page whenever you like. When its time runs out, a page is deleted for good.

Is AI-generated content allowed?

Yes, within the terms that apply to every publication. Anyone can report a page that breaks them.