Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.replit.com/llms.txt

Use this file to discover all available pages before exploring further.

These answers cover working with projects and files. For related reference, see Secrets, Checkpoints and rollbacks, and the integrations overview.
Open your project and go to Tools → Connectors, find the service (such as Resend), and connect it. After you authorize, the API key is saved as a secret in your project. If you’re setting up a custom email domain, add the DNS records the service shows you at your DNS provider.See the integrations overview for available connectors and Add integrations.
Deleted projects can be restored for a limited time. Open a Shell in any project and run:
trash view
trash restore your-project-name
After the retention window passes, deleted projects are permanently removed. If you’re past it, contact Replit Support.
Select the three-dot menu at the top of the file tree and choose Download as zip. For large projects, the download may take a moment. If it fails, open a Shell and run zip -r project.zip ., then download project.zip from the file tree.
You have three options:
  • Read-only—set the project’s privacy to public so anyone with the link can view it.
  • Edit access by invite—select Invite, enter a username or email, and set the permission level.
  • Join link—create a join link from Invite so anyone with the link can join and edit.
Core supports up to 5 collaborators and Pro up to 15; collaborators don’t need a paid plan to edit your project. See Workspaces.
Link your GitHub account from your account’s connected services, then open the Git tool in your project and connect the repository. Turn on auto-sync in the Git pane for two-way syncing. To import an existing repository, see Import from providers.If Git sync stops working, reconnect GitHub from your connected services. A fine-grained personal access token gives a more reliable connection.
For editor lag, try these:
  • Hard-refresh with Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows).
  • Close unused file tabs.
  • Run kill 1 in a Shell to restart background processes. (kill 1 is safe in Replit—it restarts your project’s main process, it doesn’t delete anything.)
  • Try a different browser to rule out extensions.
For slow code execution rather than editor lag, check for heavy loops or memory limits. You can see CPU and memory usage in the resources panel at the bottom of the editor.
Open the Secrets tool (the lock icon), select + New secret, and enter a key and value. Read it in your code with process.env.API_KEY (Node.js) or os.environ["API_KEY"] (Python).Secrets in the development Secrets pane are only available in the editor. For deployed apps, add the same keys in your deployment secrets—they’re kept separate by design.
Account Secrets are available across all your projects—useful for keys you reuse. Add them from your account settings, and they’ll be available in every project you own. If the same key exists in both Account Secrets and a project’s Secrets pane, the project-level value takes priority.
Open a Shell and run git status to see the conflicts.
The next two commands discard uncommitted changes and can’t be undone. Save anything you want to keep first—for example, copy edited files out of the project.
To discard local changes and return to your last clean state, run git checkout -- .; to reset to the last commit, run git reset --hard HEAD.If your .git folder is corrupted and Git commands fail, open a new Agent chat and paste the error—Agent can often repair the repository. See Disaster recovery.
Replit saves checkpoints as Agent works. In the Agent panel, find the message before the change you want to undo and select the rollback option next to it, then confirm.To roll back a live app, open Publishing → History and redeploy the last working deployment. To recover a single file, open it, select its name, and use Show history to restore a previous version. See File history.
Projects can’t be transferred directly, but you can copy one. The easiest way is to share the project with the destination account and fork it there. Alternatively, download the project as a zip and re-upload it into a new Repl on the other account.After copying, set up secrets, the database, and deployment configuration in the new project—those aren’t included in the copy.

Still need help?

If your project question isn’t answered here, contact Replit Support.