# Scribase > Scribase is an application cloud built for coding agents: Postgres, Auth, Storage, Realtime and Edge Functions per project, managed through a /v1 control API, a CLI, an SDK and an MCP server. An agent goes from an empty folder to a live backend with `npx scribase init --temp --yes --json`, no account and no pasted key. Apps use @supabase/supabase-js unchanged against a project URL and anon key. Coding agents (Claude Code, Codex, Cursor, Windsurf) should start with "Build with AI agents": it covers the MCP server, token scopes, branch-per-task and the safety rules every mutation follows. Every page below is plain markdown; llms-full.txt is all of them in one file. ## Getting Started - [Hosted quickstart](https://docs.scribase.com/docs/hosted.md): Sign up, add a card, and get a live Scribase backend with its URL and key in about a minute; then manage it from code. - [Frameworks](https://docs.scribase.com/docs/frameworks.md): What `npx scribase init` does in each framework (Next.js, Expo, React Native, Vite, SvelteKit, Nuxt, Astro, Remix, Express, Flutter), the env variables it writes and the one edit where needed. - [Pricing and billing](https://docs.scribase.com/docs/pricing.md): Unlimited projects at $9 per project per month, charged daily from a prepaid balance, or $299/month for any number of projects. How the balance, top-ups, grace period and pausing work, and how operators configure it. - [Getting Started](https://docs.scribase.com/docs/getting-started.md): Introduction to Scribase — the open application cloud. - [Self-hosting](https://docs.scribase.com/docs/self-hosting.md): Deploy Scribase on your own infrastructure with Docker Compose or Helm. - [Single-box deploy (many projects)](https://docs.scribase.com/docs/single-box.md): Run the Scribase control plane and dozens of small projects on one VPS, with built-in admin sign-in, scale-to-zero project containers, and copy-on-write database branches on the same box. - [Built-in admin login](https://docs.scribase.com/docs/admin-login.md): Sign in to a self-hosted Scribase control plane with its own password login (SCRIBASE_AUTH_MODE=builtin), with no identity provider. ## Build with AI agents - [Build with AI agents](https://docs.scribase.com/docs/agents.md): Let Claude Code, Codex, Cursor or Windsurf create and run your Scribase backend. Install the MCP server once, ask for a project, and the agent writes .env and the code. - [Connect your agent](https://docs.scribase.com/docs/agents/setup.md): One-line Scribase MCP setup for Claude Code, Cursor, Codex and Windsurf, the Claude Code plugin, and the local stdio server. - [Why you never need to paste a secret key](https://docs.scribase.com/docs/agents/no-secret-keys.md): Coding agents refuse pasted secret keys, and they are right. Sign an agent in with scribase login, MCP OAuth or a temporary project instead, and hand over only paste-safe scb_agt_ tokens. - [Tokens and safety](https://docs.scribase.com/docs/agents/safety.md): Which token to give a coding agent, how scopes, expiry, revocation and the audit log work, and the guardrails every Scribase mutation goes through. - [Branch per task](https://docs.scribase.com/docs/agents/branch-per-task.md): Give each agent task its own preview environment, a sanitized copy of production with a TTL, and merge it back only after you approve the diff. - [Temporary databases](https://docs.scribase.com/docs/agents/temporary-databases.md): Claimable temporary projects an agent creates with no account, `npx scribase init`, previews with a TTL and the MCP scratch branch. ## CLI Reference - [CLI Reference](https://docs.scribase.com/docs/cli.md): Reference for the scribase command-line interface. - [scribase doctor](https://docs.scribase.com/docs/cli/doctor.md): Check API connectivity and access token configuration. - [login, whoami and token](https://docs.scribase.com/docs/cli/login.md): Sign the scribase CLI in through the browser (device login), with a personal access token or the built-in password login, and manage your tokens. - [org, project and env](https://docs.scribase.com/docs/cli/resources.md): Create and read organizations, members, projects and environments with the scribase CLI, and poll the operations they start. - [backup and restore](https://docs.scribase.com/docs/cli/backup.md): Take, list and verify backups of an environment, and restore a backup into an environment, with the scribase CLI. - [apps switch](https://docs.scribase.com/docs/cli/apps.md): Print the URL and public key a mobile or web app needs to point supabase-js at a Scribase environment, plus the auth settings native sign-in depends on. - [gen types](https://docs.scribase.com/docs/cli/gen-types.md): Generate supabase-js TypeScript Database types from a live Scribase environment or any Postgres database. - [vercel env push](https://docs.scribase.com/docs/cli/vercel.md): Put a Scribase environment's URL and keys into the linked Vercel project for development, preview and production, with no dashboard, template or integration install. npx scribase init does it automatically. - [scribase dev](https://docs.scribase.com/docs/cli/dev.md): Start and manage the local Postgres and services stack. - [scribase migrate](https://docs.scribase.com/docs/cli/migrate.md): Run migrations against a remote Scribase environment. - [scribase db pull](https://docs.scribase.com/docs/cli/db-pull.md): Capture a remote database's schema as a local migration file. - [scribase branch](https://docs.scribase.com/docs/cli/branch.md): Manage local and remote database branches. - [scribase queue](https://docs.scribase.com/docs/cli/queue.md): Manage message queues in a Scribase environment. - [scribase import](https://docs.scribase.com/docs/cli/import.md): Import a schema from a URL or migrate a Supabase project. - [scribase export](https://docs.scribase.com/docs/cli/export.md): Export a runnable deployment bundle for a Scribase environment, then list, inspect and download it. - [scribase functions](https://docs.scribase.com/docs/cli/functions.md): Deploy, list, inspect, invoke, roll back and delete an environment's edge functions. - [scribase secrets](https://docs.scribase.com/docs/cli/secrets.md): Set, list and remove the secrets bound into an environment's edge functions. - [scribase schema](https://docs.scribase.com/docs/cli/schema.md): Compile and test Scribase schema files. - [scribase insights](https://docs.scribase.com/docs/cli/insights.md): Analyze a live Scribase environment for schema and policy improvements. ## Control API /v1 - [Control API /v1 Reference](https://docs.scribase.com/docs/api.md): The Scribase durable management API — resource reference. - [Access tokens & API keys](https://docs.scribase.com/docs/api/tokens.md): Create the credentials the CLI, the SDK, and CI use to call the Scribase control API. - [Device login (OAuth device flow)](https://docs.scribase.com/docs/api/device-login.md): The OAuth 2.0 Device Authorization Grant (RFC 8628) behind scribase login - how a CLI or coding agent gets a scoped agent token after a person approves it in the console. - [Environment API keys](https://docs.scribase.com/docs/api/environment-keys.md): The anon, service_role, publishable and secret keys an app uses to call an environment, how to read them, and how to rotate the JWT secret behind them. - [Organizations](https://docs.scribase.com/docs/api/organizations.md): Create and manage Scribase organizations. - [Projects](https://docs.scribase.com/docs/api/projects.md): Manage projects within a Scribase organization. - [Environments](https://docs.scribase.com/docs/api/environments.md): Create and manage Scribase Postgres environments. - [Backups & restore](https://docs.scribase.com/docs/api/backups.md): List, create, and restore verified backups through the control API, and read the evidence each one carries. - [Exports](https://docs.scribase.com/docs/api/exports.md): Assemble a runnable, signed bundle of an environment — schema, data, auth, storage, and policies — that boots elsewhere. - [Migrations](https://docs.scribase.com/docs/api/migrations.md): Run schema migrations against a Scribase environment via the API. - [Branches](https://docs.scribase.com/docs/api/branches.md): Schema-level branching via the Scribase control API. - [Queues](https://docs.scribase.com/docs/api/queues.md): Durable message queues within Scribase environments. - [Imports](https://docs.scribase.com/docs/api/imports.md): Migrate a Supabase project into a Scribase environment via the API. - [Operations](https://docs.scribase.com/docs/api/operations.md): Poll asynchronous operations in Scribase. - [Audit Events](https://docs.scribase.com/docs/api/audit.md): Query the organization audit log. - [Data-plane views](https://docs.scribase.com/docs/api/data-plane.md): Read-only control-API views into a live environment — auth, database, storage, functions, realtime, queues, metrics, insights, and logs. ## SDK (scribase-js) - [SDK (scribase-js)](https://docs.scribase.com/docs/sdk.md): The typed TypeScript client for the Scribase control-plane /v1 API — every resource, with working examples. ## Concepts - [Auth](https://docs.scribase.com/docs/concepts/auth.md): JWT-based authentication with social and SAML providers. - [Storage](https://docs.scribase.com/docs/concepts/storage.md): S3-compatible object storage with bucket policies and RLS. - [Realtime](https://docs.scribase.com/docs/concepts/realtime.md): WebSocket subscriptions over Postgres change data capture. - [Functions](https://docs.scribase.com/docs/concepts/functions.md): Edge functions — write, deploy, invoke, and run server-side TypeScript on the Supabase-compatible /functions/v1 path. - [Branching](https://docs.scribase.com/docs/concepts/branching.md): Copy-on-write database branches for safe development and preview environments. - [Single sign-on (SSO)](https://docs.scribase.com/docs/concepts/sso.md): Sign in to the Scribase console through your organization's own OIDC or SAML 2.0 identity provider, verify email domains, and require SSO. ## Aegis Policy Compiler - [Aegis Policy Compiler](https://docs.scribase.com/docs/aegis.md): Compile-time RLS policy verification for Scribase schemas.