Replit logo
10 minute setup

How to Use Replit AI Agent

Build, collaborate, and deploy apps entirely in your browser. No local setup, no terminal, no DevOps. Just describe what you want and let the AI Agent build it.

Prerequisites

  • A modern web browser (Chrome, Firefox, Safari, or Edge)
  • Internet connection
  • A Replit account (free tier available, Pro unlocks AI Agent)
  • No local installation needed — everything runs in the cloud
1

Go to replit.com

Open your browser and head to replit.com. Replit is a cloud-based IDE — everything runs on their servers, so there is nothing to download or install on your computer.

The homepage shows featured projects and templates. You can explore these later, but first you need an account.

Works on any device

Because Replit runs in the browser, you can code from a Chromebook, iPad, or even your phone. The experience is best on a laptop or desktop, but it works anywhere you have a browser.
2

Sign Up

Click Sign Up in the top-right corner. You can create an account with Google, GitHub, or an email address. The free tier gives you access to the IDE, basic compute, and limited AI features.

Replit Core ($25/mo) unlocks the full AI Agent, more compute power, private Repls, and Deployments with custom domains. The free tier is enough to follow this guide and build your first project.

Student or educator?

Replit offers free upgraded plans for students and teachers through their education program. Check Teams for Education if that applies to you.
3

Create a Repl

Click the + Create Repl button in your dashboard. You will see two options:

  • Template — Pick a language (Python, Node.js, HTML/CSS/JS, etc.) or a framework template (React, Flask, Express). Replit sets up the project structure for you.
  • Import from GitHub — Paste a GitHub repo URL and Replit clones it into a new Repl. Great for contributing to open-source projects from your browser.

Give your Repl a name and click Create Repl. The workspace opens with a file tree on the left, editor in the center, and preview/console on the right.

If you are not sure which template to pick, start with Node.js or Python. Both have huge ecosystems and the AI Agent works especially well with them.
4

Meet the AI Agent

In the workspace, look for the AI button in the left sidebar or the chat panel on the right. Click it to open a conversation with Replit's AI Agent.

The AI Agent is different from a simple chatbot. It can read your entire project, create and edit files, install packages, run commands, and debug errors — all autonomously. You describe what you want, and it builds it.

Agent vs. Chat

Replit has two AI modes: Agent (builds and edits your project autonomously) and Chat (answers questions and explains code). The Agent is what makes Replit uniquely powerful — use it for building. Use Chat for learning and debugging.
5

Describe Your App

Type a description of what you want to build. Be specific about features, tech stack, and design. Here is an example:

Build a personal finance tracker with:
- A dashboard showing income vs expenses chart
- Add transaction form with category, amount, date
- SQLite database for persistence
- Clean, modern UI with a dark theme
- Responsive layout that works on mobile

The Agent will create a plan, show you which files it will create, and ask for confirmation before starting. Review the plan and click Approve to let it work.

The more specific your prompt, the better the result. Vague prompts like "make an app" force the Agent to make assumptions. Specify the features, data model, and UI preferences you care about.

Get the Vibe Coding Cheat Sheet

Best tool for every use case + pricing + pro tips. One page, zero fluff. Plus weekly updates on new tools.

6

Watch It Build

After you approve the plan, the Agent starts working. You can watch it in real time:

  • Files appear in the file tree as they are created
  • The editor shows code being written
  • The console shows packages being installed and commands running
  • The preview panel updates as the app takes shape

If the Agent hits an error, it will try to fix it automatically. If it gets stuck, it asks you a clarifying question. You can also interrupt it at any time to redirect.

Let it finish

Resist the urge to edit files while the Agent is working. Let it complete its plan first, then make adjustments in a follow-up message. Editing mid-build can cause conflicts.
7

Add Collaborators

Replit's multiplayer mode lets multiple people edit the same Repl at the same time — like Google Docs for code. Click the Invite button in the top-right corner.

You can invite by Replit username or generate a shareable link. Collaborators can edit code, run the app, and interact with the AI Agent in the same workspace.

For bigger teams, Replit Teams provides shared workspaces, permissions, and centralized billing. Individual collaborators are free on any plan.

Multiplayer is one of Replit's strongest features for pair programming and teaching. Two people can work on different files in the same project, and changes sync instantly.
8

Deploy with One Click

When your app is ready, click the Deploy button at the top of the workspace. Replit Deployments gives you a production URL with HTTPS, automatic scaling, and zero DevOps.

Choose your deployment type:

  • Autoscale — Scales up and down based on traffic. Best for web apps and APIs.
  • Static — For static sites and SPAs. Fastest and cheapest option.
  • Reserved VM — A dedicated machine that is always on. Best for bots, background jobs, and databases.

Your app gets a .replit.app domain by default. You can connect a custom domain in the deployment settings.

Free deployments

Static deployments are included free on all plans. Autoscale and Reserved VM deployments require a paid plan but start at very low usage-based pricing.

What to Build First

Todo App with Database

Beginner10 min

Tell the Agent "Build a todo app with a SQLite database, user accounts, and a clean UI." Watch it scaffold the entire project — backend, frontend, and database — in one go.

Discord Bot

Intermediate20 min

Prompt "Create a Discord bot that responds to /quote with a random motivational quote from an API." Replit handles the hosting and keeps it online 24/7 with Deployments.

AI Chatbot with OpenAI

Intermediate25 min

Ask the Agent to build a chatbot UI that calls the OpenAI API. Store your API key in Replit Secrets, and the Agent will wire it up automatically.

Replit Tips from Power Users

Use Secrets for API keys

Never hardcode API keys. Go to the Secrets tab (lock icon) and add key-value pairs. They are injected as environment variables automatically.

Pin your language version

Replit auto-detects your language, but you can pin a specific version in the .replit config file. This prevents surprises when Replit updates defaults.

Use the Shell tab for debugging

The Console shows your app output, but the Shell tab gives you a full terminal. Use it to install packages, run scripts, or debug interactively.

Fork public Repls to learn

Browse the community and fork interesting projects. Reading and modifying working code is one of the fastest ways to learn.

Enable Always On for production

Free Repls sleep after inactivity. If you need your app to stay online, use the Always On boost or deploy via Replit Deployments.

Use .replit for custom run commands

The .replit file controls what happens when you hit Run. Customize it to chain build and serve commands for your specific framework.

Workspace Quick Reference

PanelWhat It Does
FilesBrowse and manage your project file tree
EditorWrite and edit code with syntax highlighting
ConsoleSee output from your running app
ShellFull terminal access for commands and debugging
AI AgentDescribe features and let the AI build them
PreviewLive preview of your web app
SecretsStore API keys and environment variables securely
DeploymentsShip your app to a public URL

You are set up. Now explore.

Compare Replit against other tools, or submit what you build to the showcase.

We use cookies for analytics. Learn more