Skip to main content
|

Overview

Every coding task runs in a sandbox holding a prepared checkout of your repository. A coding environment is how you tell CodeRabbit what that sandbox should contain: which language toolchains to install, which setup to run, and which environment variables to expose. Define one once, assign your repositories to it, and every task on those repositories starts from it. Set one up when tasks on a repository need a specific language version, a private dependency source, or a build step that has to run before the agent can do anything useful. Find coding environments at app.coderabbit.ai/code/environments.

Install toolchains

Choose the language runtimes the environment should install, and a version for each. Each toolchain you add counts as one of the environment’s 12 package slots.

Choose a setup method

Use a custom script when the repository needs something detection can’t infer — a private registry, a code generation step, a database to migrate, a monorepo bootstrap. You can also supply startup instructions: notes describing how the project is meant to be built, tested, or run.

Set environment variables

Environment variables are exposed to the task’s sandbox. Use them for anything the build or test suite needs to read from the environment. An environment holds at most 100 variables. A variable name is capped at 255 characters and its value at 4,000.
A coding task runs in a sandbox where the agent can read its own environment and run commands. Give an environment only what its tasks genuinely need.

Assign repositories

An environment applies to the repositories you assign to it. Assign between 1 and 50 repositories per environment.
Environment assignment covers GitHub and GitLab repositories. Coding tasks still run on Azure DevOps and Bitbucket Cloud; they just can’t be given a configured environment.
Each assignment reports its own state:

Environment states

Archive an environment

Archive an environment you no longer want to use. It is retained, but excluded from new repository assignments.

Limits

What’s next

Start a coding task

Every way to start a task against a repository you’ve configured.

Access and billing

Which turns are free, how agent minutes are metered, and how the monthly cap behaves.

Coding Agent overview

How a coding task works, from the first request to delivered code.