Skip to main content
Glama

Agent Cloud

Self-hosted, open-source cloud workspaces for AI agents.

Each agent gets its own identity, storage, permissions and version history, over MCP with one credential. Risky changes wait for a human, content from the open web is tracked and labelled, and every action is audited.

CI CodeQL License: Apache-2.0 Python 3.11+ MCP 2026-07-28

Quickstart · Docs · Why · Features · Performance · Roadmap · Contributing


Quickstart

pip install "agentcloud[fast] @ git+https://github.com/npmiaman/agent-cloud"   # Python 3.11+
agentcloud up                                  # first run: creates a local admin, prints a one-time console link
agentcloud agent create research --storage 1GB

Or with Docker: docker compose up -d && docker compose logs agentcloud.

The last command prints a credential and ready-to-paste configs:

  research  agt_…
  workspace wsp_…  (1024 MB, read_write, approval: none)
  credential aca_…  (shown once)

  # Claude Code
  claude mcp add --transport http agent-cloud http://127.0.0.1:8787/mcp --header "Authorization: Bearer aca_…"

  # Cursor (~/.cursor/mcp.json) and most MCP clients
  { "mcpServers": { "agent-cloud": { "url": "http://127.0.0.1:8787/mcp", "headers": { "Authorization": "Bearer aca_…" } } } }

Your agent already knows who it is and what it can reach. It works with paths like /research/notes.md, and its files survive restarts, model swaps and moves between machines. Next: the getting-started guide.

Related MCP server: mneme-ai

Why

Agents need somewhere to put their work that isn't a temp directory, a shared S3 bucket with one all-powerful key, or a human's Google Drive. And as agents run longer and work together, the hard problems stop being about storage:

  • Whose agent is this, and what may it touch? Each agent has its own scoped, rotatable, revocable credential, and never borrows a human's.

  • What if it gets something wrong? Every write is a version, risky changes wait for a human with a diff, and everything is undoable.

  • What if it read a poisoned web page? Content derived from outside sources is labelled untrusted as it moves between agents and files, and protected paths can refuse it.

  • What if two agents edit the same thing? Leases with fencing tokens, compare-and-swap and atomic multi-file commits.

  • What if it runs away? Budgets, runaway detection and a kill switch that also stops every helper it spawned.

Features

Per-agent identity

Hashed, scoped, expiring credentials with rotation and grace periods; 15-minute access tokens; immediate revocation

Least privilege

Workspace roles, path grants, deny rules and credential scopes. Agents can re-share or delegate only a subset of what they have.

Versioned files

Immutable versions, soft deletes, restore-as-new-version, diffs (including CSV column changes), stable file IDs across moves

Human approval

Overwrites, deletes or untrusted content can require review; approvals arrive as signed webhooks

Provenance and trust

A signed record per version: writer, task, model, trace, inputs, sources. Taint propagates; agents see untrusted content behind a banner; quarantine and endorse. More

Multi-agent coordination

Leases with fencing tokens, atomic multi-file commits, sharing with notes, delegation to scoped helper agents. More

Safety rails

Write, byte and approval budgets; runaway-loop detection; a kill switch for an agent's whole delegation subtree

Agent-native MCP

MCP 2026-07-28 (stateless) plus older clients; exact-text edits, appends, line-range reads, batches, BM25 search with line ranges, session briefings, versioned resources. More

Claude memory tool

A drop-in backend for memory_20250818: per-agent, versioned, audited. More

Audit

Every read, write, share and credential change, with request IDs, streamed live in the console

Durability

Online verified backups, a self-healing replica, integrity scrub, health and readiness checks. More

Interfaces

MCP, REST with OpenAPI, Python and TypeScript SDKs, the agentcloud and ac CLIs, a web console, /llms.txt

Built around how agents actually work

Every model turn and every output token costs time and money:

  • Edit, don't rewrite. Measured with Claude Haiku on a one-line change to a 300-line file: 32.7 s → 8.0 s, 5,808 → 706 output tokens, 57% cheaper, identical result (3 runs each).

  • Batch. paths and files cut the turns for a typical multi-file task from 8 to 4.

  • No discovery turn. Identity, permissions and "what changed since your last session" arrive with the first call. A real agent answered "what changed?" in one turn without a tool call.

  • Search points at lines, so the next read is a targeted window, not the whole file.

Performance

python bench/bench.py on a MacBook (8 cores): 20 agents, 1,000 files, real HTTP round trips to a separate server process.

Operation

p50

Read a file

0.89 ms

Write a 1 KB file (versioned, audited, signed provenance)

1.6 ms

MCP cloud_read

0.59 ms

List a 100-file folder

1.8 ms

Content search across 1,000 files

14 ms

Mixed reads, 8 concurrent clients, 1 process

429 req/s

Mixed reads, 8 concurrent clients, 4 processes (--workers 4)

2,969 req/s (measured on v0.4)

What made the difference:

  • Credential "last used" times are written at most once a minute.

  • Read audit events are batched every 250 ms.

  • SQLite runs in WAL mode with memory-mapped reads, and each permission check is one query.

  • A fast JSON path: FastAPI's generic encoder took about a third of CPU.

  • Search caches a per-file chunk index.

  • Multi-process serving.

Commands

agentcloud up [--port 8787] [--workers auto] [--data ~/.agentcloud]
agentcloud agent create NAME [--storage 2GB] [--access read_only|read_write|full] [--approval none|overwrite|all]
agentcloud agent list | kill NAME | budget NAME [--writes N] [--bytes 50MB] [--proposals N]
agentcloud approvals [approve|reject ID]
agentcloud webhook add URL --events approval.*,agent.runaway
agentcloud backup [--to DIR] · agentcloud restore DIR [--force]
agentcloud login-link · agentcloud status · agentcloud worker [--once]

Documentation

Getting started

Install, run, connect an agent

Agent interface

MCP tools, protocol versions, sessions, error codes

Trust and provenance

Prompt-injection containment

Multi-agent work

Leases, atomic commits, delegation, budgets, kill switch

Claude memory tool

Agent Cloud as a memory_20250818 backend

Operations

Docker, configuration, backups, production checklist

Architecture

Modules and design decisions

Security

Threat model and how to report vulnerabilities

Roadmap

Ordered by the research survey of gaps in today's agent infrastructure:

  • Task branches with review and merge

  • File-change wake-ups and the MCP Tasks extension

  • subscriptions/listen push notifications

  • Postgres metadata and S3/R2/GCS blob backends (multi-host)

  • OAuth for MCP

  • Erasure by deleting per-subject encryption keys, with an erasure ledger that survives restores

  • OpenTelemetry export

  • v0.5 features in the TypeScript SDK

  • Whole-agent export and import

Status and limits

  • v0.5, single node. SQLite metadata and local-disk blobs, with an optional replica and backups.

  • Rate limits are per process.

  • Bearer tokens only for now. Put TLS in front for anything beyond localhost.

  • Trust labels reduce prompt-injection risk; they don't eliminate it. See the trust docs.

Contributing

Contributions are welcome. Every behaviour change comes with a test.

make install && make test && make lint

See CONTRIBUTING.md and the Code of Conduct. Questions go to Discussions; vulnerabilities to private reporting.

License

Apache-2.0

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides a secure, constrained filesystem workspace for LLM agents to manage files, notes, and code artifacts via stdio or remote HTTP. It features granular access controls, including extension whitelisting, storage quotas, and immutable paths for safe automated file operations.
      BSD 3-Clause
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to operate through a local, signed boundary that blocks prompt injection and secret leakage, verifies outputs, preserves cross-session memory, and provides offline-verifiable receipts. It also exposes 900+ MCP tools for discoverable agent actions.
      7
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A local-first MCP server that enables AI-assisted coding through workspace-scoped tools for file reading/editing, command execution, jobs, Git, LSP, media, browser, and desktop workflows. It enforces OAuth, workspace ACL, trust policies, and file/secret guards so owners can safely grant inspect, edit, or trusted capabilities.
      346 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables any MCP-compatible AI, whether in the browser or running locally, to create and edit projects, run terminal commands and long-running jobs, and optionally use Docker, all guarded by a policy engine, workspace jail, authentication, and audit logging.
      23
      MIT