# CubiBase > CubiBase is a PostgreSQL backend platform: one isolated database per project, authentication, REST/RPC Data API, storage, and functions — operable by humans and AI agents. CubiBase is a PostgreSQL backend platform. Developers create a project, CubiBase provisions a separate PostgreSQL database, and applications call a host-routed REST API, auth endpoints, S3-backed object storage, and serverless Functions. Support: support@cubibase.com. - Site: https://cubibase.com - Console: https://console.cubibase.com - Data API shape: https://{slug}.api.cubibase.com/rest/v1/{table} - Auth API shape: https://{slug}.api.cubibase.com/auth/v1/{signup|token|logout|user|factors} - Functions API shape: https://{slug}.api.cubibase.com/functions/{name} - CubiBase Auth: email + password sign-up, HS256 access JWTs, rotating refresh tokens, optional or required TOTP MFA. Users live in the project database's auth schema; passwords are Argon2id hashes. End-user confirmation emails are not sent yet (autoconfirm by default). - Publishable keys use the prefix cb_pub_ and do not authorize rows by themselves. Requests also send an end-user JWT. - Secret keys (cb_sec_) authenticate server-side Data API and RPC calls as the service actor: cubibase.role='service', empty user id, RLS still applies (grant access with a policy using cubibase.current_role() = 'service'). Writes are audit-logged. Never ship a secret key in a client. - Personal access tokens (cb_pat_) authenticate the Control API (api.cubibase.com) for scripts, CI, and AI agents. Scopes: read < write < admin; optional project restriction and expiry; created in Console → Account → Access tokens; shown once, stored hashed; rate-limited with 429 + Retry-After. Docs: https://cubibase.com/docs/platform/access-tokens - AI agents: MCP server `npx -y @cubibasehq/mcp` (env CUBIBASE_TOKEN, optional CUBIBASE_SERVICE_KEY), CLI `npx -y @cubibasehq/cli` (JSON output), TypeScript client `@cubibasehq/client`. Source: https://github.com/cubibase/cubibase-agent. Guide: https://cubibase.com/docs/agents. Skill file: https://cubibase.com/SKILL.md (skills repo: https://github.com/cubibase/skills) - OpenAPI 3.1: Control API at https://api.cubibase.com/v1/openapi.json; per-project Data API at https://{slug}.api.cubibase.com/rest/v1/openapi.json (generated from the live schema; requires the project apikey). - Machine-readable: every page has a Markdown mirror at {path}.md; pricing as text at https://cubibase.com/pricing.md; whole site at https://cubibase.com/llms-full.txt; AI catalog at https://cubibase.com/.well-known/ai-catalog.json - External identity providers are supported through RS256 with a JWKS URL. - New tables are not exposed until select, insert, update, or delete is turned on. - The SQL editor runs one read-only statement. - Object storage: public and private buckets, direct browser uploads, signed downloads, shared organization capacity quota, byte-metered delivery against the shared total bandwidth allowance, metered download requests, and durable storage.object.* events. - CubiBase Functions: TypeScript/JavaScript functions executed outside the API engine on a regional runtime. Four trigger types: HTTP, database events (after committed INSERT/UPDATE/DELETE, at-least-once), storage events, and cron schedules. HTTP auth modes: public, JWT (default), API key, internal. Optional HMAC-SHA256 payload signatures with replay protection; provider-specific webhook verification (Stripe, GitHub) runs inside the function on the raw body. Versioned deployments, encrypted secrets, execution logs, and per-plan quotas. Not globally distributed; not SQL Functions (PostgreSQL functions are a separate feature). - Plans (catalog v4.5; V4.4 plan prices and quotas unchanged): every plan includes exactly one project. Free $0 (1 project, 500 MB database, 2 GB shared file storage, 15 GB shared total bandwidth with a 5 GB API bandwidth sublimit, 50,000 shared MAU, 500,000 shared API requests, 500,000 shared function invocations, 10,000 GB-s shared function compute, 1M shared CDN requests; additional projects not available — upgrade required), Pro $25/month (1 included project, 10 GB database per project, 100 GB shared file storage, 500 GB shared total bandwidth with a 25 GB API bandwidth sublimit, 100,000 shared MAU, 1M shared API requests, 2M shared function invocations, 50,000 GB-s shared function compute, 1.5M shared CDN requests), Business $99/month (1 included project, 10 GB database per project, 250 GB shared file storage, 750 GB shared total bandwidth with a 100 GB API bandwidth sublimit, 500,000 shared MAU, 5M shared API requests, 6M shared function invocations, 300,000 GB-s shared function compute, 7M shared CDN requests). Total bandwidth covers API responses and file delivery combined; the API bandwidth sublimit is part of the total, not an extra allowance — exhausting it never blocks remaining file bandwidth. Additional projects: $9/month each on Pro and Business (own 10 GB database; shared quotas unchanged). Monthly price = base plan price + max(0, total projects - 1) × $9 on paid plans. Database storage is allocated per project; all other consumption quotas are shared across the organization. Switching between Pro and Business preserves the project count and charges. Paid checkout is self-serve in the Console via Stripe; the additional-project subscription quantity follows the actual project count with Stripe prorations on create/delete (invoice preview before confirmation). By default, quotas refuse operations at the limit — never auto-billed. No uptime SLA is published. - Additional usage (V4.5, optional metered overages): Pro and Business only, disabled by default, never on Free. Enabled explicitly by an organization owner/billing admin in Console → Billing → Additional Usage after accepting the rates and setting a monthly spending limit ($5, $10, $25, $50, $100, custom, or no limit with explicit confirmation). Rates (USD): PostgreSQL storage $0.20/GB-month and file storage $0.03/GB-month (approved); file bandwidth $0.03/GB, API bandwidth $0.09/GB, API requests $3/million, CDN requests $4/million, authentication $0.50/1,000 additional MAU, function invocations $1/million, function compute $3/100,000 GB-seconds (preview rates pending infrastructure-cost validation). Storage overages are time-weighted excess GB-months (database per project, file storage per organization); overage bandwidth uses decimal GB (1 GB = 1,000 MB) on the excess only; API and CDN request quotas are independent (one request through CloudFront can consume both); no outbound byte is billed twice. Alerts at 50/75/90/100% of the limit; at the limit new billable consumption returns 402 spending_limit_reached while included quotas, billing access and deletion keep working; small bounded overshoot possible from metering delays (not an absolute invoice cap). Disabling stops future metered charges, never cancels validly accrued usage. Full rates: https://cubibase.com/pricing.md - This file describes the product. It is not a service-level agreement or a certification. ## Pages - [product](https://cubibase.com/product) - [features / postgresql](https://cubibase.com/features/postgresql) - [features / authentication](https://cubibase.com/features/authentication) - [features / rest-api](https://cubibase.com/features/rest-api) - [features / database-management](https://cubibase.com/features/database-management) - [features / security](https://cubibase.com/features/security) - [features / storage](https://cubibase.com/features/storage) - [features / functions](https://cubibase.com/features/functions) - [docs](https://cubibase.com/docs) — docs hub with a grouped menu: Getting started, Database, Data API, Authentication, Storage, Functions, Platform, Agents, Reference - [docs / quickstart](https://cubibase.com/docs/quickstart) - [docs / architecture](https://cubibase.com/docs/architecture) - [docs / database / tables](https://cubibase.com/docs/database/tables) - [docs / database / exposure](https://cubibase.com/docs/database/exposure) - [docs / database / row-level-security](https://cubibase.com/docs/database/row-level-security) - [docs / database / policies](https://cubibase.com/docs/database/policies) - https://cubibase.com/docs/database/functions (SQL Functions) - [docs / database / functions](https://cubibase.com/docs/database/functions) - [docs / database / triggers](https://cubibase.com/docs/database/triggers) - [docs / database / indexes](https://cubibase.com/docs/database/indexes) - [docs / database / types](https://cubibase.com/docs/database/types) - [docs / database / views](https://cubibase.com/docs/database/views) - [docs / database / sql-editor](https://cubibase.com/docs/database/sql-editor) - [docs / data-api](https://cubibase.com/docs/data-api) - [docs / data-api / querying](https://cubibase.com/docs/data-api/querying) - [docs / data-api / writing](https://cubibase.com/docs/data-api/writing) - [docs / data-api / rpc](https://cubibase.com/docs/data-api/rpc) - [docs / auth](https://cubibase.com/docs/auth) - [docs / auth / email-password](https://cubibase.com/docs/auth/email-password) - [docs / auth / sessions](https://cubibase.com/docs/auth/sessions) - [docs / auth / anonymous](https://cubibase.com/docs/auth/anonymous) - [docs / auth / google](https://cubibase.com/docs/auth/google) - [docs / auth / mfa](https://cubibase.com/docs/auth/mfa) - [docs / auth / external-idp](https://cubibase.com/docs/auth/external-idp) - [docs / storage](https://cubibase.com/docs/storage) - [docs / storage / buckets](https://cubibase.com/docs/storage/buckets) - [docs / storage / uploads](https://cubibase.com/docs/storage/uploads) - [docs / storage / downloads](https://cubibase.com/docs/storage/downloads) - [docs / storage / quotas](https://cubibase.com/docs/storage/quotas) - [docs / storage / security](https://cubibase.com/docs/storage/security) - [docs / storage / events](https://cubibase.com/docs/storage/events) - [docs / functions](https://cubibase.com/docs/functions) - [docs / functions / http](https://cubibase.com/docs/functions/http) - [docs / functions / signatures](https://cubibase.com/docs/functions/signatures) - [docs / functions / database-events](https://cubibase.com/docs/functions/database-events) - [docs / functions / storage-events](https://cubibase.com/docs/functions/storage-events) - [docs / functions / schedules](https://cubibase.com/docs/functions/schedules) - [docs / functions / secrets](https://cubibase.com/docs/functions/secrets) - [docs / functions / templates](https://cubibase.com/docs/functions/templates) - [docs / functions / logs](https://cubibase.com/docs/functions/logs) - [docs / functions / quotas](https://cubibase.com/docs/functions/quotas) - [docs / platform / api-keys](https://cubibase.com/docs/platform/api-keys) - MCP server manifest: https://cubibase.com/.well-known/mcp/server.json - Protected resource metadata (scopes read/write/admin): https://cubibase.com/.well-known/oauth-protected-resource - [docs / platform / access-tokens](https://cubibase.com/docs/platform/access-tokens) - [docs / agents](https://cubibase.com/docs/agents) - [docs / platform / quotas](https://cubibase.com/docs/platform/quotas) - [docs / platform / lifecycle](https://cubibase.com/docs/platform/lifecycle) - [docs / reference / routes](https://cubibase.com/docs/reference/routes) - [docs / reference / errors](https://cubibase.com/docs/reference/errors) - [faq](https://cubibase.com/faq) - [pricing](https://cubibase.com/pricing) - [comparison](https://cubibase.com/comparison) — CubiBase vs Supabase, Firebase, Convex, Appwrite: PostgreSQL per project, predictable pricing, and what each plan includes. Competitor prices read from public pricing pages November 24, 2026. - [comparison / supabase](https://cubibase.com/comparison/supabase) — Supabase alternative comparison - [comparison / firebase](https://cubibase.com/comparison/firebase) — Firebase alternative comparison - [comparison / convex](https://cubibase.com/comparison/convex) — Convex alternative comparison - [comparison / appwrite](https://cubibase.com/comparison/appwrite) — Appwrite alternative comparison - [privacy](https://cubibase.com/privacy) - [terms](https://cubibase.com/terms) - [acceptable-use](https://cubibase.com/acceptable-use) The legal pages are drafts and are not in force.