Artifacts: versioned storage that speaks Git

1 min read
cloudflaregitai-agentsversioned-storagedurable-objectssandboxeszigwasm
View as Markdown
Originally from blog.cloudflare.com
View source

My notes

Summary

Cloudflare launched Artifacts (private beta), a distributed versioned filesystem built on Git protocol designed for AI agents at scale. It lets you programmatically create millions of repos backed by Durable Objects and a Zig-to-WASM git server, with each repo costing $0.50/GB-mo storage and $0.15 per 1,000 operations. They also open-sourced ArtifactFS, a FUSE-like filesystem that mounts large repos via blobless clone and async hydration, cutting multi-GB repo startup from ~2 minutes to ~10-15 seconds.

Key Insight

  • Agent-first Git primitive: Artifacts gives every agent session or sandbox its own repo via REST API or Workers binding. No SSH keys, no GitHub app setup, just an HTTPS remote URL with a token. Agents already know Git from training data, so zero bootstrapping.
  • Architecture details: Git server written in pure Zig, compiled to ~100KB WASM. Runs inside Durable Objects (128MB memory limit each, SQLite-backed storage, 2MB row chunking for large objects). R2 for snapshots, KV for auth tokens. Supports git protocol v1 and v2, shallow clones, have/want negotiation.
  • Non-source-control uses: Cloudflare internally uses it to persist sandbox filesystem state and session/prompt history per agent session. Forking a session means forking a repo. Teams are also exploring it for per-customer config with rollback semantics.
  • ArtifactFS (open source): Blobless clone fetches tree and refs but not contents. Background daemon hydrates files concurrently, prioritizing package manifests and code over binaries. Reads block until hydrated. Works with any Git remote (GitHub, GitLab, self-hosted), not just Artifacts.
  • Pricing: $0.15/1,000 ops (first 10k free/month), $0.50/GB-mo (first 1GB free). Designed for millions of small, ephemeral repos where most are idle, with no cost for cold repos. Free tier coming.
  • Upcoming: event subscriptions (push/pull/clone webhooks), namespace-wide search APIs, TypeScript/Go/Python SDKs, Workers Builds for CI/CD. Public beta expected early May 2026.