Cloudflare Artifacts

Cloudflare Artifacts: Git-Native Storage for AI Agents and Automation

Versioned storage your agents already know how to use.

Cloudflare ArtifactsGitAI Agents

By Troy Tessalone · · 8 minutes

Cloudflare Artifacts

A practical field guide from Automation Ace.

Short answer: Cloudflare Artifacts is Cloudflare's Git-compatible, versioned storage built for programmatic use at scale. You create repos on demand (one per agent, session, user, or task) from a Worker binding or the REST API, hand back a standard Git remote URL with a short-lived, repo-scoped token, and let any Git client, including an AI agent's git CLI, clone and push. Events such as pushed can trigger Workflows to test, review, build, or deploy. It suits AI agents and automation because every change gets history, diffs, rollback, and isolation for free.

Details reflect the Cloudflare Artifacts docs at the time of writing; Artifacts was in beta (open beta since October 2026) and requires the Workers Paid plan.

What Cloudflare Artifacts is

Cloudflare describes Artifacts as a versioned file system that speaks Git: storage for file trees that can be created in huge numbers (Cloudflare talks about tens of millions of repos), forked from any remote, and used from Workers, the REST API, or any Git client. It is not a code-collaboration website; it is infrastructure your own apps and agents use.

How it works: namespaces, repos, tokens

  • Namespaces group repos (by environment, tenant, or shard) and are created implicitly with the first repo. A namespace can be pinned to the EU or US for data localization.
  • Repos are isolated Git services, each with its own history, refs, remote URL, tokens, and lifecycle. A fork is a new repo that starts from another repo's history.
  • Tokens are repo-scoped and short-lived: read for clone, fetch, and pull; write to push. Your Worker or API layer decides when to mint them.
// In a Worker: one repo per agent session, with a short-lived write token
const created = await env.ARTIFACTS.create(`agent-${sessionId}`);
// created.remote -> https://<ACCOUNT_ID>.artifacts.cloudflare.net/git/<namespace>/agent-<id>.git
// created.token  -> repo-scoped token (expiry encoded in its ?expires= suffix)

// The agent (or any Git client) then works normally:
// git -c http.extraHeader="Authorization: Bearer $ARTIFACTS_TOKEN" clone "$ARTIFACTS_REMOTE"

Three ways in

InterfaceUse it toAuthenticate with
Workers binding (env.ARTIFACTS)Create, import, fork, inspect, and delete repos; read files and history; mint repo tokens from a WorkerThe configured binding
REST APIDo the same from any other platform: a script, a backend, an automation toolCloudflare API token with Artifacts Read/Edit
Git protocol (smart HTTP)Clone, fetch, pull, and push with any Git client, including an agent's git CLIRepo-scoped token: read or write

The binding and REST API are the control plane (manage repos and tokens); Git is the data plane (read and write commits). Details: Workers binding reference and REST API reference.

Why Git-native storage suits AI agents

  • Agents already know Git: coding agents clone, commit, branch, and push without new tools.
  • History and rollback: every agent change is a commit you can diff, review, or revert.
  • Isolation: one repo per session keeps failures and cleanup separate; Cloudflare's Artifacts best practices recommend exactly this.
  • Least privilege: read tokens for reviewers and indexers, short-lived write tokens only for the agent that must push.
  • Metadata without clutter: Cloudflare suggests git notes for prompts, model output, and run IDs, attached to commits without changing the files.

Hands-on: how AI agents can use Cloudflare Artifacts to manage code and version history.

What to use it for

Use caseHow Artifacts fits
A workspace per AI coding agent or sessionOne repo per session; the agent clones, commits, and pushes; you review the diff
Generated apps and sites per userOne repo per user project; pushes can build and deploy Workers
Versioned prompts, configs, and agent skillsA shared baseline repo that sessions fork from
Automation outputs that need historyReports, exports, or documents committed on each run, with a full change log
Event-driven automationPush events start Workflows: tests, reviews, builds, deploys

Automating around repos: events and builds

  • Events: Artifacts event subscriptions cover account-level events (repo.created, repo.deleted, repo.forked, repo.imported) and repo-level events (pushed, cloned, fetched).
  • Workflows on push: a cf.artifacts.repo.pushed trigger can start a Workflow that checks out the commit and runs install, lint, test, build, and deploy; see Cloudflare Workflows for multistep automation.
  • Workers Builds: connect a repo so pushes to the production branch deploy a Worker and other branches create previews.
  • Review agents: start a reviewer on every push with a read-only token.

New to Workers? Start with Cloudflare Workers 101.

Pricing, limits, and caveats

  • Plan: Workers Paid only. Per Artifacts pricing at the time of writing: 10,000 operations per month included, then $0.15 per 1,000; 1 GB-month of storage included, then $0.50 per GB-month. Cloudflare has said per-repository charges are coming.
  • Limits (Artifacts limits): 1 GB per repo for repos created on or after September 29, 2026 (10 GB for older repos), 1 TB per account by default, and request-rate limits per namespace and per repo.
  • Not a GitHub replacement out of the box: no pull requests, issues, or code review UI; you build those, or keep them elsewhere. Comparison: Cloudflare Artifacts vs GitHub for AI automation.
  • Imports: public HTTPS Git remotes can be imported as a baseline.

Frequently asked questions

What is Cloudflare Artifacts?

Cloudflare Artifacts is Git-compatible, versioned storage built for programmatic use at scale. You create repos on demand from a Worker binding or REST API and use them with any Git client through a standard remote URL and repo-scoped tokens.

Why use Cloudflare Artifacts for AI agents?

Agents already use Git, every change gets history and rollback, one repo per session keeps work isolated, and short-lived read or write tokens limit what each agent can do.

How do you access Cloudflare Artifacts?

Through three interfaces: a Workers binding and a REST API to manage repos and tokens, and the Git smart HTTP protocol to clone, fetch, pull, and push repository contents.

How much does Cloudflare Artifacts cost?

At the time of writing, it requires the Workers Paid plan and bills operations (10,000 per month included, then $0.15 per 1,000) and storage (1 GB-month included, then $0.50 per GB-month), with repository charges announced as coming later.

Can Cloudflare Artifacts trigger automations?

Yes. Artifacts emits events such as repo.created, repo.forked, and pushed, which can start Workflows or Workers to run tests, reviews, builds, and deploys.

Cloudflare ArtifactsGitAI Agents

Disclaimer: Cloudflare Artifacts was in beta at the time of writing; APIs, limits, pricing, and event types can change, so test with your own workloads before relying on them in production; details reflect public documentation and coverage at the time of writing, so confirm current details with each provider before building. Automation Ace is not affiliated with Cloudflare or GitHub. This article may include links to apps, products, or services; some links may be affiliate links, which means Automation Ace may earn a commission at no extra cost to you.

Build Better Systems

Ready to automate with confidence?

Share your tools, process, and goals. Automation Ace can design the Zapier, AI, and automation setup that fits your business.

Start a Project →