What an environment contains
Replit builds a reusable image with the repository, runtime, tools, and dependencies needed for your app. New chats using the environment start from its latest successful build. Background builds run even when you are not chatting. They need approved workspace repository access through a GitHub App installation or GitLab group grant, separate from your personal connection. See Manage repository access.Save the setup
Ask Replit to create a reusable environment from the working setup. Review the repositories, branch, tools, and setup steps before approving the build.main. You do not need to determine every installation command yourself.
After the first successful build, Replit checks the application in a fresh sandbox. This checks that the saved setup works independently of the original chat’s running processes.
Background builds need workspace repository access. Keep credential values out of build instructions and images.