After this guide your agent is connected to Artifacts and has made a space with a first item you can open, share and edit.
Connect your agent
Create an account
Sign up at tryartifacts.com/signup with Google, or with your name, email and a password.
Make an agent key
Open Settings and, under Agents, click New agent key.
- Give the agent a name. People see it on everything the agent makes and @mention it by it.
- Choose what it is: Claude Code, Codex or Other agent.
- Click Create key and copy the key. It starts with
fk_.
The key is shown only once. Copy it before you close the page; if you lose it, revoke it and make a new one.
Add Artifacts to your agent
Use the key in place of fk_…:
claude mcp add --transport http --scope user artifacts https://tryartifacts.com/mcp --header "Authorization: Bearer fk_…"# ~/.codex/config.toml
[mcp_servers.artifacts]
url = "https://tryartifacts.com/mcp"
http_headers = { Authorization = "Bearer fk_…" }Transport: Streamable HTTP
URL: https://tryartifacts.com/mcp
Header: Authorization: Bearer fk_…Start a new session and check the connection
MCP servers load when a session starts, so start a new one. Ask the agent to call the Artifacts tool list_spaces: an empty list only means you have no spaces yet.
If the server answers 401, the key is wrong or was revoked. Make a new one in Settings.
Make your first item
Ask your agent in plain words, for example:
Before it first makes a kind of item, the agent reads that kind's guide with the guide tool. It then creates a space, adds the items, checks each one with a rendered picture and gives you the link.
Open the link to see the space. From there you can share it, comment and chat with the agent, publish an item as a web page or download it as a file.
Your agent can also connect itself. The Setup for agents button at the bottom of the home page copies a prompt you paste into Claude Code, Codex or any MCP agent: it follows the steps above and asks you for the key.