> ## Documentation Index
> Fetch the complete documentation index at: https://palmier.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment

> Modify your agents environment

Configure each repositories environment so the agent has the most optimal workspace to work with.

<video controls width="100%">
  <source src="https://mintcdn.com/palmier/uwIa6OlcEeHikIKc/videos/setup-environment-web.mp4?fit=max&auto=format&n=uwIa6OlcEeHikIKc&q=85&s=033edd98642364b9c023f771e09be34a" type="video/mp4" data-path="videos/setup-environment-web.mp4" />

  Your browser does not support the video tag.
</video>

## Repository Selection

Choose a repository to configure its environment settings. Select from your available repositories in the dropdown menu.

## Image & Packages

### Base Image

Specify the Docker image to use as the base environment. Common options include:

* `python:3.11`
* `ubuntu:24.04`
* `node:20`

### Package Management

Configure packages for your environment:

**APT Packages**: Add system-level packages that need to be installed via apt-get

**PIP Packages**: Add Python packages that should be installed via pip

## Environment Variables

Configure environment variables for your agent's workspace. You can access your personal or team secrets via the secret context (similar to Github Action secrets):

`${{ secrets.YOUR_SECRET }}`

See <a href="/palmier/secrets">Secrets</a> for more information.

## Setup Script

Define custom setup commands that run after the environment is created. Each line will be executed separately in the same session.

Example setup script:

```bash theme={null}
pip install -r requirements.txt
npm install
chmod +x scripts/setup.sh
```

## Validate & Save Settings

Before finalizing your configuration, click the validate and save button. This initializes a sandbox environment with your configuration to ensure the commands work as expected.
Once the validation finished, it will save automatically and every subsequent run in that repository will use your environment setup!

<Warning>
  Don't leave the page while validation is taking place, as the progress will be lost.
</Warning>
