Artifacts
When a Claude session publishes a page (a report, a dashboard, a one-page explainer, a small site), cterm records it for the project, keeps a copy of the page and shows it in the Artifacts panel beside the session. The session publishes it straight into cterm, with nothing on claude.ai, and you get a link of cterm's own to hand on. Pages a session published to claude.ai before are listed the same way.
What it is for
A session that builds a page for you leaves it on claude.ai, in a gallery that knows nothing about your projects. cterm keeps those pages where the work is:
- They belong to the project. Any session of the project sees the whole list, with what it made itself first. The pages outlive the session that made them, so an artifact from last month is still one click away after its session is gone from the list.
- cterm holds its own copy. The page is copied when it is published, so it opens from cterm even when the session's scratchpad has been wiped or the artifact was deleted on claude.ai.
- A link to hand on. The copy has an address of its own that opens the page for anyone who holds it, without an account, until you make a new one.
How to use it
Ask a session to publish a page
Ask for it in your own words: "publish the board so I can send it". The session runs
cterm artifact publish <file or folder> --title "<name>" --description "<one sentence>"
A file is published as the page; a folder is published with its index.html as the page and its other files (styles,
scripts, pictures) beside it. The command prints the page's link at cterm's public address, which the session gives
you. Publishing the same file or folder again from the project updates the page and keeps its link, so a board
rebuilt every morning stays at one address.
A session cannot publish to claude.ai. cterm refuses the Artifact tool's publish (and its quickstart) and the making
of a Claude Doc, whatever the session's permission mode, and tells Claude to publish through cterm instead; the tool
card shows the refused call. Reading, opening or deleting something already on claude.ai still works, and cterm
artifact link <claude.ai URL> still gives cterm's link to the copy of a page published there before.
Open the panel
- Beside a session: the Artifacts button in the session head shows how many the project holds; press it to open the panel. Rows are grouped under This session and Elsewhere in the project.
- For a project, without a session: the layers icon with a count on the project's group head in the sidebar, or Artifacts… in the project's menu, opens the project's list on its own in the main area. Its tooltip says how many were published and how many were deleted on claude.ai.
- On the project page: the Artifacts tab shows the same list.
- From the chat: when Claude publishes a page, the Artifact card's title and any claude.ai artifact link in Claude's text open the panel on that page. A Cmd-click or a middle click opens the copy in a new tab instead.
Read a page
Click a row. The page shows in a frame under a head with its title, a line naming the session that made it (and the one that last republished it, when another did) and a short description. Each row shows when it was last published; a page republished several times shows its count, such as v3. A page deleted on claude.ai is struck through and still opens from cterm's copy.
The head's links:
- claude.ai: the artifact on claude.ai, where its own sharing and comments live. A page published straight into cterm has none, and its head says in cterm after who made it.
- Open: cterm's copy in a tab of its own.
- Copy link: the copy's address, to paste anywhere (see below).
- Chat: a chat beside the page where visitors ask about it (see below).
- New link: replaces the copy's address.
- Remove: drops the artifact from cterm, after a question. The artifact on claude.ai stays; a page published straight into cterm goes with its link.
Go back to the session that made it
The sessions on the line under the title are links. Rest the mouse on one to see its card (its project, state, item and where it stands), click it to open that session in the main view, or click the small icon after it to open it in a dialog over the Artifacts view, which is as you left it when the dialog closes. An ended session opens as it is, to read; it is not resumed until you ask. The session you are in when the panel sits beside it stays plain text.


artifacts-shot.mjsA session removed from cterm's list (Remove, or Close and clean up after a merge) keeps its name on the artifact. The project's owner gets Open conversation beside it, which brings that conversation back as a session of the project, as the project page's past conversations do. An artifact whose session was removed before cterm kept these names says "a session no longer listed".


artifacts-shot.mjsChat, New link and Remove show to the project's owner. Two kinds of rows have no page to show: one made from an Artifact type (a deck, a document, a design) and one cterm could not copy; both say so and open on claude.ai.
Share a page
Copy link puts the copy's address on the clipboard, built from cterm's public address when one is set. Whoever opens it sees the page alone, with no sign-in (unless you asked for one, below) and nothing else of cterm. The link does not expire. When it has gone somewhere it should not have, New link makes a fresh address and every link shared so far stops working; the page itself stays. Pasted into a chat app, the link draws a preview card with the page's title and description.
A link copied from the chat (the address of an artifact inside cterm) is different: it asks for a sign-in first, so it is for people who already use your cterm.
Ask who opens a page
A page that is not for everybody can ask for a sign-in by email. Access, in the page's head, offers three ways:
- Anyone with the link: the link opens the page, as above.
- Only people who sign in: nothing of the page is served until the visitor has proved an email on the list.
- Public page, private part: the page opens for anybody, and the files in its
private/folder (or the paths you name) ask for the sign-in. The page itself decides what a guest sees and where its Sign in button goes.
Who may sign in takes an email per line, or *@example.org for everybody of a domain. Left empty, the page
uses the project's list, which you write once in the project's Settings tab under Artifacts' sign-in. The
line on top of the section says who gets in as things stand, and warns while nobody is on the list or cterm has no
mail server yet. Press Save. You keep seeing the page in the panel as before, as a preview.

artifact-access-shot.mjsWhat a visitor meets: a page of cterm's with the artifact's title that asks their email, then one that asks for the six-digit code cterm mailed to it. The code lasts ten minutes and only works in the browser that asked for it. Once in, that browser is known for 30 days, on every page of your cterm whose list holds the same email, so a colleague signs in once for all the team's pages. The pages come in Spanish for a browser set to Spanish.

artifact-access-shot.mjs
artifact-access-shot.mjsThe second page says the same whatever email was typed ("if this email may open the page, a code is on its way"), so nobody can find out who is on your list by trying addresses. Take an email off the list and its owner is shut out at their next click, with no need for a new link.
A session sets the same thing when it publishes: --access login or --access partial, with --allow "ana@example.com,
*@example.org" for a list of the page's own and --private "<paths>" for other private paths than private/.
cterm artifact access <id> shows what stands and changes it. Only a session of the project's owner may set it.
Before the first sign-in, tell cterm how to send mail, once, from a terminal: cterm mailer set host <server>,
from <address>, user <name> and pass --stdin with the SMTP details of whatever mail service you use, then
cterm mailer test <your address>.
Put a chat beside the page
Chat opens Chat on another page: a chat box beside the page, on its link and on any site you name, where visitors ask questions about what the page shows. The form asks for:
- Sites that may show it (the page's own link always may).
- Title of the box.
- Let it read the project's files, off by default; read-only, with
.envfiles, keys and.gitkept out. - Answers on (the model), Ends, Questions a day and …per visitor's address.
Press Make the chat. From then on the page's link opens the page with the chat beside it. Each visitor has a conversation of their own, answered from the page's text, never by one of your sessions. Each chat lists the tag to paste into another site, its counts and What was asked, and Revoke stops it everywhere. Making a chat needs an admin account, since every answer runs on this Mac's Claude plan.
How it works
- Publishing into cterm.
cterm artifact publishasks the daemon, as the session's owner, to copy the file or folder (from the session's folder or scratchpad only) into a row of the project with an id of cterm's own and the path it came from, so the same path again finds it.cterm artifact listshows what the project holds. - Recording. The Artifact tool's
PostToolUsehook carries the local page, its supporting files and the published URL. The daemon stores a row per artifact in its store (artifacts.ts), keyed by the claude.ai id, with the session that made it and the one that last republished it, each with its Claude session id and its name, kept again as they are when the session leaves the list. Sessions that ran before are filled in from their transcripts when you open them. - The copy. The page and the files the tool named are copied into
~/.cterm/artifacts/<id>/, but only from the session's own folder and scratchpad. cterm keeps the latest version with a count of how many there were, not every version. Backups include the copies. - Serving. The copy is served at a long random address of its own, in a sandbox: its scripts run, but cannot reach cterm's cookies, storage or API, and the address is never sent to sites the page loads from. Features that only exist on claude.ai (a page's shared database, comments, "ask Claude") do not work in the copy. A link the page opens in a new tab leaves the sandbox, so another site (a job ad, a map) opens as it would anywhere.
- The sign-in. The list is checked at every request, so a change takes effect at once. cterm keeps, per
browser that signed in, the email it proved and a cookie only cterm's server can read; a published page never sees
it, and learns who looks from
window.cterm.viewer({ email }, or null), withwindow.cterm.login()andwindow.cterm.logout()to open the sign-in and end it. A signed-in visitor's address gains a segment of its own, which is how the page's files reach them; pasted to somebody else, that address asks them to sign in. What must stay private belongs in the private files: a part of the public page hidden by a stylesheet is still sent to everybody. The chat of a partly public page answers from the public page alone. - Removing. Remove drops the row and the copy, and cterm remembers the removal so the transcript does not bring the artifact back; nothing on claude.ai is touched. A project's artifacts switch in its Settings tab turns the panel and the recording off.
- The chat is one
claude -pcall per question on a restricted Claude Code that can only read the page (and the project, when allowed), with limits per day and per address.
Scenarios
Finding last month's report
Pau asked a session in September for a page comparing three hosting offers. The session is long gone from the list. He clicks the layers count on the project's group head, finds "Hosting comparison" under the project's artifacts and reads it in the frame, even though the scratchpad it was written in was wiped at the last reboot.
A board rebuilt after each search
A session keeps a job search's postings in a spreadsheet and builds a page of them, cards with each posting's report.
It publishes the folder with cterm artifact publish, and you send the link to the person searching. After the next
search round the session rebuilds the page and publishes the same folder again: the link they bookmarked on their
phone shows the new postings.
Sending a page to a client
You had a session publish a one-page summary of a quote. You press Copy link and paste it into an email. The client opens it on their phone with no account, and the preview in their mail app shows the title. A week later the quote changes and the old link should die: New link, and the first address stops working.
A report for the client's team only
A session publishes the quarter's report for a client with --access login. In the project's Settings you wrote
*@client.example once, so everybody at the client gets in with their work email and nobody else does. You send
the link in a group chat without worrying where it ends up: whoever opens it without such an email gets the sign-in
and no code. When a contractor of theirs needs it too, you add their address to the page's own list.
Prices in public, margins for the team
The price list is a public page. Its private/ folder holds the margins, and the page shows a Sign in button to
guests and the margins to whoever signed in with a company email. One page, one link, two audiences.
A page that answers questions
An admin publishes a page of the team's plans and prices and adds a chat from Chat, limited to 20 questions a day per visitor. Colleagues ask "which plan fits five people?" in the box beside the page. On Friday the admin reads What was asked to see what the page failed to make clear.
Related
- Sessions and the rich pane: where the Artifact card shows when a session publishes.
- The project page: the Artifacts tab and the project's other tabs.
- Sharing: sharing a whole session by link, and chats on other sites.
- Accounts and projects: who owns a project and its switches.