Skip to main content
Describe a page in the chat, and Claude or ChatGPT makes it as an artifact on your canvas. Change it the same way until it’s right, then share it as a file, use it in any of your projects, or build it into your codebase.

Make an artifact

There are three ways to make an artifact:
  • Ask in chat, for example “Make an artifact with three pricing page ideas.”
  • Draw one. In the toolbar at the bottom of the canvas, choose Artifact, or press A. Drag to draw a box, or click to place one.
  • In the left rail, choose Artifacts, then +.
A new artifact you draw yourself starts blank and says To design it, describe what you want in chat. It’s named Artifact 1, Artifact 2 and so on until you rename it. On the canvas, an artifact’s outline, title and handles are blue, so you can tell it apart from your app’s frames.

Change an artifact

To change an artifact, ask the agent in chat. Your code stays as it is until you build the artifact into it.
  • To change it in place, say what to change, such as “Make the headline bigger in Artifact 2.”
  • To keep the original and try something new, ask for a variation. The agent makes a separate copy beside it.
  • To point at one part, click an element inside the artifact to select it, then ask.
  • To change a few words yourself, double-click the text in the artifact, type, and press Return to save. Onlook tells you when text can’t be edited this way.
While the agent works on an artifact, its title shimmers.
Artifacts have no version history. When the agent changes one, the change replaces what was there. To keep a version, ask for a variation first.

Work with artifacts on the canvas

Drag an artifact to move it. To resize it, select only that artifact and drag a handle. To rename it, double-click its title. Right-click an artifact for more:
Duplicating, copying and pasting, or adding an artifact from the library all place the same artifact again, so a change to one shows in every place. To get an independent copy, ask the agent for a variation.

Build an artifact into your codebase

When you want an artifact in your product, the agent can build it in your project’s code.
  1. Right-click the artifact and choose Build in this project….
  2. The chat box fills with a request to build the artifact in your project’s code, using your existing components. Edit it if you want, then send it.
The agent changes your project’s code, and you see the result in your frames. Your artifact stays as it was.

Use artifacts across projects

To find an artifact from any project, open Artifacts in the left rail. The library lists every artifact you’ve made, newest first.
  • Search by title, page name or the words on the page.
  • To put one on the canvas, choose Add to canvas, or drag its card onto the canvas.
  • To see one full-window, click its thumbnail. Press Escape to close it.
  • A card’s ⋯ menu has Rename, Export HTML, Export PDF and Delete artifact.
Once you’ve made your first artifact, the projects page also has an Artifacts section with the same list.

Export an artifact

To share an artifact with someone who doesn’t use Onlook, export it.
  • HTML is one file that opens in any browser, without a server or Onlook. It can be up to 20 MB.
  • PDF prints the page on A4 sheets.
  • PNG and JPEG save a picture of the page.
To export from the canvas:
  1. Select one or more artifacts, right-click and choose Export….
  2. The Export panel opens with HTML selected. To add PDF, PNG or JPEG, choose Add a filetype.
  3. Choose the export button at the bottom of the panel, and pick where to save each file.
To export from the library, open a card’s ⋯ menu and choose Export HTML or Export PDF. To protect your project, Onlook checks each artifact before it saves. If the page contains file paths from your Mac, local addresses, your project’s name or credentials, the export stops and says what to remove. Ask the agent to remove them, then export again.

Where artifacts are kept

Artifacts are saved on your Mac, in Onlook’s own data folder, outside your project. They’re never committed to your repository or included in a pull request. An artifact keeps working when your app stops and after you restart Onlook. If you delete the project an artifact was made in, the artifact stays in your library. An artifact can’t reach the internet or your dev server.

Troubleshooting

You haven’t made an artifact yet. See Make an artifact.
The artifact was deleted, so this spot on the canvas is empty. To clear it, choose Remove from canvas.
The page contains something private. Ask the agent to remove it, then export again.
The page loads something from the internet or uses a file type export can’t include. Ask the agent to bundle or remove it, then export again.
Ask the agent to shrink or remove large images, or to split the page into more than one artifact.
The agent changed the artifact during the export. Export again when it’s finished.
Your Mac couldn’t write to that folder. Export again and choose a different one.
You can view this artifact but not change it in this version. To change or export it, update Onlook.