Host and operate it

An artifact host runs the core, authenticates callers, stores versions and serves pages under the artifact security policy. You can host it independently of Artifactkit Cloud.

Choose storage for your writers

AdapterGood starting pointOperational boundary
MemoryLocal exploration and testsData is lost on restart
FilesystemA personal or single-process hostOne process with a persistent volume
Cloudflare KVA lightweight Worker hostEventual listings and no compare-and-set across writers
PostgresMultiple agents or processes writing concurrentlyOperate a database and backups
SupabaseManaged Postgres via the provided RPC adapterKeep service-role credentials server-side

For concurrent agents on separate host instances, use a store with atomic conditional writes. Store capabilities documents the tradeoffs.

Run a Node host

Use the source quickstart to verify the host locally. Replace the memory adapter with a persistent adapter, configure authentication, and put the fetch handler behind your HTTPS server or proxy.

The development demo is an example, not a production identity service. Configure secrets, authenticated owners, backups and process supervision for your deployment.

Run on Cloudflare

The repository includes a Worker example and Wrangler configuration. Create a KV namespace, configure its binding, provide a fresh VIEW_SECRET, and deploy under a domain you control. Cloudflare is an optional adapter, not a requirement.

Use Postgres if concurrent writers or event-log guarantees exceed KV’s capabilities. The Supabase guide covers that adapter.

Keep untrusted pages on a separate origin

Host generated artifact pages separately from your authenticated console and marketing site. Preserve the core’s sandbox and content security policy. Do not relax them to make an artifact work; adjust the artifact or its configured allowlist instead.

For the planned managed service, the domain layout is:

HostnameRole
artifactkit.devPublic website and documentation
developers.artifactkit.devDocumentation entry alias
app.artifactkit.devFuture authenticated console
api.artifactkit.devFuture authenticated REST API
mcp.artifactkit.dev/mcpFuture remote MCP endpoint
artifacts.artifactkit.devFuture generated artifact pages

This is the intended layout, not a claim that those services or DNS records are active. Self-hosters can use their own domains.

Guides for running artifactkit and the planned hosted service.