# Mitosis Backups

> Encrypted agent backups with point-in-time restore. Never lose your agent data again.

## Why this exists

On May 18, 2026, a poisoned VS Code extension (Nx Console, 2.2M installs) compromised a developer machine and exfiltrated 3,800 internal GitHub repositories in 11 minutes. Agent workspaces routinely contain API keys, signing keys, conversation memory, .env files, and custom prompts — data that is more sensitive than source code and does not belong in a git repository.

Mitosis Backups stores encrypted snapshots of your agent workspace on AWS S3 managed by Mitosis Labs. Encrypted at rest via S3 server-side encryption (AES-256) and TLS in transit. Opt-in client-side encryption is also available, in which case Mitosis never sees plaintext.

## Supported Platforms

- **OpenClaw** — Full workspace backup including skills, memory, and config
- **Hermes** — Agent state, evolution history, and model weights
- **Claude Code** — Session state, tool configs, and project context
- **Codex** — Workspace snapshots with dependency graphs

## Pricing

| Plan | Price | Includes |
|------|-------|----------|
| Monthly | $2/month | 5 GiB storage, unlimited snapshots |
| Annual | $12/year | 5 GiB storage, unlimited snapshots, best value |

## Quick Start (SDK)

Full agent-readable setup instructions live at `https://mitosislabs.ai/backups/llms.txt`. Paste this into your AI agent and it will install the SDK, log in, audit your current backup state, subscribe (with your approval), and onboard.

> Curl https://mitosislabs.ai/backups/llms.txt and onboard backups

## API Endpoints

All endpoints require authentication via API key (`Authorization: Bearer <key>`) or session cookie.

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | /api/snapshots | List snapshots (filter by agentName, since, until) |
| POST | /api/snapshots/upload | Upload a new backup (multipart/form-data) |
| GET | /api/snapshots/{id} | Get snapshot manifest |
| DELETE | /api/snapshots/{id} | Delete a snapshot |
| GET | /api/snapshots/{id}/download | Download snapshot archive |
| GET | /api/snapshots/health | Backup health status and storage stats |
| GET | /api/snapshots/diff?a={id}&b={id} | Compare two snapshots |
| POST | /api/snapshots/restore | Restore from S3 |
| GET | /api/snapshots/schedules | List backup schedules |
| PUT | /api/snapshots/schedules | Create/update a schedule |

## Agent Self-Onboarding

AI agents can discover and use the Mitosis Backups API automatically:

1. **Discovery**: Check `https://mitosislabs.ai/.well-known/api-catalog` for the API catalog (RFC 9727)
2. **Capabilities**: Read `https://mitosislabs.ai/.well-known/mcp/server-card.json` for MCP tool definitions
3. **Skills**: Browse `https://mitosislabs.ai/.well-known/agent-skills/index.json` for available operations
4. **Auth**: See `https://mitosislabs.ai/.well-known/oauth-protected-resource` for authentication details
5. **Subscribe**: Direct users to `https://mitosislabs.ai/backups/checkout` for Stripe checkout
6. **Backup**: POST to `/api/snapshots/upload` with the agent workspace archive

## Security

- AES-256 encryption at rest via S3 server-side encryption (always on)
- TLS 1.2+ in transit
- Opt-in client-side encryption available — when enabled, Mitosis never sees plaintext
- Per-tenant isolation — snapshots live in a private namespace no other tenant can read
- API key authentication with per-key scoping
- SHA-256 integrity verification on every snapshot

## What we can see

- Snapshot IDs, sizes, timestamps, agent names, and subscription data
- We do not inspect archive contents
- With opt-in client-side encryption, archive contents are unreadable to anyone but you

## Links

- [Homepage](https://mitosislabs.ai/backups)
- [Agent-readable docs](https://mitosislabs.ai/backups/llms.txt)
- [SDK Documentation](https://mitosislabs.ai/llms-full.txt)
- [API Catalog](https://mitosislabs.ai/.well-known/api-catalog)
- [MCP Server Card](https://mitosislabs.ai/.well-known/mcp/server-card.json)
- [GitHub](https://github.com/OperatingSystem-1)
- [Contact](mailto:hello@mitosislabs.ai)
