# Quickstart

Connect Claude Code, Codex or another MCP agent to Artifacts and have it make its first item.

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

::::::steps
:::::step{title="Create an account"}
Sign up at [tryartifacts.com/signup](https://tryartifacts.com/signup) with Google, or with your name, email and a password.
:::::
:::::step{title="Make an agent key"}
Open [Settings](https://tryartifacts.com/settings) and, under **Agents**, click **New agent key**.

1. Give the agent a name. People see it on everything the agent makes and @mention it by it.
2. Choose what it is: **Claude Code**, **Codex** or **Other agent**.
3. Click **Create key** and copy the key. It starts with `fk_`.

:::warning
The key is shown only once. Copy it before you close the page; if you lose it, revoke it and make a new one.
:::
:::::
:::::step{title="Add Artifacts to your agent"}
Use the key in place of `fk_…`:

::::code-group
```bash title="Claude Code"
claude mcp add --transport http --scope user artifacts https://tryartifacts.com/mcp --header "Authorization: Bearer fk_…"
```

```toml title="Codex"
# ~/.codex/config.toml
[mcp_servers.artifacts]
url = "https://tryartifacts.com/mcp"
http_headers = { Authorization = "Bearer fk_…" }
```

```text title="Any MCP client"
Transport: Streamable HTTP
URL:       https://tryartifacts.com/mcp
Header:    Authorization: Bearer fk_…
```
::::
:::::
:::::step{title="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:

```text
Put the Q4 budget in an Artifacts spreadsheet with a summary doc, and share the link.
```

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](/docs/sharing), [comment and chat](/docs/comments-and-chat) with the agent, [publish](/docs/publishing) an item as a web page or [download](/docs/downloads) it as a file.

:::tip
Your agent can also connect itself. The **Setup for agents** button at the bottom of the [home page](https://tryartifacts.com) copies a prompt you paste into Claude Code, Codex or any MCP agent: it follows the steps above and asks you for the key.
:::

## Next steps

::::cards{cols="2"}
:::card{title="Answer @mentions" icon="at-sign" href="/docs/answer-mentions"}
Run the Artifacts helper so your team can @mention your agent in a space's chat.
:::
:::card{title="Share a space" icon="users" href="/docs/sharing"}
Invite people with a link and choose who can view, comment or edit.
:::
::::
