Getting Started with Refine

Learn how to build your first internal tool with Refine. Connect your data, describe what you want, and get a working app in minutes.

Build your first internal tool in under 10 minutes.

Refine is an AI-powered builder for admin panels, dashboards, and CRUD apps. You describe what you want; the AI generates a complete React application connected to your data.

Refine start page showing connection options

How It Works

Describe

Tell Refine what you want to build: "Create an admin panel for managing users"

Clarify

Answer a few quick questions in a modal. The AI needs to understand your requirements.

Review

See the AI's step-by-step plan before it builds anything. Approve or adjust.

Execute

Press Execute and watch your app come to life in the Preview panel.

No drag-and-drop. No manual wiring. Just describe, clarify, and build.


Choose Your Path

Refine offers three ways to start:

PathBest forTime
Start with ChatExplore and experiment~2 min
Start with SupabaseYou have a Supabase database~5 min
Start with REST APIYou have an existing backend~10 min

Option 1: Start with Chat

The fastest way to try Refine. No setup required.

What happens

  1. Go to refine.dev/start
  2. Type a prompt in the chat box:
    Create a simple task manager with a list and add form
  3. Refine generates a working app with mock data
  4. Connect real data later when ready

Tip

This is the best way to learn how Refine works. Experiment freely, then connect a database when you're ready to build something real.


Option 2: Start with Supabase

Best if you already have a Supabase project with tables.

What happens

  1. Connect your Supabase account via OAuth
  2. Refine analyzes your database schema
  3. You describe what you want to build
  4. AI generates a working app connected to your tables

Get started

Connect Supabase

Tip

The AI understands your tables, columns, and relationships automatically.


Option 3: Start with REST API

Best if you have an existing backend (Express, Django, Rails, etc.).

What happens

  1. Provide your API URL and schema
  2. Refine analyzes your endpoints
  3. You customize how resources appear
  4. AI generates a working app connected to your API

Get started

Connect REST API

This flow requires a schema file (OpenAPI/Swagger) or using our CLI tool to generate one. It's designed for developers with existing backends.


What You'll See

After connecting your data or starting with chat, you'll enter the Refine Console:

AreaPurpose
Left: ChatDescribe changes, ask questions, iterate
Right: PreviewLive preview of your application
Right: EditorView and edit the generated code
Right: PlanSee the AI's development plan
Right: SettingsManage secrets and configuration

The chat is your main interface. Describe what you want; see it appear in the preview.


Your First Prompt

Once in the Console, describe what you want to build:

Create a dashboard for tracking expenses

What happens next

  1. Clarifying questions — The AI asks a few quick questions to understand your needs:

    • What type of dashboard? (personal, business, etc.)
    • What's the most important feature for V1?
    • How do you want to handle data?
  2. Review the plan — The AI shows a step-by-step plan before building anything.

  3. Execute — Press Execute and watch your app come to life in the Preview.

Example flow

You type:

Create a fintech dashboard

The AI asks:

  • What type? → Personal finance / Business / Investment tracker
  • Priority feature? → Overview with charts / Transaction list / Budget tracking
  • Data source? → Mock data / Supabase / Existing API

You pick your options, review the plan, and hit Execute.

Iterating

After the first version, keep the conversation going:

Add a search box to filter transactions
Change the chart to show weekly instead of daily data

The AI will clarify if needed, or execute directly for simple changes.


Publishing Your App

When you're ready to share your app:

  1. Click Publish in the Console
  2. Get a shareable link to your live application

Exporting Code (Pro)

Pro users can also export the full source code:

  • Download — Get a zip file of your complete React project
  • The code is standard React/TypeScript built on the Refine open-source framework
  • Host anywhere, customize anything

Remember to set up environment variables for your API keys and secrets when self-hosting.


Understanding Tokens

Refine uses tokens to power AI generation:

PlanTokensCost
Free300$0
Pro1,500$20/mo
Pro 3K+3,000–40,000$40–533/mo

All plans include publish. Code export is Pro only.

Each AI interaction consumes tokens. Complex requests use more than simple ones.

Tip

Be specific in your prompts. Clear descriptions generate better code with fewer iterations, saving tokens.

→ Learn more in Tokens & Billing


Next Steps

Now that you understand the basics:

  1. Connect your data

  2. Learn the workspace

  3. Get better results

  4. Ship your app


FAQ

Do I need to know React?

No. The AI generates the code. But knowing React helps if you want to customize beyond what the AI generates.

What databases does Refine support?

Supabase (PostgreSQL) directly, or any REST API backend. If you can expose your data via API, Refine can connect to it.

Can I use my own design system?

Yes, with Pro. Export the code and modify styles, swap component libraries, or integrate your design system.

Is the generated code production-ready?

Yes. It's built on the Refine framework which is used in production by thousands of applications. The code follows React best practices.

What if I run out of tokens?

You can upgrade to Pro or wait for your monthly reset. Upgrade when you need more tokens or want to export your code.

On this page