OpenArtifacts

The cloud for agents.

Your agent deploys a running backend in one call, with no account to set up. It sleeps while nobody calls it, wakes on the next request, and you pay for the minutes it is awake.

An example day of one small service on the default ten-minute sleep (UTC). Eight wakes, 2 h 42 min awake: $0.081 of awake time, plus the CPU it used. Asleep the other 21 h 18 min: $0.

OpenArtifacts runs code an AI agent wrote, at a URL, without a human setting anything up first. The agent creates an account with one HTTP call, deploys with the next, and pays over HTTP 402 when something costs money. Its human claims the account with one click.

What your agent can deploy

An API
Endpoints other software calls, keeping its data in SQLite on local disk, snapshotted to /data (or in your own Postgres via DATABASE_URL). Start from api-sqlite or node-api.
A webhook receiver
A URL that takes POSTs from another service and acts on them, asleep between deliveries. Start from webhook-receiver.
A bot
A chat bot that gets its messages by webhook. Start from telegram-bot.
An MCP server
Tools any MCP client can call over HTTP, from any machine. Start from mcp-server.
A scheduled job
Code the platform wakes on a cron schedule (UTC) with a POST. Start from scheduled-job.

Or the agent's own code: any bundle of files plus a start command, in Python, Node or Bun. Each service runs in its own container at its own HTTPS origin, takes every HTTP method and WebSocket upgrades, and keeps a /data directory across sleeps and redeploys (object storage underneath, not backed up: no database opened directly in it). The image is Ubuntu 22.04 with Node 22, Python 3.11 and Bun 1.3; there is no apt and no Dockerfile. Every template is in the gallery.

Deploy it in one call

# 1. An account and a token (there is no signup form)
curl -X POST "https://api.openartifacts.sh/v1/signup?ref=landing"
    -> {"token":"oa_sk_...",
        "claim_url":"https://openartifacts.sh/claim/<claim-code>"}

# 2. Deploy a service from a template
curl -X POST https://api.openartifacts.sh/v1/publish \
  -H "Authorization: Bearer oa_sk_..." \
  -F type=service -F template=api-sqlite -F slug=notes-api
    -> {"url":"https://notes-api-x7k2.openartifactsusercontent.com",
        "status":"starting", "status_url":"..."}
# The same deploy over MCP: the publish_artifact tool with
{"type":"service","template":"api-sqlite","slug":"notes-api"}

# From a terminal
npx @openartifacts/cli deploy --template api-sqlite --slug notes-api

# Or the agent's own code: files plus a start command
curl -X POST https://api.openartifacts.sh/v1/publish \
  -H "Authorization: Bearer oa_sk_..." \
  -F type=service -F slug=hello-api \
  -F 'install=pip install -r requirements.txt' \
  -F 'start=uvicorn app:app --host 0.0.0.0 --port $PORT' \
  -F files=@app.py -F files=@requirements.txt

On a new account the first service answers 402 Payment Required: a service needs an hour of its rate in credit before it starts, $0.03 on the small size. The agent pays (see below), retries the same call, and polls status_url until the state is healthy. If the process crashes, the status says why, with the last 50 log lines. Logs, restart, stop, environment variables and one-off commands are one call each.

Give the human two things: the url and the claim_url. A fresh account is provisional and expires 30 minutes after signup, together with everything on it, services included. Claiming once makes the account permanent, and the agent's token keeps working.

Other ways in, all equivalent to the calls above:

People can start first, too: pick a username and a password, then mint a token for your agent from the dashboard.

Your agent deploys it. It serves on your domain.

Every service and site gets its own origin at <slug>-xxxx.openartifactsusercontent.com. On a paid account you can also attach a subdomain of your own, such as api.example.com, to any site or service: attach it with one call, then add the CNAME and the TXT ownership records at your DNS provider.

oa domains add notes-api api.example.com

curl -X POST https://api.openartifacts.sh/v1/artifacts/notes-api/domains \
  -H "Authorization: Bearer oa_sk_..." -H "Content-Type: application/json" \
  -d '{"hostname":"api.example.com"}'

A domain costs $0.50 a month, up to 10 per account. An apex domain (example.com itself) needs a DNS provider that supports CNAME flattening or ALIAS records.

Asleep, it costs nothing

A service sleeps after ten minutes without a request; sleep_after_s sets anything from 60 seconds to 24 hours. Idle means no inbound request: an open WebSocket counts as activity, outbound traffic does not. The next request wakes it. The platform unpacks the deployed version, runs install if there is one, starts the process and waits for its port, holding the request for up to 60 seconds meanwhile, then answering 503. install runs on every one of those wakes, so keep it short: a TypeScript API that runs npm install and tsc takes about a minute per wake, a Next.js SSR build about five; upload built output instead. Only /data survives a sleep, and it is not backed up.

Awake time is billed per minute from prepaid credit, from the first minute of every wake, plus the CPU time the container uses at $0.216 per vCPU-hour. Asleep, nothing is billed. Charges post every five minutes and when the container stops.

SizevCPU, memoryAwake, per hourCPU at most, per awake hour
small (default)1/4, 1 GiB$0.03$0.054
medium1/2, 4 GiB$0.12$0.108
large1, 4 GiB$0.12$0.216

CPU is never billed beyond the size's vCPU for the time it was awake, so a small service costs at most $0.084 per awake hour. The example day above, every day for a month, is $2.43 of awake time; awake all month on small is $21.60 plus CPU. The use-case pages work through realistic months: MCP servers, webhooks and bots, APIs and scheduled jobs.

Agents pay over HTTP 402, people pay by card

When a call needs money (a service without credit, a publish past the free allowance), the API answers HTTP 402 with the amount and the ways to pay. An agent with a wallet pays and retries the same request with one extra header:

A USDC payment settles at least $0.25 and a card at least $5; anything above what is due stays on the account as credit, and every payment returns a receipt naming its rail and reference. Over MCP the same 402 comes back as a tool error that carries the challenge.

People pay by card: on the credits page once signed in ($5 to $500), or through a payment link their agent hands them (the MCP add_credits tool, over an API token), which needs no sign-in.

Agents are instructed to get their human's agreement before paying anything. The CLI never signs a payment: on a 402 it prints the amount and the exact commands that pay it.

Credit also limits what runs at once: one running service per $1 of balance, at least one and at most 10 (a sleeping service does not count). At a zero balance a service pauses and its URL answers 402; once the balance covers an hour of its rate again, the next request wakes it.

Static pages are free previews

Pages, whole sites and prototypes publish the same way, without a start command, and cost nothing to start:

curl -X POST https://api.openartifacts.sh/v1/publish \
  -H "Authorization: Bearer oa_sk_..." \
  -F slug=retro-snake -F files=@index.html
    -> {"url":"https://retro-snake-x7k2.openartifactsusercontent.com"}

On an account that has never paid they are previews: served with noindex, nofollow and deleted 7 days after their last publish (publishing again restores them for another 7). Any payment, any amount on any rail, keeps every site on the account and makes them indexable, and that does not lapse when the balance runs out. A new account gets 5 free publishes; a claimed one gets 100 a month, plus its first million page views each month.

See a page it hosts: demo.openartifactsusercontent.com

Before you rely on it

Every published version is scanned as it goes live. A page that asks for keys, seed phrases, or card numbers is taken down and serves a 451; one that imitates a login screen is flagged for human review and keeps serving until a person decides. A service whose commands or files name a crypto miner or a reverse shell is flagged for a person to review. Each artifact serves from its own origin, and each service from its own container. The full policy is at aup.md. Report anything: abuse@openartifacts.sh.

Cost

WhatPriceNotes
Service, awake$0.03 / hourSmall; medium and large are $0.12 an hour. Billed per minute from the first minute of each wake. Asleep: $0. No free tier.
Service, CPU$0.216 / vCPU-hourCPU time the container uses while awake, never more than its size's vCPU.
Starting a serviceAn hour of creditA service needs an hour of its rate in credit to start ($0.03 small, $0.12 medium or large). An account runs one service at a time per $1 of balance (at most 10).
Free tier$0Static pages and sites. On an account that has never paid they are previews: not indexed by search engines and removed 7 days after their last publish. A new account lasts 30 minutes and gets 5 free publishes; claiming keeps it and unlocks 100 free publishes a month.
Keep a siteAny paymentAn account that has added credit once (any amount, any rail) keeps its sites and they are indexable. That does not lapse when the balance runs out.
Publish$0.005Per publish or deploy past the monthly free allowance.
Storage$0.05 / GB / monthPublished versions, metered monthly from the first byte.
Traffic$1.00 / million viewsPage views of static sites; the first million each month are free.
Private or unlisted$0.50 / artifact / monthPublic costs nothing extra.
Custom domain$0.50 / domain / monthPaid accounts, up to 10 domains per account.