# Cohesivity

Cohesivity is an infrastructure platform, similar to OpenRouter but for backend services instead of models. Instead of signing up on Supabase, AWS, or GCP individually, a single API provisions databases, auth, storage, and more. Cohesivity handles lifecycle and billing; one integration, many services.

**backend infra for ai agents.**

---

## Available services

database | realtime | vercel-hosting | object-storage | vector-database | social-login | cloudflare-workers | redis | openai-api | deepgram-api | resend-api | exa-api | openweather-api | google-geocoding-api

Full documentation: https://cohesivity.ai/llms.txt
Per-service docs: https://cohesivity.ai/offerings/
Every offering page includes the current launch rate limits for ephemeral, free, plus, and pro tiers.

---

## Quick start

Create an ephemeral tenant and save credentials:

    curl -s -X POST https://cohesivity.ai/api/genesis > .cohesivity

The `.cohesivity` file contains API keys, recovery `claim_url`, `expires_at`, one-click claim instructions, and a full quick-reference for all endpoints. Read it after creation. Note: `POST /api/genesis` is rate-limited to 10 requests per 60 seconds per IP — reuse an existing `.cohesivity` file rather than looping.

---

## How the API works

### Create ephemeral tenant

    POST https://cohesivity.ai/api/genesis

No body, no auth. Returns plain-text with your keys and recovery claim metadata:

    tenant_id=swift-fox-sleeping
    coh_management_key=coh_man_xxxxxxxxxxxxxxxxxxxx
    coh_application_key=coh_app_xxxxxxxxxxxxxxxxxxxx
    claim_url=https://cohesivity.ai/claim/swift-fox-sleeping  # recovery/manual-key only
    expires_at=2026-04-17T12:34:56.000Z
    # ... full endpoint reference, auth patterns, and next steps

Ephemeral tenants have tenant-lifetime hard caps during the 72-hour claim window. Claimed tenants use account-scoped Free/Plus/Pro buckets plus monthly fluid wallet grants across all projects owned by the Cohesivity user. Primary claim happens only when the builder asks: `POST https://cohesivity.ai/api/claim/url` returns `approval_url` (`https://cohesivity.ai/c/`) plus a `wait` blob; share the approval URL, keep the management key agent-side, and poll `https://cohesivity.ai/api/wait` until complete. `/claim/` is the recovery/manual-key route. Read the offering page for every resource you provision.

### Provision resources

    POST https://cohesivity.ai/api/resources
    Authorization: Bearer 
    { "resources": ["database", "vercel-hosting"] }

    → { "success": true, "results": [{ "resource": "database", "status": "active" }, ...] }

Single resource also works: `POST https://cohesivity.ai/api/resources/database`

### Use it

    POST https://cohesivity.ai/edge/database?key=
    { "query": "SELECT * FROM users WHERE id = ?", "params": [1] }

    → { "rows": [{ "id": 1, "name": "Alice" }], "rowCount": 1 }

---

## Documentation

- Docs index: https://cohesivity.ai/docs
- Full documentation: https://cohesivity.ai/llms-full.txt
- Quick reference: https://cohesivity.ai/llms.txt
- Per-service docs: https://cohesivity.ai/offerings/