# Aerostack Documentation

> The complete backend SDK for Cloudflare Workers. Auth, Database, AI, Realtime, Storage, MCP servers, and Edge Functions — all in one package.

**Production Ready — Build AI-powered backends at the edge**

**Build intelligent bots, agents, and APIs. Ship in minutes.**

Deploy AI bots to Telegram, Discord, WhatsApp and Slack. Create REST API agents with SSE streaming. Process webhooks with AI. All powered by MCP tool orchestration on Cloudflare's edge.

  
  

---

## How Aerostack Works

Four layers that compose together. Each is powerful alone — together they're a complete AI backend.

```mermaid
graph TB
    subgraph CONSUMERS["What your users interact with"]
        BOTS["Bots<small>Telegram · Discord · WhatsApp · Slack</small>"]
        SDK_CLIENT["Your App<small>SDK · React · Mobile</small>"]
        LLM_CLIENT["Any LLM Client<small>Claude Desktop · Cursor · Custom</small>"]
    end

    subgraph WORKSPACE["Workspace — Single Gateway URL"]
        direction LR
        MCP1["Stripe MCP"]
        MCP2["GitHub MCP"]
        MCP3["Custom MCP<small>(your server)</small>"]
        SKILL1["Skill: send-email"]
        FN1["Function: order-lookup<small>(fullstack edge)</small>"]
    end

    subgraph ENGINE["Edge Runtime — Native Bindings (zero latency)"]
        direction LR
        DB["Database<small>SQL · Postgres</small>"]
        CACHE["Cache<small>Key-Value</small>"]
        QUEUE["Queue"]
        AI["AI<small>Multi-provider</small>"]
        VECTOR["Vector<small>Search</small>"]
        STORAGE["Storage<small>Object Storage</small>"]
    end

    BOTS --> WORKSPACE
    SDK_CLIENT --> ENGINE
    LLM_CLIENT --> WORKSPACE
    WORKSPACE --> ENGINE
    FN1 --> ENGINE

    style CONSUMERS fill:#0f172a,stroke:#3b82f6,stroke-width:2px
    style WORKSPACE fill:#0f172a,stroke:#8b5cf6,stroke-width:2px
    style ENGINE fill:#0f172a,stroke:#10b981,stroke-width:2px
```

---

## Build

Four core building blocks. Deploy each independently or compose them together.

  
  
  
  

---

## Edge Runtime — Built-in Primitives

Every function, MCP server, and bot has native access to these primitives. No external API calls — direct bindings with zero network latency.

  
  
  
  
  
  
  
  

---

## Why Aerostack

**Not just serverless — fullstack**

Every function has native access to DB, Cache, Queue, AI, Vector Search, and Storage. No API calls to yourself. Direct bindings, zero latency.

**Zero-trust MCP gateway**

API keys stay in your vault. Team members connect through workspace tokens. Per-user analytics. Revoke one person without rotating production keys.

**Bots that actually do things**

Multi-MCP tool access, visual workflows, built-in identity verification, human approval handoffs, bot-to-bot delegation. Deploy to 5 platforms.

---

## One SDK for everything

Install one package. Get auth, database, realtime, storage, AI, cache, queue, and vector search. Available for React, Node.js, Go, Python, and Flutter.

```tsx

function App() {
  const { user, signIn, signUp } = useAuth()
  const { query } = useDb()
  const { messages } = useSubscription('chat/general')

  // Realtime pub/sub, presence, DB change events — built in
  // Auth with OTP, magic links, email verification — built in
  // Vector search, AI completions, streaming — built in
}
```

[SDK Documentation](/sdk) · [Example Apps](/examples)

---

## Use case examples

From realtime chat to customer support bots — production-ready examples you can deploy today.

  
  
  
  
  
  

Ready to build? [Get Started — It's Free](/getting-started/quick-start)
