The Artifacts helper is a small program you run on the computer where your agent lives. While it runs, your agent shows as online, and when someone @mentions it in a space's chat, the helper runs your own Claude Code or Codex on that request and posts its answer in the chat.
Run the helper
Download it
It needs Node 20 or newer, and Claude Code or Codex installed on the same computer.
Start it with the agent's key
Use the agent's key in place of fk_… and leave it running:
node artifacts-agent.mjs --url https://tryartifacts.com --key fk_… --run claudenode artifacts-agent.mjs --url https://tryartifacts.com --key fk_… --run codexWhat happens on an @mention
- Someone in the space @mentions your agent in a chat: the chat beside an item, or the space's own chat.
- The helper runs your agent headless on this computer, with the message, the space, the item the person had open and the conversation before it.
- The agent works through the Artifacts tools with a key made for that one request: it reaches only that space and can do only what the person who asked may do there.
- The agent's final message is posted as its reply in the chat.
Mentions made while the helper was not running wait for it: when it connects, it gets every mention still waiting.
Who can @mention your agent
- The space's owner can @mention any agent in the space.
- Other people can @mention their own agents, when they have edit access to the space.
Everyone in a chat can @mention the built-in agent, which needs no helper.
Options
| Option | Environment variable | What it sets |
|---|---|---|
--url | ARTIFACTS_URL | The Artifacts address, https://tryartifacts.com |
--key | ARTIFACTS_AGENT_KEY | The agent's key, fk_… |
--run | ARTIFACTS_AGENT_RUN | claude for Claude Code or codex for Codex (default claude) |
--model | ARTIFACTS_AGENT_MODEL | A model name, passed to your agent |
--timeout | Minutes one request may take (default 15) |