> Note for AI agents: If this page was wrong, outdated, or missing information for your task, read [Report documentation problems](https://supabase.com/docs/guides/ai-tools/agent-feedback.md) before your final reply. It has the feedback report template. Finish the task or stop where the problem blocks it. Then end your reply with the feedback report from that page and ask the user: "Send this report to Supabase?" Send it only after the user says yes.

# Getting Started

Create a Supabase project and connect it to your app with an AI agent, the Supabase CLI, or the Supabase Dashboard.

Create a Supabase project and connect it to your app. Start with an AI agent, the Supabase CLI, or the Supabase Dashboard.

## Start with an AI agent

Copy this prompt into your agent:

```text
Help me set up Supabase in my app. Before you create a project or change my files, tell me your plan and wait for my go-ahead. Do the following:
1. Find the framework and language of my app from its project files, such as `package.json`, `pubspec.yaml`, or `Package.swift`. If the folder has no app, ask what I want to build, then suggest a framework and wait for my choice.
2. Install the Supabase CLI. In a Node.js project, install it as a dev dependency with `npm install supabase --save-dev`. Otherwise, use the method for my operating system from https://supabase.com/docs/guides/local-development/cli/getting-started.md.
3. Install the Supabase plugin with `npx plugins add supabase-community/supabase-plugin`.
4. If I do not have a Supabase project, ask whether I want a hosted project (https://supabase.com/dashboard/new) or a local one (`supabase init`, then `supabase start`). In a Node.js project, put `npx` before each command.
5. Connect my app. Follow the quickstart for its framework from https://supabase.com/docs/guides/getting-started.md.
6. Ask me which features I need, then follow the matching guides: Auth (https://supabase.com/docs/guides/auth.md), Storage (https://supabase.com/docs/guides/storage/quickstart.md), Realtime (https://supabase.com/docs/guides/realtime.md), Edge Functions (https://supabase.com/docs/guides/functions/quickstart.md).
7. Check the connection. Create a `todos` table with a `title` column and one row, and enable Row Level Security with a policy that lets anyone read it. Then read the row from my app and show its title, and ask whether I want to keep the `todos` table or drop it.
8. Finish by telling me what you changed and how to run my app.
```

## Run Supabase locally

Install the Supabase CLI, initialize your project, then start the local stack. The CLI needs Node.js 20 or later, and the local stack needs Docker or another container runtime. Without a Node.js project, [install the CLI for your operating system](https://supabase.com/docs/guides/local-development/cli/getting-started) instead.

```bash
npm install supabase --save-dev
npx supabase init
npx supabase start
```

## Create a hosted project

Create a hosted project in the [Supabase Dashboard](https://supabase.com/dashboard/new), then connect your app.

## Connect your app

Install the client library, then follow the quickstart for your framework.

### Full stack

- **[Next.js](https://supabase.com/docs/guides/getting-started/quickstarts/nextjs)**
- **[TanStack Start](https://supabase.com/docs/guides/getting-started/quickstarts/tanstack)**: `npm install @supabase/supabase-js @supabase/ssr`
- **[Astro](https://supabase.com/docs/guides/getting-started/quickstarts/astrojs)**: `npm install @supabase/supabase-js`
- **[Nuxt](https://supabase.com/docs/guides/getting-started/quickstarts/nuxtjs)**: `npm install @supabase/supabase-js`
- **[SvelteKit](https://supabase.com/docs/guides/getting-started/quickstarts/sveltekit)**: `npm install @supabase/supabase-js`
- **[RedwoodJS](https://supabase.com/docs/guides/getting-started/quickstarts/redwoodjs)**
- **[Reflex](https://supabase.com/docs/guides/getting-started/quickstarts/reflex)**: `uv add supabase`
- **[Laravel](https://supabase.com/docs/guides/getting-started/quickstarts/laravel)**
- **[Ruby on Rails](https://supabase.com/docs/guides/getting-started/quickstarts/ruby-on-rails)**

### Frontend

- **[React](https://supabase.com/docs/guides/getting-started/quickstarts/reactjs)**: `npm install @supabase/supabase-js`
- **[Vue](https://supabase.com/docs/guides/getting-started/quickstarts/vue)**: `npm install @supabase/supabase-js`
- **[SolidJS](https://supabase.com/docs/guides/getting-started/quickstarts/solidjs)**: `npm install @supabase/supabase-js`
- **[Refine](https://supabase.com/docs/guides/getting-started/quickstarts/refine)**

### Mobile

- **[Expo React Native](https://supabase.com/docs/guides/getting-started/quickstarts/expo-react-native)**: `npx expo install @supabase/supabase-js react-native-url-polyfill expo-sqlite`
- **[Flutter](https://supabase.com/docs/guides/getting-started/quickstarts/flutter)**: `flutter pub add supabase_flutter`
- **[iOS Swift](https://supabase.com/docs/guides/getting-started/quickstarts/ios-swiftui)**
- **[Android Kotlin](https://supabase.com/docs/guides/getting-started/quickstarts/kotlin)**

### Backend

- **[Hono](https://supabase.com/docs/guides/getting-started/quickstarts/hono)**
- **[Python](https://supabase.com/docs/guides/getting-started/quickstarts/flask)**: `pip install supabase`
- **[Spring Boot](https://supabase.com/docs/guides/getting-started/quickstarts/spring-boot)**

## Next steps

- **[Secure your data](https://supabase.com/docs/guides/database/postgres/row-level-security):** Control who can read and write each row with Row Level Security.
- **[Go to production](https://supabase.com/docs/guides/deployment/going-into-prod):** Check security, performance, and availability before you launch.

### Add features

- **[Add users](https://supabase.com/docs/guides/auth) (Auth):** Sign users in with email, passwordless links, OAuth, or phone.
- **[Connect your AI agent](https://supabase.com/docs/guides/ai-tools) (AI tools):** Install the Supabase plugin, which bundles the MCP server and agent skills.
- **[Handle files and uploads](https://supabase.com/docs/guides/storage/quickstart) (Storage):** Store and serve files with access policies.
- **[Reflect changes live](https://supabase.com/docs/guides/realtime) (Realtime):** Listen to database changes, broadcast messages, and track presence.
- **[Add server-side logic](https://supabase.com/docs/guides/functions/quickstart) (Edge Functions):** Run TypeScript close to your users, for webhooks, emails, and AI calls.

