CLAUDE_CODE_ARTIFACT_PREVIEW
A Claude Code environment variable, read out of the shipped bundle. It has been in the build since v2.1.247, including the newest one read.
An artifact preview action would screenshot a page locally at several widths, but it cannot run here.
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.247.
In the changelogs
6Releases whose published page names CLAUDE_CODE_ARTIFACT_PREVIEW.
-
v2.1.292
CLAUDE_CODE_ARTIFACT_PREVIEWcan now turn artifact preview offSetting CLAUDE_CODE_ARTIFACT_PREVIEW to false now switches artifact preview off, and emulator mode always gets preview
found in this entry's text, named in this entry
-
v2.1.292
Emulator engine for artifact previews is built but cannot be selected yet
An emulator engine for artifact previews in remote sessions is built, but an internal switch that starts off keeps local Chrome in use
found in this entry's text
-
v2.1.283
Artifact preview turns itself off when no Chrome-type browser is found
Artifact preview now stays off when no Chrome, Chromium or Edge is found, unless
CLAUDE_CODE_ARTIFACT_PREVIEW=trueis setfound in this entry's text
-
v2.1.283
Artifact preview is only offered when a local browser is found
The artifact preview action now needs a Chrome or Playwright browser found at startup, unless CLAUDE_CODE_ARTIFACT_PREVIEW is set to true
found in this entry's text
-
v2.1.257
New "check" artifact addon tool: local preview + runtime diagnostics, dark-launched behind two flags
A new check artifact addon previews a page locally and reads viewers' runtime diagnostics, behind two env vars.
found in this entry's text, named in this entry
-
v2.1.247
Artifact
preview: a local headless-Chrome render check that is not compiled into this buildAn artifact preview action would screenshot a page locally at several widths, but it cannot run here.
named in this entry, found in this entry's text
First cited
2The earliest release whose published evidence quoted CLAUDE_CODE_ARTIFACT_PREVIEW was v2.1.247, 26 Aug 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.
Presence across releases
1Build by build
52One row per release since the first build this name was read out of. Absent means the build was read and the name was not in it, never mined means no bundle for that release was ever archived, and a declared type or a default is only ever what that release's own bundle stated.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the environment variable does. All environment variables.