Blog//BearDrive team/.md

How to share an HTML file as a link (including the reports your AI agent writes)

Put the file somewhere that serves it as a web page, then send that URL. Google Drive and Dropbox links won't do it: Dropbox's help center says its shared links don't render HTML, and Google ended web hosting from Drive in 2016. Netlify Drop (drag a folder, claim the site, and make it public if your team keeps projects private), GitHub Pages (push to a repository), Claude Code artifacts (publish from the session) and a shared-folder link such as BearDrive's bdrive share all give you a URL that opens the page in a browser.

Short answer

Table comparing five ways to share an HTML file as a link: email attachment (recipient downloads a copy, each revision is a new file), GitHub Pages (public site from a repository, public repository on GitHub Free), Netlify Drop (drag a folder, no account, temporary password until claimed), Claude Code artifact (page on claude.ai, paid Claude plan and claude.ai login), shared-folder link with bdrive share (public link to the latest synced version, one file per link). Checked Nov 5, 2026.

AI agents write a lot of HTML now: a research report with charts, a dashboard, a one-page proposal. On your machine it opens fine. Send it to a client and it often arrives as a wall of code or a download prompt. The fix is to put the file on something that serves it as a web page and send that link instead. Below are the five common ways to do it, each checked against its own documentation on November 5, 2026.

Why doesn't my HTML file open as a page when I share it?

A browser shows a page only when the server says "this is HTML". Drive and Dropbox don't:

So the real choice is which host to put the file on.

1. GitHub Pages: good if the file already lives in a repository

GitHub Pages publishes HTML, CSS and JavaScript files straight from a repository. Push the file, turn on Pages, and every later push updates the site; GitHub says changes can take up to 10 minutes to publish.

Two things to know before you use it for a client report:

It fits reports that are meant to be public, or teams that already keep their docs in Git.

2. Netlify Drop: the fastest one-off link

Netlify Drop takes a folder you drag onto app.netlify.com/drop and gives you a live URL, with no account required. If you drop without signing in, the files are published as-is and the URL is protected with a temporary password until you claim the site by signing up or logging in. After you claim it, whether the link is public depends on your Netlify plan and team settings. To update it, drag the changed folder onto the Production deploys area of the project dashboard (after you've claimed the site).

Netlify says deploys under 50 MB work best. Because you drop a whole folder, a page that loads images or stylesheets from sibling files works here as long as they are in the folder.

3. Claude Code artifacts: if Claude made the page in a session

If the HTML came out of a Claude Code session, Claude can publish it as an artifact: a page on claude.ai that is private to you until you share it, and that updates in place when Claude republishes. You can share it with people in your organization (Team and Enterprise) or as a public link that anyone can open without signing in.

The limits come from how artifacts are hosted:

That makes artifacts a natural fit for "show this result to someone" straight from the session, less so for a file another tool or another agent wrote.

4. A shared-folder link: if your agents already write to a synced folder

If your agents save their output to a shared folder, the file can get a link where it already sits. In BearDrive that is one command:

bdrive share reports/q4-review.html

It prints a URL that anyone can open with no account, and HTML renders as a real page (BearDrive README). Because the agent writes into a synced folder, it doesn't matter which agent made the file: Claude Code, Codex, Cursor or a script.

Illustration: an AI agent writes reports/q4-review.html into a synced BearDrive folder, bdrive share prints a public link, and the client opens the rendered page in a browser with no account; when the agent updates the file, the same link shows the new version.

How the link behaves:

For teammates you don't need a public link at all. bdrive url --sync reports/q4-review.html gives a link that opens only for people signed in to your hub and in the project's organization, and they can leave comments right on the rendered HTML page. An agent can then read those comments with bdrive comments and work through them.

5. Just attach it

For one person, one time, an attachment is fine. Ask them to download the file and open it in a browser rather than in the mail preview. Send a self-contained file, and expect to send a new attachment for every revision.

Before you share: make the page self-contained

Checklist for a self-contained HTML report: inline CSS instead of style.css, data URI or inline SVG images instead of ./images, libraries from a public CDN, open the link in a private window, and reread the file before sharing.

Most "it looked fine on my machine" problems come from the page reaching for files next to it. GitHub Pages and Netlify Drop publish a whole folder, so those files come along. A Claude artifact, a BearDrive share link and an attachment each carry one file, so for those:

If you write the report with an agent, put those rules in its instructions (for example "produce one self-contained HTML file with inline CSS and embedded images"), so every report comes out shareable.

Which one should you use?

Questions

Can I share an HTML file from Google Drive as a web page?
Not any more. Google stopped serving web content from Drive on August 31, 2016. A shared Drive link opens in Drive's viewer, not as your page. Put the file on a host that serves HTML, such as GitHub Pages or Netlify Drop.
Why does my Dropbox link show HTML code instead of the page?
Dropbox's help center says its shared links don't render HTML content in a web browser. Use a static host or a sharing tool that serves HTML as a page.
How do I share an HTML report from Claude Code?
Ask Claude to publish it as an artifact, then use Share in the page header. That needs a paid Claude plan and a claude.ai login on the Anthropic API. If the file is in a BearDrive folder, bdrive share <file> gives a public link instead, whichever agent wrote it.
Will charts and JavaScript work when I share an HTML file as a link?
On a static host such as GitHub Pages or Netlify, yes. Claude artifacts allow scripts from five public CDNs. BearDrive share links run the page's scripts, so chart libraries work, but a page that depends on its own login won't.
How do I stop a shared HTML link from working?
It depends on the host: unpublish the GitHub Pages site, delete the site in Netlify, change or delete the artifact's sharing, or run bdrive share --revoke <link> for a BearDrive link. A BearDrive link can also be made to expire with --expires.

BearDrive keeps a folder in sync across every teammate and every agent.

Start freeMore posts