Run your first artifact host
Run a local host, publish an artifact and connect the agents you already use. No cloud account is needed.
Start from source
The first @artifactkitdev/core npm release is being prepared. Until it is published, use the repository:
git clone https://github.com/lefthookhq/artifactkit.git
cd artifactkit
# Match the source revision used by these guides.
git checkout 4506284c657fa2a54bda7da0d42ac93fc565c963
# Use the Node version in .nvmrc and npm version in packageManager.
npm install --global npm@12.2.3
npm ci
npm run demo
Open http://localhost:8788. The demo creates a sample artifact with a share link and serves the HTTP API. It uses in-memory storage and development authentication; restarting clears its data.
Explore the local API
Open http://localhost:8788/docs for the interactive API reference, or get the schema at http://localhost:8788/openapi.json.
curl http://localhost:8788/health
The public documentation site’s /docs/ is a guide portal. Your artifact host’s /docs is its interactive HTTP reference.
Publish, hand off, and share
In a second terminal in the same checkout, create a small page:
cat > hello.html <<'HTML'
<!doctype html><html><head><title>Hello</title></head>
<body><h1>Hello from my agents</h1><p>Ready for review.</p></body></html>
HTML
node dist/cli/index.js publish hello.html --title "Hello"
node dist/cli/index.js list
The CLI prints the artifact ID, version and view URL. Give that ID to another shell-capable agent connected to the same local host. It can read the page, then update it with the expected version:
node dist/cli/index.js get <artifact-id> --out current.html
node dist/cli/index.js edit <artifact-id> --expected 1 --replace "Ready for review.=Reviewed by another agent."
node dist/cli/index.js share <artifact-id>
Replace <artifact-id> with the actual ID. If another edit happened already, fetch the current version and reconcile before retrying; do not blindly reuse version 1. The share command prints a reader link. Revoke it with:
node dist/cli/index.js unshare <artifact-id>
The default CLI host is http://localhost:8788. This demonstrates collaboration through the CLI without installing an agent-specific connector. Do not expose this development demo as an unauthenticated public service.
Choose your next step
- Connect your agents to the same host.
- Embed the core in an existing application.
- Choose storage and hosting before using it in production.
- Understand the ports to write an adapter.
Guides for running artifactkit and the planned hosted service.