OpenArtifacts

openartifacts.sh / use / APIs and scheduled jobs

APIs and scheduled jobs, deployed by your agent

For the endpoint something calls, and the job that runs on a clock: check a thing, then tell a human.

The problem

Most small software comes in two shapes. An API needs a URL and somewhere to keep its data. A job needs a scheduler that starts it on time, every time. Neither belongs on a laptop that sleeps when its lid closes, and both spend most of the day doing nothing, which is what they should cost.

Here either one is a service: its own container behind its own HTTPS origin, https://<slug>-xxxx.openartifactsusercontent.com, asleep between requests and runs. Its /data directory survives sleeps, restarts and redeploys, so an API can keep a snapshot of its SQLite database there. Republishing the same slug ships a new version at the same URL, and any earlier version is one rollback away.

On a paid account an API can also answer on a subdomain of yours, such as api.example.com: oa domains add notes-api api.example.com, then a CNAME and the TXT ownership records at your DNS provider. $0.50 a domain per month.

One prompt, or one call

Give your agent this:

Read https://openartifacts.sh/skill and https://openartifacts.sh/templates/api-sqlite. Deploy the api-sqlite template on OpenArtifacts with the slug notes-api. Tell me the price before you pay anything, then give me the API's URL and the claim link.

Behind it are these calls:

# 1. An account and a token (there is no signup form)
curl -X POST "https://api.openartifacts.sh/v1/signup?ref=use-apis"

# 2. Deploy the 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

# The same over MCP (https://mcp.openartifacts.sh/mcp): publish_artifact with
{"type":"service","template":"api-sqlite","slug":"notes-api"}

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

Or the agent's own code, any bundle in Python, Node or Bun with a start command:

curl -X POST https://api.openartifacts.sh/v1/publish \
  -H "Authorization: Bearer oa_sk_..." \
  -F type=service -F slug=notes-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 deploy first 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 over MPP or x402 (USDC from $0.25, or a card through its human's Link wallet from $5), retries, and the surplus stays as credit. It then polls the status until the state is healthy; if the process crashes, the status carries the reason and the last 50 log lines. A new account expires 30 minutes after signup, and its services stop with it, unless a human opens the claim link.

Start from a template

api-sqlite and node-api are APIs; scheduled-job runs on a schedule. Deploy one as it is, then publish the same slug again with your own code. The gallery has the rest.

A schedule lives in the service's oa.json, next to its start command:

{"schedules": [{"cron": "*/15 * * * *", "path": "/tick"}]}

Cron times are UTC. At each one the platform wakes the service and POSTs to the path; the service does its work in that request and goes back to sleep after sleep_after_s. A job is the same kind of service as an API, so one service can answer requests and run on a schedule.

Keep API keys and other secrets in the service's environment, set over REST or the CLI (npx @openartifacts/cli env set notes-api KEY=value), never through MCP. Setting them restarts the service with the new values.

What it costs

The small size (1/4 vCPU, 1 GiB memory) is $0.03 an hour awake and medium (1/2 vCPU, 4 GiB) is $0.12, billed per minute from the first minute of each wake, plus $0.216 per vCPU-hour of CPU the container uses. Asleep it costs nothing. A scheduled run lasts the boot, the work and then sleep_after_s of quiet, rounded up to whole minutes: about 2 minutes with a 60-second sleep, when the boot and the work take under a minute.

How it is usedAwakeAwake costCPU, at most
A job once a day on small, sleep_after_s 601 h$0.03$0.05
A job every hour on small, sleep_after_s 6024 h$0.72$1.30
A job every 15 minutes on small, sleep_after_s 6096 h$2.88$5.18
An API in use through working hours on small: 9 hours a day, 22 days a month198 h$5.94$10.69
The same API on medium198 h$23.76$21.38
Awake all month on small720 h$21.60$38.88

"CPU, at most" is what the CPU line would be if the container kept its vCPU fully busy the whole time it was awake; CPU is never billed beyond that. Set sleep_after_s below the gap between runs: a job every 15 minutes with a sleep of 15 minutes or more never sleeps, and costs the last row. Deploys are free up to 100 a month on a claimed account, then $0.005 each. Running two services at the same moment needs $2 of balance: one running service per $1, at most 10.

Limits

Start with a token. It is free, and there is no form.

curl -X POST "https://api.openartifacts.sh/v1/signup?ref=use-apis"

Then hand your agent the skill, or read the full reference. Prices for everything are on the home page.


MCP servers   Webhooks and bots   Templates   Status   Support