AI EngineerGuide

How to run Cloudflare Artifacts Locally

by Ashik Nesin Ashik Nesin

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

image.png

And you can start using like this

const created = await env.ARTIFACTS.create("starter-repo");

return Response.json({
	remote: created.remote,
	token: created.token,
});

Reference

Stay Updated

Get the latest AI engineering insights delivered to your inbox.

No spam. Unsubscribe at any time.