AI Coding Basics

Replit Vibe Coding: Build And Deploy With AI

Replit Vibe Coding: Build And Deploy With AI

Tell Replit what you want in plain language and Replit Agent plans the app, writes it, tests it, and publishes it, all inside one browser workspace.

The editor, preview, database, and hosting share a single tab, so there’s nothing to install. Agent 4, released on March 11, 2026, is the current version.

Billing runs on effort, not on message count. Replit’s July 2025 pricing recap puts simple requests at as little as $0.06, and involved requests usually come in above $0.25.

Publishing has one catch worth knowing before you build anything. Agent-built apps run on Autoscale or Reserved VM, because Static Deployments are not compatible with them.

What Is Replit Vibe Coding and How Does the Agent Work?

YouTube player

Describe the outcome, check the preview, give feedback, publish. All of it happens in one place. Replit’s vibe coding 101 guide frames the practice as a shorter path from idea to working software, then to feedback, then to the next improvement.

The wider vibe coding approach works with any AI builder. What Replit adds is the single tab, with editor, preview, database, and hosting together and nothing installed locally. Compared with editor-based AI coding tools like Cursor or GitHub Copilot, there’s no local setup to manage.

What Replit Agent does

Replit’s documentation describes Agent as the AI builder that plans changes before touching any code, writes the code, explains what that code does, debugs issues you describe, and keeps improving the app over time.

What it can’t do is decide whether the result actually works. That part stays with you.

Agent 4 and the current modes

Replit launched Agent 4 on March 11, 2026 and called it its fastest and most versatile Agent yet (Replit blog). Parallel task execution is limited to Pro and Enterprise, though Core users got temporary access at launch.

ModeOptimized forNotes
Free ModeGetting startedStarter, Core, and Pro plans; model routing always on; on Core and Pro the allowance refreshes every five hours and also has a weekly limit
Power ModeCostFewer credits per task; replaced Economy Mode at the same price
Max ModeCapabilityMore capable models for complex, large, or hard tasks

Which modes you see depends on your plan and workspace, per Replit’s Agent modes page (as of November 2026). I’d start in Free Mode and only move up once a task stalls.

What Agent does not replace

Replit’s docs say Agent helps with implementation, but you still lead the work and make the call on what ships. Obvious enough, though it’s easy to forget once the preview starts looking good.

How to Build an App with Replit Agent, Step by Step

YouTube player

Replit’s first-app guide estimates about 10 minutes in Free Mode for a first build (as of November 2026).

  1. Start a new Website. Pick Website as the artifact and choose Free in the mode selector.
  2. Send a prompt that defines the outcome. Describe one useful result and what visitors must be able to do, say how success will show up, and name what to postpone (login, data, payments, integrations).
  3. Let Agent build. It plans the artifact, creates the app, starts it, and checks what it made.
  4. Test in Preview the way a visitor would, phone-width view included. If something looks off, describe the symptom to Agent instead of diagnosing the code yourself.
  5. Refine with one focused prompt. Ask for a single change, then retest.

Plan Mode before Build Mode

You can ask Agent in chat for a plan before it changes anything, or type the /plan shortcut. Once Agent proposes a task plan, you can revise it, cancel it, build it in the current session, or build it in the background.

Read the plan with two questions in mind. Does it solve the right problem? And would a smaller first version make more sense?

Planning isn’t free, by the way. Agent replies in Plan Mode are billable, according to Replit’s billing documentation.

Checkpoints and rollbacks

A rollback restores your project files, the conversation context, and your configuration to the checkpoint you choose. Your development database is left alone unless you select “Database” under Additional rollback options, and production databases are not restored this way, per Replit’s checkpoints and rollbacks docs. Open the history view (the history icon in the Agent tab), find a checkpoint, and select Rollback to here.

If the result is close and one focused note would finish it, fix forward. If the app got worse, important behavior broke, or Replit changed more than you asked for, roll back.

Can’t tell which applies? Ask Replit to compare the current version with the last working one.

App Testing

With App Testing, Agent drives a real browser, clicks through features, and enters mock data where needed.

It looks at interface elements and core functions, plus integrations such as API calls, database interactions, and basic performance and accessibility. Agent runs a test after meaningful changes rather than after every message, then fixes what it finds.

Coverage stops at web apps, specifically Full Stack JavaScript and Streamlit Python projects. A few other limits apply:

  • It’s off in Free Mode and available in Power and Max.
  • A login or CAPTCHA triggers “Begin take over”, so you finish that step by hand.
  • If you don’t reply within 10 minutes, Agent skips the step.
  • Dynamic content can make tests fail, so describe your critical flows in detail.

Replit says testing falls under effort-based pricing and can reduce overall spending by catching mistakes early.

How to Write Prompts Replit Agent Acts On

YouTube player

Agent does its best work when a prompt says who the app is for, what single outcome it should deliver, how you’ll see that it worked, and what can wait for a later slice.

Build in small slices

Replit’s documentation boils vibe coding down to these habits:

  • Start with the goal, meaning who the app is for and what it lets them do
  • Build in small slices
  • Manage context, which covers audience, scope, constraints, and what should stay unchanged
  • Review and test as the target user would
  • Improve with feedback that says what to keep, change, or remove

A slice should be complete enough to click through. Large requests are harder to review and easier for Agent to misread.

The DeepLearning.AI course built with Replit, taught by Michele Catasta and Matt Palmer, frames the same habits as a five-skill framework: thinking, using frameworks, checkpoints, debugging, and providing context.

Habits that carry over to other builders are covered in this guide to vibe coding best practices.

What a strong prompt contains

Replit’s effective prompting guidance centers on planning first, being specific about requirements, giving context through examples and relevant files, and iterating. In practice a strong prompt states the purpose, the specific requirements, and any context, and it keeps scope small.

A weak prompt looks like this: “Build me a booking app.”

A stronger one: “Build a booking page for a dog groomer. Visitors pick a service and a time slot, then see a confirmation. Use a clean, light layout. Leave login and payments for a later slice.”

That version pins down the audience, one outcome, and something you can verify in Preview. The last line pushes scope to later without turning into a negative constraint, which Replit’s guidance advises against (say what you want, not what to avoid).

Credits go quickly when you ask for a large system in one prompt or try to debug without the exact error message. Skipping the plan on an uncertain or high-stakes change does the same.

Standing instructions in replit.md

Anything Agent should remember in every session belongs in replit.md.

Custom Agent instructions via replit.md arrived in July 2025, per Replit’s 2025 year in review, and let you define coding style, project preferences, and context.

Keep one-off requests in chat. When you switch to an unrelated task, start a new chat so old context stops causing confusion, as Replit’s prompting guidance advises.

Which Built-In Services Can a Replit App Use?

YouTube player

Data, file storage, sign-in, payments, and outside tools are all covered, and a Secrets store holds the keys for them.

Database and App Storage

For structured data like user profiles or product catalogs, there’s a fully managed, PostgreSQL-compatible database you query with SQL. Images, videos, and documents go in App Storage, which is object storage backed by Google Cloud Storage.

Billing splits by environment. Development databases are not charged, production is billed for compute and storage, and App Storage bills for bandwidth and space (Replit documentation, as of November 2026).

Replit Auth

Ask Agent to “Add sign-in to my app. Use Replit Auth.” Replit’s docs describe it as zero setup: one Agent prompt adds authentication, using Replit’s shared OAuth credentials instead of your own.

Replit Auth shipped in May 2025, and it comes with some strings attached. The sign-in page is Replit-branded. Sign-in is built around Replit accounts, though the auth settings let you toggle Google, GitHub, X, Apple, and Email login methods, so check the auth page against your audience. Clerk Auth is the option if you want your own branding and separate user accounts.

It also runs in a single environment, unlike Clerk Auth’s separate Development and Production setups.

Stripe payments

Stripe payments arrived in November 2025 (Replit’s 2025 year in review). Pick one method per environment, because combining both causes connection conflicts.

MethodKeysWho manages setup
Replit Stripe connectorNone pasted; Agent sets up a sandboxReplit; paid plans only
Your own Stripe keysSTRIPE_SECRET_KEY and related secretsYou, including the SDK and webhook

Products and prices do not sync from the sandbox to your live account, so you recreate them in live Stripe. Production also needs its own live-mode webhook endpoint with a separate signing secret.

If you use your own keys, publishing stops unless STRIPE_SECRET_KEY holds a live key (sk_live_ or rk_live_).

Connectors and Secrets

Connectors are first-party integrations that let Agent read and write to outside services from chat. The documented categories run roughly like this:

  • Google Workspace and Microsoft 365
  • Slack, Discord, and Twilio
  • BigQuery, Snowflake, Databricks, and PostgreSQL
  • Notion, Airtable, HubSpot, and Salesforce

Most connectors need a Core, Pro, or Enterprise plan. Custom connectors are limited to Pro and Enterprise.

Credentials go in the Secrets tab or Agent’s secure form, never in chat.

One limit worth checking before you commit: a Capterra reviewer wishes for more advanced configuration options for production-grade projects.

How to Deploy a Replit App and Choose a Deployment Type

YouTube player

Autoscale is the default for Agent-built apps, and Reserved VM is the other option. Static Deployments cannot host them.

TypeBest forHow it runsBilling
AutoscaleWeb apps and APIs with variable trafficAdds servers when busy, scales to zero when idlePay while requests are served
StaticLanding pages, portfolios, documentationServes cached files, no backendPay for data served
Reserved VMBots, background work, always-on APIsOne dedicated server that never sleepsFixed monthly cost
ScheduledBackups, notifications, periodic tasksRuns a command on a schedule, then stopsPay for each run’s duration

The table comes from Replit’s deployment types documentation (as of November 2026). One naming note: the September 2025 changelog renamed “Deploy” to “Publish”, so older tutorials use the old label.

The publish flow

  1. Select Publish in the upper-right corner of the Project Editor, or ask Agent to publish the app.
  2. Test the main user journey in Preview and keep secrets and private test data out, because publishing exposes the current version.
  3. Review the generated .replit.app domain, pick an access level (Public, Password protected, Workspace only, or Invite only), and confirm the deployment type.
  4. Optionally run the deep security scan and switch on blocking for critical vulnerabilities.
  5. Publish, then wait while Replit provisions resources, runs security checks, builds the app, and promotes the release.
  6. Open the public URL and test the live version, not just Preview.

Editor changes stay out of the live release until you press Republish, and the new release keeps the same URL. Treat every republish as a small app deployment: test in Preview, republish, then reopen the public link.

A custom domain replaces the .replit.app address through a separate guide, which the publishing page links to but does not walk through.

Which deployment type fits your app

An Agent-built app with a backend belongs on Autoscale, or on Reserved VM when it needs constant uptime. Bots and steady background work go on Reserved VM too. A recurring job fits Scheduled, which has no public URL. Static only makes sense for a frontend-only site you built by hand.

Reserved VM is effectively a dedicated virtual machine at a fixed monthly cost, so you pay for uptime whether traffic arrives or not.

The failure case is Static. The documentation states that “Static Deployments are not compatible with Replit Apps created using Agent.”

Scheduled jobs use cron expressions with a time zone, have a timeout, and send an alert when a run fails.

All publishing costs come out of your monthly credits first, and usage-based fees start only after those credits run out.

How Safe Is a Vibe-Coded App Before You Publish It?

Safer than in mid-2025, but not safe by default. Development and production databases are now separate and managed independently, and paid builders can run Agent security scans, yet the live app still needs your own test.

What went wrong in July 2025

Jason Lemkin, a seed-stage lead investor at SaaStr Fund, was building a commercial-grade app with Replit’s agent and posting his progress on X.

The agent reportedly deleted a production database during a code freeze, according to chat screenshots he shared. Replit CEO Amjad Masad responded publicly on July 20 or 21, 2025 (TechTarget dates it July 20; The Register reports Monday, July 21), called the incident “unacceptable,” and pledged automatic separation of development and production databases.

An IDC analyst called the episode a wake-up call that should reset the trust barometer. Forrester’s Andrew Cornwall put it plainly: “Software development should never rely on AI guardrails alone.”

There’s an open question here, though. The account rests on one user’s screenshots. Press reports cite the agent’s own output as saying the deleted data covered 1,206 executives and 1,196 companies, but Fortune reported that Lemkin was later able to recover the data manually, so the agent’s claim that a rollback was impossible appears to have been wrong.

Safeguards Replit documents

Agent can no longer modify the production database during development. Users previously had to set that separation up manually.

While Agent builds, Replit automatically reviews the files it changes for common insecure patterns and hardcoded secrets.

Then there’s the publish gate. With Block publishing of critical vulnerabilities switched on, publishing stops until the issue is resolved or dismissed. With it off, publishing proceeds and the finding stays open for review.

The database split keeps the production environment untouched while Agent iterates, which is exactly the gap the July 2025 incident exposed.

Scan levelAddsDoes not cover
Level 1, basic checksDependency and package checks (free)Your own source code, live testing
Level 2, deep scanAgent source review for SQL injection, XSS, sensitive data in logs (paid plan)External black-box test of the running app
Level 3, AI pentestBlack-box test alongside code review (extra plan and project-access requirements)Nothing documented as excluded

Level 2 combines model-based review with static analysis, and Replit states that a clean dependency scan does not mean your own code is free of vulnerabilities. A scan is not a complete security review, so run it alongside code review.

Replit makes a related argument in its January 2026 white paper: AI security scans alone are not enough, and hybrid approaches combining static analysis with LLM reasoning are needed. That’s the vendor’s own position, so weigh it accordingly.

Pre-publish checklist

  • Confirm which database the app points at
  • Click through the main flow in Preview, then again on the live URL
  • Run a Level 2 scan if you are on a paid plan
  • Switch on the critical-vulnerability block
  • Know where the last working checkpoint sits before you republish

How Much Does Replit Vibe Coding Cost?

YouTube player

Starter lets you test with one published app at no charge. Serious building runs $20 a month on Core or $100 on Pro, with Agent usage billed by effort on top.

As of November 2026, Core costs $20 a month, or $18 billed annually, and comes with $20 toward more powerful models (Replit pricing page). Pro is $100 a month, or $90 billed annually, with $100 toward the most powerful models (Replit pricing page).

The Agent side changed in the middle of 2025. Before June 18, 2025, every Agent checkpoint cost a flat $0.25 (Replit blog). After the change, simple requests can cost as little as $0.06, while involved ones usually run above $0.25 (Replit pricing recap, July 2025).

How effort-based billing behaves

Each request produces one checkpoint, so there are no intermediate charges. Bug fixes cost less, full features and integrations get bundled into one larger checkpoint, and hovering over the usage icon in the Agent tab shows each cost.

Planning follows the same logic. In Power or Max mode it’s charged even when no code changes, while in Free Mode it draws from the Free Mode allowance.

Sources differ a little on timing. Replit says it asks you to confirm before a paid action starts, but a third-party review from eesel adds that the final cost of effort-based work shows only once the task completes.

Replit has also admitted a billing fault. A cost-calculation error on July 11, 2025 inflated checkpoint charges and affected approximately 6% of paying users.

Keeping the bill predictable

Core suits solo builders. It allows up to 5 collaborators and unlimited published apps, and it unlocks the paid Power and Max modes. Pro is for teams that outgrew Core, adding pooled credits, budget controls, parallel Agent tasks, and credits that roll over for two months.

Replit’s AI billing page lists the controls that help with spend:

  • Usage alerts at thresholds you set
  • Budget limits that act as hard caps
  • Real-time cost tracking while you build
  • One-time free checkpoints for every subscriber

The cheapest sequence is to build the first slice in Free Mode, set a budget limit before touching Power or Max, and upgrade only when you need paid modes or a second published app.

When Does Replit Vibe Coding Stop Working?

It stops working when the app outgrows what you can review. Columbia University’s DAPLab reports that once you move past a simple demo, features start to break, and a misalignment gap opens between what the user sees and what the agent changes in code.

What the failure research found

The January 2026 DAPLab study vibe-coded 15+ apps with five tools, Replit among them, and grouped hundreds of failures into 9 patterns, with testing through November 2025.

The write-up does not isolate Replit results in its text, so read the patterns as risks of the tool class, not as a Replit score.

Failure patternWhat it looks likeReplit control
Security vulnerabilitiesExposed API keys, weak access controlSecrets tool, Agent security scans
Data management errorsMisread schemas, wrong identifiers in queriesSeparate development and production databases
API and external service integration failuresPlaceholder keys instead of real valuesConnectors, secure secrets form
Codebase awareness and refactoring issuesWrong components edited as the project growsSmall slices, replit.md instructions

The last column is this article’s own mapping, not something the study states.

When failure costs credits too

G2’s review summary says the agent can make autonomous changes that introduce bugs or architectural regressions, which then need extra paid usage to debug, fix, or roll back.

Capterra reviewers go further. One describes runaway AI billing loops (a July 2026 review), and another says large projects are a grind to finish (a September 2025 review).

Set that beside the billing rule. Because each request is billed by effort, a looping Agent can spend credits while it fails. That reading is this article’s inference from the sources, not a finding any of them states.

Narrow the slice before you raise the mode. Replit’s own advice when a change goes off track is to narrow the scope and restore what was lost.

When a code editor is the better tool

Prototypes and simple apps you can click through in Preview are a good fit. A June 2026 Capterra review calls Replit awesome for prototypes, and LowCode Agency rates it good for prototypes and simple web apps.

Large projects that become a grind to finish are a poor fit, and so are growing codebases where agents lose track of the architecture.

Replit Agent targets the first build. One DEV Community review frames editors like Cursor as assistants for developers already coding, and a developer comfortable reading diffs may prefer vibe coding in Cursor.

For complex apps built through vibe coding, pair the Agent with human review of the code. Replit’s own scan documentation gives the same advice.

Replit Vibe Coding FAQ

Who coined the term vibe coding?

Andrej Karpathy, an OpenAI co-founder and former AI lead at Tesla, coined it in a post on X on February 2, 2025.

He described a style where you accept the AI’s output without reading the diffs, a detail the OpenSSF glossary preserves.

Can you vibe code on Replit without knowing how to program?

YouTube player

Yes for a first project, with limits. Replit says Agent turns plain-language ideas into apps, designs, and slides with no coding required.

Reviewers push back a bit. Zite’s review says that when functionality breaks, you’ll need to read the generated code to fix it.

How does Replit compare with Lovable and Bolt.new?

YouTube player

All three build apps from prompts. Lovable builds web apps and generates the frontend, backend, database, and authentication, and its Git sync connects code to GitHub, GitLab, or Bitbucket.

Bolt.new pairs its builder with Bolt Cloud hosting, databases, and authentication, and it builds mobile apps through its Expo integration. Replit offers the same prompt-to-app flow plus a guided TestFlight and App Store path for mobile apps.

Can Replit build a native mobile app?

Yes. Agent creates React Native apps through Expo from a prompt, you preview them by scanning a QR code with Expo Go, and a guided flow handles TestFlight and App Store submission.

An Apple Developer Program membership is required, and Apple’s standard App Review applies. Replit’s docs say publishing to Google Play is not supported through a guided experience yet, though it can be done manually.

Can you import an existing GitHub project into Replit?

Yes. Public repos open through replit.com/github.com/owner/repo, while private repos use the guided import at replit.com/import after you connect GitHub.

Replit then detects the stack, installs dependencies, and configures run commands, but existing secret values are not imported.

What is Design in Replit, and what happened to Design Mode?

Design is where you shape how software looks. You generate frames from a prompt and refine the best variant before committing to code, then build the winning frame as a new app (which requires Core or Pro) or apply its look to an existing one.

Agent 4 replaced the earlier Design Mode with the Design Canvas, an infinite board that supports all artifact types.

Which courses teach vibe coding with Replit?

DeepLearning.AI offers the free “Vibe Coding 101 with Replit,” taught by Michele Catasta and Matt Palmer, where you build a website performance analyzer and a voting app.

DataCamp’s two-hour basic course covers prompting, securing, and deploying Replit apps. Finishing it unlocks a one-month Replit Core discount.

The Smallest First Project Worth Building on Replit

A paid plan makes sense only after one single-purpose Website has made it through the full loop in Free Mode, from prompt to Preview to publish to live test.

Free Mode runs on Starter, so the first build costs nothing, but Starter publishes one app whose published link goes down after 30 days.

Order matters here, since each step sets the cost of the next:

  • Build one slice in Free Mode, with no login or payments
  • Publish on the default Autoscale type and test the live URL
  • Add one service, then upgrade only when Power or Max is needed

You give up automated checks along the way, since App Testing stays off in Free Mode, so manual testing is on you. And a project that needs a second published app has outgrown Starter.

This position was checked against Replit’s documentation in November 2026. Modes and plan limits change, so recheck the pricing page before upgrading.

A broader walkthrough of how to start vibe coding across other tools covers the same first steps.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.