The Supabase Alternative for Python & FastAPI

Vibe-code the frontend.
Declare the backend.

Your agent declares the data model, access rules, and modules in a few JSON files. Kirak serves the whole backend live (REST & GraphQL API, auth, row-level security, payments, and storage) with no CRUD or auth code in your repo. Anything unique to your app is real Python you own.

The Kirak runtime is open source under Apache 2.0. Studio is the managed way to run it.

Claude CodeCursorCodexAntigravity

Built for coding agents. Every project ships with AGENTS.md, JSON Schemas, kirak validate, and a dev MCP server, so your agent knows the rules and checks its work before it runs.

your agent writes → Kirak servesruntime online
{
  "schema": {
    "customer_id": { "type": "uuid", "required": true },
    "total_cents": { "type": "integer", "required": true },
    "deposit_cents": { "type": "integer" },
    "status": { "type": "string", "enum": ["pending", "paid", "shipped"] }
  },
  "access": {
    "fetch":  [{ "role": "user", "condition": "customer_id = {user_id}" }],
    "create": [{ "role": "user", "condition": "customer_id = {user_id}" }],
    "update": [{ "role": "user", "condition": "customer_id = {user_id}" }]
  }
}

One file per model: schema and access, deny by default, with a row-level condition auto-injected on create.

Kirak serves
GET/orders/fetch200
POST/orders/create200
PUT/orders/update200
POST/graphql200
RLSenforced on every route above, owner-scoped✓
OpenAPI 3.1GET /docs for agents0 lines of CRUD code
The problem

Where vibe-coded backends break

The problem isn't your agent or your prompts. It's volume: every backend needs the same auth, access checks, and CRUD plumbing, and an agent that has to write all of it spends its context on table stakes. The failures hide in that plumbing (a missing access check, a dropped constraint, a webhook with no trace) and surface in production.

In one scan of 1,072 vibe-coded apps, 98% had security issues, and 16% were critical. Source

01Context rot

The more plumbing in the repo, the less of your system fits in the agent's context. Prompt loops revert yesterday's fix, agents add over old code instead of editing it, and they invent dependencies to get unblocked fast.

02Invisible security gaps

AI writes the happy path. Security lives in the edge cases it skips. An endpoint like /api/orders/123 never checks who is asking. Secrets sit on default permissions, and unparameterized queries allow injection. CVE-2025-48757: an insufficient row-level security policy let unauthenticated attackers read and write the databases of AI-generated sites.

03Architectural debt

AI adds. It rarely removes, and almost never refactors. A migration drops a constraint instead of altering it, the codebase ends up with five versions of fetchUser(), and frontend, API, and database quietly drift apart.

04The maintenance wall

Nobody wrote it line by line, so nobody can debug it line by line. It stays invisible until real load hits. A webhook drops with no trace, and engineers rewrite the app instead of patching it.

This isn't a prompting problem. It's a volume problem. Kirak's answer: that layer isn't generated, it's the runtime, tested and versioned once for every project. The model files in models/ hold the schema and access rules, and the agent adds to a declaration instead of rewriting code. What's left is a few hundred lines of hooks, small enough to read.

How it works

One declaration in. A running API out.

Your agent writes a few JSON files and, when something is genuinely custom, a hook. Kirak, the runtime, does everything from there: serves it, secures it, deploys it, and shows you how it's running in production.

01Declare

Your schema, auth, and access rules

Fields, relationships, authentication, and row-level access go in one JSON file per model under models/. Modules (payments, storage, notifications, AI, vector, MCP) turn on in kirak.json.

models/booking.json
{
  "schema": {
    "vehicle_id":    { "type": "uuid", "required": true },
    "renter_id":     { "type": "uuid", "required": true },
    "starts_at":     { "type": "datetime", "required": true },
    "ends_at":       { "type": "datetime", "required": true },
    "total_cents":   { "type": "integer", "required": true },
    "deposit_cents": { "type": "integer" }
  },
  "access": {
    "fetch":   [{ "role": "admin" }, { "role": "user", "condition": "renter_id = {user_id}" }],
    "create":  [{ "role": "user", "condition": "renter_id = {user_id}" }],
    "update":  [{ "role": "user", "condition": "renter_id = {user_id}" }],
    "destroy": [{ "role": "admin" }]
  }
}
02Serve

The runtime spins up the full API

Kirak reads the declaration and serves CRUD, auth, and RLS live, the same tested implementation across every project. No CRUD or auth code is written to your repo.

$ curl  ·  localhost:8000/booking/create
$ curl -X POST localhost:8000/booking/create \
    -H "Authorization: Bearer $TOKEN" \
    -d '{
      "vehicle_id": "v_41", "renter_id": "u_9",
      "starts_at": "2026-12-01T10:00", "ends_at": "2026-12-03T10:00",
      "total_cents": 18000
    }'

201 Created · 27ms
{ "id": "b_7f3a", "vehicle_id": "v_41", "total_cents": 18000, "deposit_cents": 3600 }
03Extend

Real Python for what's actually yours

  • Sync hooks run in line and can change or stop the request.
  • Async hooks handle side effects like emails. Their failures never fail the request.
  • Everything runs inside the access rules and survives every later change to your models.
src/hooks.py: real Python/FastAPI, yours to keep
@kirak.on("booking").hook("before_create")
def check_and_price(payload):
    data = payload["data"]
    if data["ends_at"] <= data["starts_at"]:
        raise ValidationError("ends_at must be after starts_at")
    data["deposit_cents"] = data["total_cents"] * 20 // 100
    return payload

@kirak.on("booking").hook("after_create")  # async: runs after the response
async def notify_owner(result):
    await kirak.notifications.send_email({
        "to": "bookings@yourapp.com", "template_name": "new_booking"})
    return result
04Deploy

One command to a public URL

Run kirak deploy in the project folder. It runs kirak validate first, then puts your API live on an HTTPS kirak.dev address: no account, no email, no card. Claim it within the hour to keep it on the free tier; after that, the same command updates the same instance. Prefer your own servers? It's a Python app, so it runs anywhere Python does. How deploy works →

terminal
$ kirak deploy
Deployed: https://amber-falcon.kirak.dev
Claim URL: https://…
Run 'kirak deploy claim-code' to retrieve your claim code.
Expires: in 1 hour, unless you claim it
05Observe

Built-in observability, not a bolt-on

The runtime instruments itself: requests, errors, and a trace waterfall across your hooks, the data layer, and outbound calls, including every AI agent run (model, tokens, cost) and MCP tool call. You debug by reading the timeline, not by adding print statements. It's served from the runtime's own endpoints, in the open-source release, with no third-party APM.

GET /monitoring/trace/req_9f2c1a
POST /booking/create                  31ms · 200

  auth.verify              ▓▓ 8ms
  hook: check_and_price    ░░▓ 4ms
  db.insert (booking)      ░░░▓▓▓▓▓ 19ms
  async: notify_owner      after the response · 61ms
The consequence
~97%less code in your repo

Estimate for a mid-size SaaS backend: ~22 models, RBAC on every endpoint, Stripe subscriptions, file uploads, scheduled jobs. Counts vary by app and stack; the ratio is the point.

Kirak is a runtime you install, not a code generator. Declare your data model, auth, and permissions in JSON model files, and Kirak serves the full REST API, including CRUD, auth, and RLS. No generated CRUD or auth code, nothing to keep in sync, no drift. Just one tested, versioned, open-source runtime, with real code only for logic unique to your app.

AI-generated backend
~19,600 lines you write, review, and secure
Kirak project
~545 lines, written by you or your agent inside the runtime's access rules

At ~545 lines, your agent can hold the whole backend in context on every prompt, the opposite of the context rot above.

That's not just less code — it's safer code. A smaller surface means less for a person or an agent to get wrong, and what's left runs through Kirak's data layer, so it's held to the same access rules as everything else.

The comparison

Why Kirak instead of Supabase?

Supabase is built for JavaScript and database-level logic: SQL policies, Edge Functions on Deno. Kirak brings that same declare-and-go speed natively to Python: your JSON model files directly serve the API with full row- and column-level security, your custom logic is FastAPI you own, and there's no second runtime for your custom code and no generated clutter to maintain.

SupabaseKirak
API layerPostgREST auto-generates a REST/GraphQL API from your schema; you still design and maintain the schema and migrationsThe runtime serves a full REST and GraphQL API straight from your JSON model files, with no CRUD code generated into your repo
Access controlRow-Level Security policies, written in SQL, enforced by Postgres on every queryAccess rules, written once as JSON in each model file instead of SQL, enforced by the runtime on every query
AuthenticationSupabase Auth: email, magic links, phone, 19 social providers plus custom OAuth/OIDC, and MFA200+ social providers through Social Core, TOTP MFA, SMS one-time codes, API keys, and native mobile sign-in
Custom server logicEdge Functions: TypeScript, running on Deno, a separate runtime from your databaseHooks and custom endpoints: real Python/FastAPI, running inside the same runtime as the rest of your backend
DatabasePostgres onlyPostgres, MySQL, or SQLite, chosen with one config line
StorageIts own S3-compatible storage, with image transformations on paid plansLocal disk or 9 object stores (S3, R2, GCS, Azure, and more), with compression, thumbnails, private files, and signed URLs
Background jobsSupabase Cron and Queues, running inside PostgresJobs, retries, and crons on your database, Redis, or RabbitMQ, plus a serverless tick mode
PaymentsNot built in: wire your own Stripe integration via Edge FunctionsNative: 12 gateways (Stripe, PayPal, Paddle, Razorpay, Square, Paystack, Flutterwave, Mercado Pago, and more), with subscriptions, refunds, saved cards, and disputes
NotificationsAuth-only email templates; SMS tied to phone login via a configured provider, with no push and no in-app inboxNative, multi-channel: email, SMS, push, Slack / Discord / Telegram, outgoing webhooks, and an in-app notification inbox, out of the box
IntegrationsNo managed per-user connections; Wrappers can query some external APIs from SQLYour users connect their own third-party accounts (OAuth2 or API keys), with encrypted tokens and automatic refresh: 112 ready-made profiles, plus your own
AI agentsNo agent runtime: call an LLM yourself from an Edge FunctionDeclarative agents in JSON, using your API's operations as tools under the caller's access rules, with human approval, cost caps, and run history
Vector & RAGpgvector in Postgres; you write the embedding and retrieval codeVector module: Pinecone or Amazon S3 Vectors, with OpenAI, Gemini, or Ollama embeddings; agents retrieve through it as a tool
MCPAn MCP server for managing your Supabase project from AI dev toolsMCP servers for your own API: one JSON file each, choosing the tools, who may connect, and a rate limit; every call runs under your access rules
CachingCDN caching for Storage assets onlyNative Redis caching for application data and queries
Rate limitingConfigurable limits on Supabase's Auth endpoints; limits for your own API are yours to buildGlobal limits and per-model overrides, built in, with Redis or database-backed counters, standard headers
MonitoringLogs on every plan, kept 1 day on Free and 7 days on ProAPI Analytics, logs, and traces, plus every AI agent run (model, tokens, cost, tools used) and every MCP tool call, built into the open-source runtime itself
Kirak Studio

Start in Studio or start locally. Run it from one console.

Describe what you're building and Studio's AI agent writes your models, kirak.json, hooks, and endpoints. Or build locally with your own coding agent and run kirak deploy: the project lands in Studio, ready to run and manage. It's a two-way door. Studio commits every change to your GitHub, so you can pull it and keep working locally, and local projects deploy into Studio in one command.

Start in Studio
Studio agentdescribe your app
Kirak Studiobuild, deploy, monitor
Your GitHubevery change, a commit
LocalClaude Code, Cursor, or Codex

↩ Changes made locally go back to Studio with kirak deploy.

Start locally
Local buildClaude Code, Cursor, or Codex
Kirak Studiorun, monitor, manage
Inside the console
Inside the runtime

Everything a production backend needs, already running.

Kirak isn't a starter kit you fill in. It reads your model files and kirak.json and serves the whole backend: the same implementation behind every project.

Authentication
JWT sessions with MFA, passwordless SMS one-time codes, API keys for server-to-server calls, email verification, and native mobile sign-in, built into Kirak Auth. Social login through Social Core.
GoogleGitHubAppleMicrosoftLinkedInDiscord+ 200 more
Payments
Checkout, subscriptions, refunds, saved cards and off-session charges, disputes, and marketplace payouts, with webhook verification & reconciliation, in any currency, served by the runtime, not a hook you maintain. Run several gateways side by side.
StripePayPalPaddleRazorpaySquare+ 7 more
Storage
File and image upload with automatic compression and thumbnails, public or private files, signed URLs, and paths scoped to each user, on local disk or any of nine object stores.
LocalS3Cloudflare R2Google Cloud StorageAzure Blob+ 5 more
Notifications
Email, SMS, push, instant messages, outgoing webhooks, and an in-app inbox.
SESSendGridSMTPTwilioFirebaseSlack+ 18 more
Integrations
Let your users connect their own third-party accounts, through OAuth2 or API keys. Kirak encrypts the tokens, refreshes them automatically, hands your code a ready client for API calls, and stores and retries incoming webhooks. Pick from ready-made profiles or define your own without touching Kirak.
HubSpotGitHubSalesforceSlackAirtable+ 107 more
Scheduler
Background jobs, retries, and cron (in code or as schedules managed over HTTP), with signed jobs, crash recovery, and a serverless tick mode. Zero extra infrastructure by default; run several queue backends at once to scale:
RedisRabbitMQ
AI
Declarative agents in agents/*.json that use your API's operations, MCP servers, and your own Python functions as tools, running as the caller under your access rules. Human approval before sensitive tools, cost caps, conversations, streaming, structured output, and full run history. Bring your own key; built on pydantic-ai, so any model it supports works.
OpenAIAnthropicGeminiOpenRouter+ any pydantic-ai model
Vector
Vector stores and embeddings for RAG: create indexes, upsert, and search from your hooks and routes. Agents retrieve through it as a tool, so the agent decides when to look something up; there's no fixed pipeline to maintain.
PineconeS3 VectorsEmbeddings:OpenAIGeminiOllama
Caching
Native Redis caching, declared per model.
Redis
Rate limiting
Global limits and per-model overrides, with Redis or database-backed counters and standard rate-limit headers. Declared, not coded.
Monitoring
Performance data, structured logs, error tracking, request tracing, AI run costs, MCP tool calls, audit records, and alert checks, built into the runtime rather than bolted on.
MCP
Declare MCP servers in mcp/*.json, one per audience, each with its own toolkit of operations and Python tools, who may connect, and a rate limit. Any MCP client can connect, and every tool call runs as the caller, under your access rules. Nothing is exposed until you declare it.
Coding agents
kirak new writes an AGENTS.md and JSON Schemas for every file; kirak validate checks each edit before the app starts; kirak catalog --json answers facts instead of guessing; kirak dev mcp is a dev MCP server for your coding agent; and GET /docs describes the running API in Markdown.
Claude CodeCursorCodex
MySQLPostgreSQLSQLite

Database-agnostic

PostgreSQL, MySQL, or SQLite, chosen with one config line, not tied to a single vendor.

SOC 2

Built for SOC 2 reviews

Security controls built to help the APIs you serve pass a SOC 2 review.

Apache 2.0

No lock-in, by construction

Fork it, self-host it, or take your Studio project's GitHub repo with you. Nothing here requires staying.

Pricing

Free to start, then pay as you grow.

Kirak Studio has a free plan for prototypes. Move up when your traffic does: paid plans add projects, capacity, and dedicated instances.

Prefer your own servers? The Kirak runtime is open source under Apache 2.0, so you can self-host it wherever you like. Learn more →

Is Kirak Studio free?

Yes, to start. Studio's free plan covers prototypes; paid plans from $25 a month add capacity, and you can move up to dedicated instances. You can also skip Studio entirely and self-host Kirak for free.

Can I leave Studio later?

Yes. Every Studio project commits to your own GitHub repo, and the runtime underneath is open source. Pull the repo and keep working locally, deploy it with kirak deploy, or self-host it anywhere.

Is Kirak open source?

Yes. The Kirak runtime is genuine open source, with no restrictions on how you use it, including self-hosting and commercial use. Kirak Studio is the paid managed service built on top.

Which coding agents work with Kirak?

Any agent that can read files and run commands. Every project ships with an AGENTS.md, JSON Schemas and kirak validate, and kirak dev mcp gives agents a dev MCP server. Claude Code, Cursor and Codex work out of the box.

Does Kirak generate a backend codebase into my repo?

No. The CRUD, auth, RLS, payments, and storage aren't code in your project: the runtime serves them from your JSON model files. The only code you write is your hooks and custom endpoints in src/: real Python you own, typically a few hundred lines.

Is the code I write a security risk?

Your hooks and endpoints read and write through Kirak's data layer, so the authentication and row-level access rules in your model files apply to that data automatically. Access control is the runtime's job; your code is business logic.

Is Kirak SOC 2 compliant?

Kirak itself is not SOC 2 compliant today. The runtime is built to help the APIs it serves pass a SOC 2 review (a design goal for what you build, not a certification Kirak currently holds).

Can I use MySQL or SQLite instead of PostgreSQL?

Yes. Kirak is database-agnostic. Choose PostgreSQL, MySQL, or SQLite with a single config change.

Does Kirak work with Lovable or Bolt?

Yes, today, via manual MCP configuration: declare an MCP server in mcp/ with the tools the builder may use, then point the tool at /mcp/<name>/ the way you would any other MCP server. It isn't yet a built-in default option inside those tools.

Your AI shouldn't have to rebuild the same backend every time.
Neither should you.

Ask about Kirak on