AI DevelopmentNew Release14 min readPublished June 21, 2026

A coding session as a live page · 16 MiB cap · stateless by design

Claude Code Artifacts: Ship a Coding Session as a Page

Anthropic launched Claude Code Artifacts in beta on June 18, 2026 — a coding session becomes a private, live, shareable HTML page on claude.ai. It is deliberately not a deployed app: no backend, a strict CSP that blocks every external request, and a 16 MiB cap. Available to Team and Enterprise subscribers on the CLI and desktop app.

DA
Digital Applied Team
Senior strategists · Published Jun 21, 2026
PublishedJun 21, 2026
Read time14 min
SourcesAnthropic docs + analyst coverage
Beta launch
Jun 18
2026 · Team + Enterprise
Rendered size cap
16MiB
per artifact
External network
Blocked
strict CSP · fetch/XHR/WS
Public sharing
None
org-scoped only

Claude Code Artifacts, launched in beta by Anthropic on June 18, 2026, turn a coding session into a private, live, shareable HTML page on a claude.ai URL — a way for an engineer to hand a teammate the output of agentic work as something you open in a browser rather than something you describe in a status update.

What makes this different from the chat Artifacts Anthropic shipped back in 2024 is grounding: a Claude Code artifact is built from your actual development session — the local repository, connected tools via MCP, and the conversation that produced the work. And what makes it different from a deploy is the deliberate absence of one. There is no backend. A strict Content Security Policy blocks every external network request. Anthropic states the design plainly: an artifact is a capture of work, not an application.

This guide covers what actually launched, how an artifact is assembled from the session, why Anthropic chose a stateless canvas over a hosting platform, how that contrasts with OpenAI Codex Sites, the plan and admin constraints engineering managers need to know, a role-based decision tree for when to use an artifact versus when to deploy a real app, and the unresolved trust question that sits underneath the whole feature.

Key takeaways
  1. 01
    A coding session becomes a private, live page.Launched in beta June 18, 2026, an artifact is a single self-contained HTML page published from a Claude Code session to a private claude.ai URL. It renders in any browser and updates in place as the session continues.
  2. 02
    Built from three session inputs — no infrastructure.Artifacts draw on the local repository, connected MCP tools or plugins, and the conversation history. Engineers do not wire up external data sources or stand up servers; the page is assembled from work that already happened.
  3. 03
    Stateless by design — a capture, not an app.A 16 MiB rendered cap, a strict CSP that blocks all external scripts, fonts, images, fetch, XHR, and WebSocket calls, no backend, no form storage, no multi-route support. Anthropic frames it as a capture of work, not an application.
  4. 04
    The opposite architecture to OpenAI Codex Sites.Codex Sites, released roughly two weeks earlier, hosts persistent backends — Cloudflare Worker-compatible ES modules, D1 databases, R2 object storage, and authenticated sign-in. Artifacts deliberately ship none of that.
  5. 05
    Team and Enterprise only, private by default.On by default for Team plans; an Enterprise admin must enable it. Artifacts are visible only to authenticated members of the same org and cannot be made public. Sessions using cloud-provider credentials cannot publish.

01What ShippedA coding session, published to a private link.

On June 18, 2026, Anthropic launched Claude Code Artifacts in beta for Team and Enterprise subscribers, on both the Claude Code CLI and the desktop app (version 1.13576.0 or later). An artifact is a single, self-contained interactive HTML page published from a Claude Code session to a private URL on claude.ai. It renders in any browser and updates in place as the session continues.

The interaction is plain language. You ask Claude for one — for example, “Make an artifact that walks through this PR with the diff annotated inline” — and Claude can also publish one automatically when its output suits a page. Before publishing a new artifact, Claude Code asks for permission. From the terminal, pressing Ctrl+] reopens the most recent artifact. Accepted source file types are .html, .htm, and .md; Markdown renders as styled HTML inside the artifact shell.

The live-update behavior is the part that replaces the status update. When Claude Code produces a new iteration, the open page refreshes in place and holds the viewer’s scroll position. Every publish creates a new version at the same URL, and users can restore any prior version from the Share control — so a teammate watching the link sees the work evolve without you re-sending anything. If you are new to the surface this builds on, our Claude Code 1.3 feature deep dive covers the subagents, skills, and hooks that power session context.

The page
A self-contained HTML artifact
.html · .htm · .md · ≤ 16 MiB rendered

One interactive page published from the session to a private claude.ai URL. All CSS and JavaScript inlined, images embedded as data URIs. Renders in any browser; no build step, no hosting to configure.

code.claude.com/docs/en/artifacts
The link
Live, versioned, org-scoped
same URL · refresh in place · restore any version

Each publish is a new version at the same link with full version history. The open page refreshes in place and keeps scroll position. Visible only to authenticated members of your org; no public option.

viewer host: *.claudeusercontent.com
Release snapshot
Claude Code Artifacts launched in beta on June 18, 2026 for Team and Enterprise subscribers, on the Claude Code CLI and the desktop app (version 1.13576.0 or later). Each artifact is capped at a rendered size of 16 MiB — large embedded images are the most common cause of a publish failing for size. Always confirm current limits and plan access in the official Claude Code docs, since beta details shift.

02How It WorksAssembled from the session, not from scratch.

The thing that separates a Claude Code artifact from a generic AI-generated HTML page is its inputs. According to coverage of the launch, an artifact is built from three session sources: the local repository codebase, connected tools or plugins via MCP, and the conversation history that produced the work. Engineers do not need to wire up external data sources or stand up infrastructure — the material already exists inside the session.

This is also the cleanest line between the two things called “artifacts.” The chat Artifacts Anthropic introduced in claude.ai are conversational outputs. Claude Code Artifacts are grounded in the actual development session context — live codebases, connected MCP tools, terminal output — rather than conversation-space content without active codebase coupling. The practical effect is that a Claude Code artifact can reflect the real state of your repo, not just what was typed into a chat box. For how those tool connections work, see our guide to MCP Apps and interactive UI in Claude.

Claude also applies a built-in design skill when it builds an artifact, looking first for an existing design system in the project’s CLAUDE.md or theme file. If design tokens — colors, typography, spacing — are recorded there, Claude treats them as higher precedence than its own defaults. For teams that have invested in a documented design system, that means shared pages can come out on-brand without extra prompting.

Input 1
Local codebase
Repo

The artifact is grounded in the actual repository in the session — real files, real structure. This is what lets a page annotate a diff or walk a module accurately rather than approximate it.

session context
Input 2
Connected tools
MCP

Tools and plugins connected via the Model Context Protocol feed data into the page. A dashboard can reflect what a connected tool returned during the session, not a static mock.

tools / plugins
Input 3
Conversation history
Chat

The conversation that produced the work is part of the input. The page captures the reasoning and output of the session, which is what makes it a record of work rather than a fresh generation.

session transcript

Artifacts can also be updated across sessions — but only if you give Claude the artifact’s URL. Without it, a new session always creates a new artifact rather than updating the existing one, which is worth knowing before you accidentally fork your own dashboard. The docs also describe a lightweight “editor” pattern where an artifact feeds back into the session: a triage board with draggable cards and a “Copy as prompt” button lets the result of interacting with the page flow back as a terminal prompt.

03The Design ChoiceStateless on purpose.

Most coverage leads with “you can share a live page.” The sharper story is what Anthropic chose not to build. A strict Content Security Policy blocks all external network requests: no external scripts, fonts, stylesheets, or images from other hosts, and fetch, XHR, and WebSocket calls are completely blocked. All CSS and JavaScript is inlined; images are embedded as data URIs. The page is sealed.

That seal is the feature. With no outbound calls, an artifact cannot exfiltrate data, cannot pull in a compromised third-party script, and cannot quietly phone home — a meaningfully smaller attack surface for a page that is going to circulate inside an enterprise. The trade-off is everything a normal web app does at runtime. Anthropic spells it out: an artifact has no backend, cannot store form input, cannot call an API at view time, and cannot serve multiple routes.

This is the original analysis worth sitting with. The decision is not a limitation Anthropic is racing to remove — it reads as a positioning choice. A sealed, org-scoped review canvas fits an enterprise security posture in a way a self-hosted app surface never could. The cost is that artifacts will never be the place you ship a product; the benefit is that they can be the place you safely circulate sensitive work. Anthropic resolved that tension by picking a side and saying so out loud.

I've been using Artifacts in Claude Code for everything: visual explanations of tricky code, system diagrams, quick previews of a few animation options, data analyses and dashboards I share with the team. They are a game changer for how I work with Claude. Can't wait to hear what you think!— Boris Cherny, Lead and creator of Claude Code, Anthropic
What the seal blocks
The strict CSP blocks every external network request — no third-party scripts, fonts, stylesheets, or images, and fetch, XHR, and WebSocket calls are completely blocked. CSS and JavaScript are inlined; images are embedded as data URIs. An artifact has no backend, cannot store form input, cannot call an API at view time, and cannot serve multiple routes. If your use case needs any of those, you need a deploy, not an artifact.

04Vs Codex SitesThe opposite bet to OpenAI.

The launch competes most directly with OpenAI Codex Sites, released roughly two weeks earlier. The two products take opposite architectural philosophies, and the contrast is the clearest way to understand what each is for. Per OpenAI’s own Codex Sites documentation, Codex Sites hosts projects that build Cloudflare Worker-compatible output as ES modules, with D1 — a relational database for durable structured data — and R2 object storage for files, plus workspace-authenticated user identity and public sign-in or an external identity provider. It is, in short, a place to host a persistent app.

Claude Code Artifacts is the inverse: a stateless canvas with no backend, no database, no object storage, and no public sign-in. The table below breaks the two out by architectural property — a side-by-side that, as of this writing, no other published comparison assembles. Cells are drawn from the official Claude Code docs and OpenAI’s Codex Sites documentation.

Claude Code Artifacts versus OpenAI Codex Sites, compared by architectural property.
Architectural propertyClaude Code ArtifactsOpenAI Codex Sites
Runtime & persistence
Backend modelNone — stateless pageCloudflare Worker-compatible ES modules
Data persistenceNo databaseD1 relational database
File / object storageImages embedded as data URIs onlyR2 object storage
External API calls at view timeBlocked by strict CSPSupported via the hosted runtime
Access & surface
Form input storageNot supportedSupported via D1 / R2 bindings
Multi-route supportSingle page onlyFull app routing
AuthenticationOrg members only; no public sign-inWorkspace identity, public sign-in, or external IdP
Public sharingNot possiblePossible with authentication-enabled projects
Best framed asA capture of work — review canvasA production-app host

Read the table as two answers to two questions. If the question is “where does my team inspect and trust an agent’s work,” the stateless review canvas is the cleaner fit. If the question is “where do I host the thing my customers use,” the persistent platform is. They are not really substitutes — which is why a team can reasonably end up using both. For a broader look at how these agents stack up, see our comparison of comparing Claude Code and Codex as coding agents.

05Plans & AdminWho can publish, and who controls it.

Availability is narrower than the headlines suggest, and the details matter for anyone planning a rollout. Artifacts are available on Team and Enterprise plans only. On Team plans they are enabled by default; on Enterprise plans an administrator must enable the feature under Settings > Claude Code > Capabilities before any user can publish. There is no Free or Pro access at beta.

There is also an authentication constraint that catches teams off guard: artifacts require direct Anthropic API authentication. Sessions using an API key, a gateway token, or a cloud-provider credential — Amazon Bedrock, Google Cloud Vertex AI, or Microsoft Foundry — cannot publish artifacts. If your organization runs Claude Code through a cloud provider, this feature is, for now, off the table on that path.

Access is private by default. Every artifact is visible only to its author until manually shared, and sharing is limited to authenticated members of the same organization — there is no option to make an artifact publicly viewable on the internet. Artifacts are served from *.claudeusercontent.com, so organizations with restricted outbound network access must add that sandboxed origin to their allowlist alongside claude.ai.

Admin
Compliance API + audit log
GET / DELETE /v1/compliance/code/artifacts

Admins can list all artifacts, retrieve a specific version's content, and delete artifacts. Publish, share, and delete events appear in the audit log under claude_artifact_* event types. Retention is configurable separately for private and shared artifacts.

org admin · Settings > Data & privacy
Engineer
Per-session off switch
CLAUDE_CODE_DISABLE_ARTIFACT=1

Disable artifacts per-session via the environment variable, or add "disableArtifact": true to the settings file, or add Artifact to permissions.deny. Useful when you want Claude Code in a context where publishing should never happen.

env var · settings · permissions.deny
Compliance posture limits
Organizations with CMEK (Customer-Managed Encryption Keys), HIPAA policies, or Zero Data Retention enabled cannot use Artifacts — these compliance postures are incompatible with the feature at beta launch. The official docs list them as current constraints; no timeline for resolving them was published at beta, so plan around the constraint as it stands today rather than around an expected fix date.

06When To UseWhen to ship an artifact, when to deploy an app.

Anthropic lists use cases in its docs but does not provide a role-based decision tree, and the most common question the feature raises — “is this the right tool, or do I need a real app?” — goes unanswered. The table below maps roles to a recommended artifact, an example prompt to trigger it, and the line where you should reach for a deploy instead. Use it as a starting heuristic, not a rule: the deciding factor is almost always whether anything needs to persist, authenticate beyond your org, or call an API at view time.

Claude Code artifact use cases by role, with example prompts and the point at which to deploy a real app instead.
RoleRecommended artifactExample promptDeploy a real app when
EngineerAnnotated PR / diff walkthroughMake an artifact that walks through this PR with the diff annotated inline.Reviewers need to edit and persist comments back to the repo.
SRE / on-callIncident timeline / diagnosis pageBuild an artifact summarizing this incident: timeline, root cause, and the fix.The page must poll live metrics or call an API at view time.
Security reviewerFindings report with code referencesMake an artifact listing each finding with the file, line, and suggested fix.Findings need a tracked, mutable workflow with assignment.
Engineering managerRead-only metrics dashboardTurn this query result into a dashboard I can share with the team.The dashboard must refresh on its own from a live data source.
ArchitectSystem diagram / design explainerCreate an artifact diagramming this service and how the pieces connect.The diagram must stay in sync with infrastructure automatically.
DesignerAnimation / UI option previewsShow me three animation options for this component as an artifact.Stakeholders outside the org must access the preview.
Legal / compliancePlain-language change summarySummarize what changed in this release for a non-technical reviewer.CMEK, HIPAA, or Zero Data Retention is enabled on the org.
Capture work
Inspect & share

A diff walkthrough, an incident write-up, a read-only dashboard, a design preview. The content is finished work that teammates read once and act on. Nothing needs to persist or call out. This is the artifact's home turf.

Use an artifact
Run a product
Persist, auth & serve

Anything that stores form input, authenticates users beyond your org, calls an API at view time, serves multiple routes, or must stay live for customers. The strict CSP and stateless model rule artifacts out here.

Deploy a real app
Cross-org reach
Outside your organization

If anyone outside your Claude organization needs to view the page, artifacts cannot help — there is no public sharing. A hosting platform with public sign-in, such as a Codex Site or your own deploy, is the path.

Deploy or host publicly
Regulated org
Compliance-bound teams

If your org runs CMEK, HIPAA policies, or Zero Data Retention, artifacts are unavailable at beta. Route the work to your existing internal tooling and revisit when Anthropic publishes a compatible path.

Use existing internal tooling

07The Hard QuestionA page that reads as authoritative still has to earn it.

Here is the part the marketing pitch skips. The contested layer in AI coding tools, as analysts describe it, is moving from code generation to the surface where teams inspect and trust an agent’s work. A governed, org-scoped record of the session — with access controls and retention — makes that visibility deployable inside an enterprise. That is genuinely the right framing for why artifacts matter: the value is not the page, it is the trustworthy record.

But a record that looks authoritative is not the same as a record that is correct. As Mitch Ashley of The Futurum Group has argued, a live page that reads as authoritative still has to earn it through review, or it scales the very trust-without-verification it appears to resolve. A beautifully rendered dashboard generated by an agent can be confidently wrong, and the polish makes the error easier to miss, not harder.

The forward-looking read is that artifacts shift where the review burden lands rather than removing it. They make agentic work easy to circulate, which is exactly why the discipline around verifying that work has to scale with it. Teams that treat a shared artifact as a prompt for review — not as a settled answer — will get the upside. Teams that treat the polish as proof will quietly accumulate confident mistakes. The feature is a real step forward for visibility; it does not, on its own, close the verification gap it makes more visible.

Analyst view — verification still required
Analysts at The Futurum Group frame the shift candidly: the contested layer in AI coding tools is moving from code generation to the surface where teams inspect and trust an agent’s work — and a page that reads as authoritative still has to earn it through review, or it scales trust-without-verification rather than resolving it. Treat a shared artifact as a prompt for review, not as a settled answer.

08Token CostA styled page costs more than terminal text.

One implication nobody else in the launch coverage flags: artifacts generate output tokens like any other response, and a styled page with inline CSS, JavaScript, and data-URI images is more token-intensive than plain terminal text. For an engineering manager tracking usage, the upgrade from a terminal summary to a polished shared page is not free — it is a real, if modest, shift in output volume per response.

Anthropic does not publish a token cost per artifact, and it would be a mistake to invent one — the right way to think about it is relative, not absolute. The docs do offer optimization guidance: prefer SVG or HTML/CSS for diagrams over embedded raster images, omit interactivity you do not need, and have the page summarize large datasets rather than inlining them. Each of those choices trims the output the model has to generate.

The practical takeaway for budget owners is to be intentional about when a page is worth the tokens. A diff walkthrough that saves four async back-and-forths is plainly worth it; auto-publishing a styled page for every routine result is not. If you are sizing AI usage across a team and want help turning that into a cost model, our AI digital transformation engagements start with exactly this kind of usage-and-spend analysis, and our custom web development work covers when a page should graduate from an artifact to a real deploy.

Optimize
Vector over raster
SVG

Anthropic recommends SVG or HTML/CSS for diagrams over embedded raster images. Vector markup is far lighter than a data-URI-encoded PNG, so the same diagram costs fewer output tokens.

diagrams
Trim
Omit unneeded interactivity
Less

Interactivity you do not actually need still has to be generated as inline JavaScript. Leaving it out is a direct token saving with no loss to a page meant to be read, not operated.

interactivity
Summarize
Summarize large datasets
Sum

Rather than inlining a large dataset into the page, have the artifact summarize it. The reader gets the signal, and the model generates far fewer tokens than a full data dump would require.

data

09ConclusionThe end of the status update.

The shape of agentic review, June 2026

The contested layer is no longer code generation — it's where teams trust the work.

Claude Code Artifacts answer a narrow, real problem: how do you hand a teammate the output of agentic work as something they can open rather than something you describe. The answer is a private, live, versioned page built from the session itself — the repo, the MCP tools, the conversation — that refreshes in place as the work evolves. For inspect-and-share workflows, that genuinely replaces several async messages with one link.

The design discipline is what makes it interesting. Anthropic chose a sealed, stateless canvas over a hosting platform — no backend, a CSP that blocks every external request, org-only access — and said so explicitly. It is the opposite bet to OpenAI Codex Sites, and the two are better understood as complements than as competitors: a review canvas and a production-app host solving different halves of the agentic-development workflow.

The honest caveat is the trust gap. A page that reads as authoritative still has to earn it through review; the polish does not certify the content. Artifacts make agentic work easy to circulate, which raises, not lowers, the bar on verifying it. Treat a shared artifact as a prompt for review and the feature is a real step forward. Treat the render as proof and you scale the exact problem it appears to solve. For most teams the smart first move is small: pick one inspect-and-share workflow, ship it as an artifact, and keep the review where it belongs.

Adopt agentic development the right way

Make agentic work easy to share without scaling the trust gap.

Our team helps engineering and marketing organizations adopt agentic development tools — Claude Code, MCP, and the review and governance workflows around them — and decide when work belongs in an artifact versus a real deploy, delivered in days not quarters.

Free consultationExpert guidanceTailored solutions
What we work on

Agentic development engagements

  • Claude Code rollout — plans, admin controls, guardrails
  • MCP tool integration for grounded agentic workflows
  • Review and governance for AI-generated work products
  • Usage and cost modeling across Claude Code teams
  • When to ship an artifact vs deploy a real application
FAQ · Claude Code Artifacts

The questions we get every week.

Claude Code Artifacts are a feature Anthropic launched in beta on June 18, 2026 that turns a coding session into a single, self-contained interactive HTML page published to a private URL on claude.ai. The page renders in any browser and updates in place as the session continues. Each artifact is built from three session inputs — the local repository codebase, connected tools or plugins via MCP, and the conversation history that produced the work — so engineers do not need to wire up external data sources or stand up infrastructure. The feature is available to Team and Enterprise subscribers on both the Claude Code CLI and the desktop app (version 1.13576.0 or later).