
Replit Code: How to Write, Run and Download Your Code
Replit Agent can write your code from a plain-English prompt, and you can run it in the browser, download it as a ZIP or push it to GitHub.
On this page
- What is Replit, and what code can you write in it?
- How do you start a new app (a Repl) in Replit?
- Do you have to write the code yourself? Replit Agent vs the editor
- How do you download your code from Replit?
- Can you move Replit code to GitHub or your own computer?
- What does Replit cost, and is there a free plan?
- How do you apply a Replit promo code?
- Replit or another AI app builder?
- Questions people ask about Replit code
Replit is a place to write and run code in your web browser, with no setup on your computer, and its built-in AI, Replit Agent, can write that code for you from a plain-English description. You start a project from the Replit home screen, describe what you want or type the code yourself, and press Run. The code stays yours to take: you can download the whole project as a ZIP file or push it to GitHub.
New accounts no longer get a free plan. Replit closed its free Starter plan to new sign-ups in November 2026 and offers eligible newcomers a 3-day free trial of Core, which costs $20 a month on Replit's pricing page. The steps and prices below were last checked against Replit's own docs and pricing page on December 1, 2026.
What is Replit, and what code can you write in it?
Replit is an AI platform for building apps, websites and other software by describing them in everyday language, and its docs say you don't need to know how to code to use it. Replit Agent sets up the project, writes the code, tests the result and fixes problems along the way. You can still open the code and edit it directly whenever you want.
Everything you build lives in a project, which Replit describes as the container for your code, your data and the things you make. Replit calls those things artifacts, and they include web apps, mobile apps, data dashboards, slide decks, motion-graphics videos, 3D games and design mockups. One project can hold several of them, and they share the same data and back end (the server-side code that stores and serves your data).
The video option is Replit Animation, and our guide shows how to make a video with Replit Animation from a chat with Agent.
For people writing code by hand, Replit's dependency docs say it supports all programming languages through Nix, the system it uses to install software. The same page gives the commands for adding packages (ready-made code libraries) in Node.js, which runs JavaScript, and in Python and Ruby.
How do you start a new app (a Repl) in Replit?
Start a new chat on your Replit home screen, pick the kind of thing you want from the Output menu (Website, for example), choose a mode and describe what you want built. Replit's docs now call a new piece of work a project or a Replit App, and the language and framework starter templates people used to pick from have been removed. The old replit.com/templates address now redirects to the Replit Gallery.
Replit's build your first app guide takes about 10 minutes and runs like this:
- Start a new chat and choose Website from the Output menu in the prompt box.
- Open the mode selector and choose Free.
- Describe one outcome, what success looks like and what not to build yet, then send it.
- Wait while Agent plans, builds and starts the app.
- Test the app in Preview the way a visitor would.
- Ask for one focused improvement at a time.
If your prompt box has no Output menu, the guide says to select Add attachment, then Create something new, then Website. On a desktop you can also hover over New in the sidebar and select Website.

The guide's example prompt asks for a workshop-listing website called Gather and tells Agent to leave out login, a database and payments for now. When something breaks, the docs suggest describing what you see to Agent instead of trying to work out the bug in the code yourself.
Two other starting points skip the prompt. You can import existing code from GitHub, GitLab or Bitbucket, or remix (make your own copy of) a published app from the Replit Gallery. Replit's import list also has an Empty option, a blank project without Agent, for people who want to write every line themselves.
You can start from your phone as well. The Replit mobile app for iOS and Android lets you chat with Agent, edit a project and publish it to the web.
Do you have to write the code yourself? Replit Agent vs the editor
You don't have to write any code: Replit Agent can write all of it, you can write it yourself in the editor, or you can mix the two in the same project.
Agent works in three modes, picked from a menu in the chat box. Free Mode costs nothing within your plan's allowance, which refreshes every five hours on Core and Pro, and Replit chooses the AI model for you. Power Mode is a paid mode that uses fewer credits per task, and Max Mode uses more capable models for complex features, larger projects and harder problems.
Replit asks you to confirm before any paid action starts. In Power or Max you can leave the model on Auto, which lets Replit pick one for each task, or choose a model yourself.

If you'd rather type the code, the Project Editor gives you a file tree, a file editor, a Preview window, a Console that shows your app's output and errors, and a Shell, which is a command line for typing instructions directly. You can split the screen to keep code and Preview side by side.
The Run button at the top of the editor runs your app and turns into a Stop button while it's running. Each time you select Run, Replit checks your code for packages it uses that aren't installed yet and installs them for you.
How do you download your code from Replit?
Open the file tree, select the three-dot menu at the top of it and choose Download as zip. Replit's guide to copying a project says the ZIP file carries everything on disk, including changes you haven't saved to Git yet.
To grab a single file, use the same file tree. Each file's menu lets you download it, as well as rename, move, duplicate or delete it.
Large projects need one more step. A ZIP over 200 MB can still download, but Replit's own importer rejects anything over 200 MB, so the docs show how to build a smaller ZIP in the Shell that leaves out folders Replit can rebuild on its own. Open the Shell tool and paste this command:
zip -r project.zip . -x ".cache/*" "node_modules/*" ".venv/*" "venv/*" ".pythonlibs/*" "build/*" "target/*" ".next/*" "__pycache__/*"
Then find project.zip in the file tree, open its three-dot menu and select Download. Replit says to always leave the .cache folder out of a ZIP you make this way, because it holds cached copies of your secret values, such as passwords and API keys.
On a team account, a workspace admin can turn on a setting that bans source code export. When it's on, you can't download the project as a ZIP, and the docs say to check with that admin first.
Can you move Replit code to GitHub or your own computer?
You can do both. The Git pane pushes your project to a GitHub repository (a project's home on GitHub), and SSH lets you edit the project from a code editor on your own computer while it stays on Replit.
To open the Git pane, select Tools in the Project Editor, then Git under Setup. Git is the version-tracking system GitHub is built on. If the project doesn't use Git yet, select Initialize Git Repository, then connect it to GitHub. From there you review the files you changed, commit them (save a named snapshot) with a short message and push them to GitHub with one click, and Replit's AI can write the commit message for you.

Replit recommends a private repository unless you want the code to be public. GitHub only receives what you commit and push, so uncommitted changes and files listed in .gitignore (a list of files Git should skip) stay behind. Replit also warns never to commit passwords, API keys or database dumps.
Replit's copying guide compares the two ways out:
| Via GitHub | Via ZIP file | |
|---|---|---|
| Code files | Only files you commit and push | Everything on disk, including uncommitted changes |
| Change history | Full history on GitHub | Full history only if the ZIP includes the .git folder |
| What you need | A GitHub account connected to Replit | Nothing extra |
| Ongoing sync | Both copies can push and pull | None, it's a one-time snapshot |
| Best for | Projects you want backed up long term | Quick one-time copies |
Coming the other way, open replit.com/import, choose GitHub, connect your account and pick a repository. A public repository has a shortcut: put its path after replit.com/github.com/, as in replit.com/github.com/owner/my-app. Replit's import page also takes Lovable, Bolt and Base44 projects once they've been exported to GitHub, and ZIP files up to 200 MB.
To work on the code from your own computer without moving it, SSH (a secure remote connection) links a Replit project to an editor such as VS Code or Cursor. Changes sync both ways as you make them, and SSH needs Core, Pro or another paid plan.
What does Replit cost, and is there a free plan?
New accounts can't get a free plan any more: Replit closed Starter to new builders in November 2026, and eligible new sign-ups get a 3-day free trial of Replit Core instead. Core costs $20 a month, or $18 a month if you pay for a year.
People already on Starter keep it. Replit's Starter plan page says it includes a limited Free Mode allowance, Lite build (a faster mode for quick, targeted changes) and one free published app that goes offline after 30 days and carries a "Made with Replit" badge.
| Plan | Price | What you get |
|---|---|---|
| Starter | $0, closed to new builders | Limited Free Mode allowance, Lite build, 1 published app that goes offline after 30 days |
| Core | $20 a month ($18 a month billed yearly) | Up to 30 hours of chat and up to 60 projects on Free Mode, $20 toward more powerful models, unlimited workspaces, AI integrations |
| Pro | $100 a month ($90 a month billed yearly) | Everything in Core, more Free Mode use, $100 toward the most powerful models, up to 15 collaborators, database rollback up to 28 days, premium support |
| Enterprise | Custom | Single sign-on, SCIM (automatic account setup) and audit logs, advanced privacy controls, dedicated premium support |
From replit.com/pricing (Core, Pro and Enterprise) and Replit's Starter plan page, checked December 1, 2026. Replit says tax may be added depending on where you live.
Core and Pro come with monthly credits, shown as $20 and $100 on the pricing page. According to Replit's AI billing docs, credits pay for Agent's work in the paid modes and for Replit's other cloud services, such as published apps, storage and databases, while Free Mode work stays free within its allowance. You can set usage alerts and hard budget limits on the Billing page in Settings, and buy top-ups if you run out.
Publishing comes out of the same credits, and Replit's publishing costs page says you only pay usage fees once your monthly credits are used up. With Autoscale hosting, your app costs nothing while nobody is visiting it.
How do you apply a Replit promo code?
Replit's docs and pricing page don't say where a promo code goes, as of December 1, 2026. You change your plan under Billing in your account Settings, according to Replit's page on changing your plan, and upgrades there take effect immediately.
For billing questions, Replit's pricing page says to sign in and use the ? icon in the top right corner of the page. Codes posted on coupon websites don't come from Replit's own pages, so we haven't listed any here.
Replit or another AI app builder?
Replit suits you if you want to build, run, publish and host an app in one place in your browser, with the hosting paid from the same credits as the AI work. If you're weighing it against similar tools, compare plans and free tiers in Replit vs Lovable, or see how Replit compares with Lovable and Bolt on price.
A different approach keeps the code on your own machine from the start: Claude Code, which builds apps on your own computer instead. Our wider guide covers how to build an app with AI without coding across several of these tools, and we track Replit updates and new features as they ship.
Switching later is possible in both directions. Replit imports Lovable, Bolt and Base44 projects through GitHub, and the Git pane or a ZIP download gets your Replit code out.
Questions people ask about Replit code
Can I write Python in Replit?
Yes, and Replit's docs give Python install commands and say a new Python app uses poetry, a package manager, by default. That means pip install doesn't manage your packages unless you switch, so the docs suggest poetry add or upm add in the Shell.
What happens to my code when I close the browser?
Replit saves your project in the cloud. Its Project Editor docs say you can come back any time and pick up where you left off, with your files, history and running app kept.
How do I put my app online?
Select Publish at the top right of the Project Editor. Replit's publishing docs say it suggests a .replit.app web address, lets you choose whether the app is Public, Password protected, Workspace only or Invite only, and runs a security scan before it goes live.
Sources
- Replit: Pricing and plans
- Replit docs: What is Replit
- Replit docs: Build your first app
- Replit docs: Developer Frameworks (templates removed)
- Replit docs: Agent Modes
- Replit docs: Editor and Tools
- Replit docs: Manually copy a project
- Replit docs: Using the Git pane
- Replit docs: Import from a provider
- Replit docs: Starter plan
- Replit docs: Replit AI billing
- Replit docs: Publishing costs






Comments
Sign in to join the conversation.