Every AI APP needs the same backend chores — data storage, user auth, file uploads, realtime sync, and serverless compute. Stop reinventing them.
Open source under Apache 2.0 · Self-host or run on Mortar Cloud
3 baseline (compute / database / cache — always-on capacity) + 3 metered (storage / network / function — pay per use) — shaped like your cloud bill
TypeScript · Swift · Kotlin · Dart. AI agents already know the API shape (Supabase-style)
Apache 2.0 — every primitive, every feature, every SDK. Mortar Cloud is the managed wrapper, not a fork
Nano / Micro / Small / Medium / Large — start free on Nano, size up by capacity. Switch sizes without re-architecting
npm install @mortar/client
import { createClient } from '@mortar/client';
const mortar = createClient({
url: 'https://api.mortar.appunvs.com',
apiKey: 'mtr_live_...',
tenant: 'proj_abc',
});
const todos = await mortar.from('todos').select({ limit: 10 });
await mortar.from('todos').insert({ title: 'buy milk' }); # One-line login + provision; same commands in CI / scripts / agent containers
npx @mortar/cli login --new
mortar projects create --name=my-app --tier=tiny
mortar keys create admin --scope=admin --save
# Subsequent commands target the current project
mortar usage me
mortar tables list
mortar compute deploy worker ./worker.js // Drop into Claude Desktop / Cursor / Codex CLI config:
{
"mcpServers": {
"mortar": {
"command": "npx",
"args": ["-y", "@mortar/mcp"]
}
}
}
// Tools the AI gets, with no extra glue:
// mortar_query read rows
// mortar_insert write one row
// mortar_usage_me credit + tier-cap snapshot
// mortar_projects_list all projects on the account