Skip to main content
Mesa is a programmable storage layer and virtual filesystem, built specifically for AI agents and developers building agentic products. All files are versioned with support for simple checkpoints as well as complex branch-based workflows. We provide full Git compatibility but Mesa is far more powerful than a traditional Git hosting platform. You can read more about our versioning model here. Mesa is designed for high-throughput, machine-driven workflows where you need reliable versioning, low-latency reads and writes, and infinite scaling across many different repositories. It works wherever your agents run, whether it’s in a sandbox, or in-process and can be used with a variety of tools and frameworks.

How it works

Use the Mesa TypeScript REST SDK to create a repo and commit files in one call. Mesa handles Git object storage, refs, and history behind the scenes. Use the SDK to create repositories on-demand and edit their contents through MesaFS.
import { Mesa } from "@mesadev/rest";

// Initialize the SDK
const mesa = new Mesa({
  apiKey: process.env.MESA_API_KEY,
});

// Create a repository - an isolated folder with its own version history and access controls
const repo = await mesa.repos.create({ name: "acme-workspace" });

// Open the repository locally as a virtual filesystem
const fs = mesa.fs.open(repo.id)

// Run an agent within the repository. All changes get persisted automatically.
await generateText({
  model: "gpt-5.3-codex",
  prompt: "Write a README for the repository",
  tools: {
    bash: fs.bashTool.aiSDK()
  }
});
Alternatively you can use our Content API and commit-builder to read and edit files in the repository.
const file = await mesa.content.get({
  repo: "agent-workspace",
  path: "README.md",
});
console.log(file.content);

await mesa.commits.create({
  repo: "agent-workspace",
  branch: "feature/readme",
  message: "Update README",
  author: { name: "Mesa Bot", email: "bot@acme.dev" },
  edits: [
    {
      path: "README.md",
      action: "update",
      content: "...",
    },
  ],
});

Use cases

Mesa is perfect for all sorts of agent products: SWE agents, agent infrastructure like sandboxes, background agents, neo-IDEs, and more.
  • AI code generation and agent workspaces
  • CI/CD automation that needs programmatic Git writes
  • Configuration or schema versioning without full clones
  • Multi-tenant platforms that create repos per customer or project

Benefits over traditional Git hosting

  • Programmatic commits and file edits without local clones or Git CLIs
  • Designed for high-volume automated workflows and large repo counts
  • Standard Git compatibility when you need to clone or push
  • Fine-grained API tokens for precise access control

Pricing

FAQ