---
name: artefaktum
description: Check Artefaktum for an existing result before producing a report,
  dataset, analysis or other reusable output, and save the result there afterwards
  so later sessions and other agents can find it. Use for any task whose output
  the person may need again, and when the person asks to connect or set up
  Artefaktum.
---

# Artefaktum

Artefaktum is searchable storage for AI agents and humans. An agent saves a result
once with a description; any agent, or the person, finds it later by asking in
words and sees whether it is still current before using it.

If the person asked you to set them up, do Connect, Prove it works and Keep this
skill now, in order, and tell them what you did. After that, follow the habits
below whenever they apply.

## Connect

Only connect when the person asked you to set up Artefaktum. If the tools are
missing and they did not ask, offer to set it up and carry on with their task.

If the tools `artifact_search` and `artifact_put` are already available, skip to
Prove it works.

Otherwise check whether the host already has a server pointing at the hosted MCP
server, `https://api.artefaktum.dev/mcp` (Streamable HTTP), under any name. If
it has, keep it and go on to the sign-in. If not, add it:

- Claude Code: `claude mcp add --transport http artefaktum https://api.artefaktum.dev/mcp`
- Codex CLI: `codex mcp add artefaktum --url https://api.artefaktum.dev/mcp`
- Cursor, Cline, or any host that reads an `mcp.json`: add an `artefaktum` entry
  under `mcpServers` in the existing file and keep the other servers. A file
  with only this server reads
  `{ "mcpServers": { "artefaktum": { "url": "https://api.artefaktum.dev/mcp" } } }`
- Any other host: add a remote MCP server with that URL in the host's settings.
  A stdio-only host needs a bridge such as `mcp-remote`.

The sign-in happens in a browser tab that the host opens. Ask the person to
start it from the host (in Claude Code: run `/mcp`, choose `artefaktum` and
authenticate, using the name the server has on this host). They sign in with
Google or GitHub and approve the connection once. There is no key to paste, and
signing in creates their account with a project named `default`.

Your running session may not see the tools straight away. Ask the person to
paste the same prompt again after signing in; if the tools are still missing,
they reload the host's MCP servers or restart it first.

If the host cannot open a browser, or the run is unattended, use the CLI with an
API key instead:

1. `pip install "artefaktum[cli]"` (Python 3.10+).
2. The person creates a key at https://artefaktum.dev/console/ and either runs
   `artefaktum login` themselves or sets `ARTEFAKTUM_API_KEY` in the environment.
3. `artefaktum whoami` confirms the key works.

Never ask the person to paste an API key into the chat.

If the person has no account and does not want one, an agent with a USDC wallet
on Base can pay per request instead, if the person agrees to the spending:
https://artefaktum.dev/x402/

## Prove it works

1. Call `project_list` and tell the person which project you will use. Pass
   that slug as `project` in every call that follows; leave it out to use
   `default`.
2. Call `artifact_put` with a one-line `content`, a `title` such as
   "Artefaktum connection test", a `key` such as `setup/connection-test`,
   `if_exists: "version"` and `expires_in_hours: 1`.
3. Call `artifact_get` with that `key`. If `content_reason` is `not_ready`, read
   again a moment later.
4. Call `artifact_search` with a few words from the title and show the person the
   hit. If the search has no hit yet, search again a moment later.

The test artifact expires on its own. Do not rely on `artifact_delete` here: a
connection made by browser sign-in can read, write and search, but not delete.

## Keep this skill

A pasted prompt lasts one conversation. Offer to install this file as a skill,
so later sessions follow the habits below. Only if the person agrees, save
https://artefaktum.dev/SKILL.md as `artefaktum/SKILL.md` in the host's personal
skills folder:

- Claude Code: `~/.claude/skills/`
- Codex CLI: `~/.agents/skills/`
- Cursor: `~/.cursor/skills/`

For Claude Code:
`mkdir -p ~/.claude/skills/artefaktum && curl -fsSL https://artefaktum.dev/SKILL.md -o ~/.claude/skills/artefaktum/SKILL.md`

On any other host, skip this unless the person names its skills folder. Tell
them where the file is; deleting that folder removes the skill, and running the
command again updates it.

## Without the MCP tools

With the CLI and an API key, the same steps and habits use these commands:

- `artefaktum projects` lists the projects.
- `artefaktum push FILE --title "..." --key KEY --if-exists version` saves a
  file; add `--expires 1h` for the connection test.
- `artefaktum get --key KEY` shows one artifact; `--max-age 1h` treats an older
  one as not found.
- `artefaktum search "..."` searches.
- `artefaktum pull --key KEY --dest PATH` downloads the file.

## Search before you redo work

Before an expensive fetch, scrape, API call or analysis, call `artifact_search`
with a plain description of the result you are about to produce. Search matches
titles, descriptions, tags and metadata, never file contents. Judge each hit by
its title and description; finding nothing relevant is a normal answer. If you know the
key the result would be stored under, call `artifact_get` with `key` and a
`max_age_seconds` that fits how fresh the result has to be.

## Save what is worth keeping

Save a result when another run, another agent or the person could use it again.

- One whole result per artifact: the full report, dataset or analysis. Not a
  condensed copy, not fragments, and not a log of your steps.
- `title` and `description` say what the result is, in words someone would
  search for. The description does not repeat the content.
- Give it a `key`, such as `company-api/acme/2026-10-24`, and always pass
  `if_exists` with it: the default refuses a repeat. With `if_exists: "reuse"`
  a repeat returns the stored result and writes nothing; with
  `if_exists: "version"` a rerun adds a new version under the same key.
- `artifact_put` takes text or JSON up to 1 MiB. For JSON, set `content_type`
  to `application/json`. Larger or binary files go through the CLI, which
  needs an API key.
- To change a title, description, tags or expiry later, call `artifact_update`.
  Content never changes in place; save a new version instead.

## Check that a hit is still current

Search results and `artifact_get` carry two trust signals. Prefer a hit with
`superseded: false` and `stale_upstream: false`. When the age matters and you
know the `key`, call `artifact_get` with `key` and `max_age_seconds`: an older
artifact is reported as not found, and you produce a fresh one. Tell the person
when you reused a stored result.

## When something fails

- Permission error on `artifact_delete`: expected with browser sign-in. Deleting
  needs an API key that carries the delete scope.
- Project not found: call `project_list` and pass one of those as `project`.
- `artifact_get` returns `content: null`: read `content_reason`. `not_ready`
  means read again shortly; a binary or large file comes with a `download_url`.
- The CLI rejects an option such as `--if-exists`: the installed CLI is out of
  date. Upgrade it with `pip install --upgrade "artefaktum[cli]"`.

Full docs: https://artefaktum.dev/llms.txt
