How to run Cloudflare Artifacts Locally
Cloudflare Artifacts can now be ran locally.
Local artifacts emits the same events as in production as well.
To get started, we need to add the bindings to your wrangler config
# wrangler.toml
name = "artifacts-worker"
main = "src/index.ts"
# Set this to today's date
compatibility_date = "2026-11-17"
[[artifacts]]
binding = "ARTIFACTS"
namespace = "default"
Then you can start dev npx wrangler dev
And you can start using like this
const created = await env.ARTIFACTS.create("starter-repo");
return Response.json({
remote: created.remote,
token: created.token,
});