Repositories and environments for automations
Every automation run is a cloud task, so it runs in its own cloud environment. What the environment contains depends on what you select in the repository selector when you define the automation:
A repository – the run clones it into a cloud environment. If you own an environment configuration for the repository, the run can pick it up, but never a shared one, and a project automation that runs on the project's AI credits always gets the default environment. This is enough for most automations. When the run needs a specific configuration, select it instead.
An environment configuration – the run gets the configuration's dependencies, variables, secrets, and network access. See Run with an environment configuration.
Several repositories – the run clones all of them, and the agent works across them. See Work on several repositories.
Nothing – the run clones no code and works only through connectors. See Work without a repository.
Each run gets a fresh environment, but it can start from a snapshot of an earlier run or task on the same repository, so files outside the repository can be preserved. Don't rely on that for correctness – see Snapshots and preserved state.
Run with an environment configuration
If the automation needs specific dependencies, environment variables, secrets, or other runtime settings, create an environment configuration for the repository in advance – see Configure environments. Then select the configuration instead of the repository in the repository selector. Selecting it is the only way to be sure the run gets its secrets – with just the repository selected, a shared configuration is never applied.
The environments you can select depend on the automation's scope: a personal automation lists your personal environments, and a project automation lists that project's environments.
Work on several repositories
An automation can work on more than one repository in a single run. Use it when the task spans code that lives apart – for example, a service and its clients, or an application and a repository of shared configuration. Every run clones all the repositories into one cloud environment, and the agent works across them.
- How a multi-repository run works
One repository is the primary one – the first one you select, or the repository of the environment if you select one. The run's environment is set up for it, and only its events start the automation.
Each repository gets its own folder – the repositories are cloned side by side into /workspaces/<repository>, and the agent starts in /workspaces. Because the folder is named after the repository, you can't combine two repositories with the same name, such as a fork and its upstream.
Providers can differ – a GitHub repository can sit next to a GitLab one. You need access to every repository you add.
Each repository has its own branch – each trigger sets which branch every repository checks out and what Air Teams does with its changes.
One environment at most – an automation can combine one environment with several repositories, but not two environments. An environment configuration holds one repository.
Access covers the whole set – to edit the automation, run or rerun it, or read a run's chat, you need access to every repository in it. A project automation is paused if the project's GitLab account can't reach one of its GitLab repositories – see A project's GitLab automations are paused.
Repository limit – you can add up to 10 repositories next to the primary one.
- Startup scripts, MCP servers, and skills
Every repository can have its own setup and agent files. Air Teams handles them as follows:
Startup scripts – the startup script (.air/cloud/startup.sh) of every repository runs before the agent starts. Run order is undefined.
MCP servers – Air Teams combines the .mcp.json servers from all repositories, and the agent gets each of them alongside your connectors. Give servers unique names across the repositories to avoid conflicts.
Skills – skills from all repositories are available to the agent. As with MCP servers, keep skill names unique across the repositories.
Instructions and commands – files such as AGENTS.md and CLAUDE.md, and custom commands, aren't combined. They stay in their repository, and the agent starts above all of them, so don't count on them for rules that apply to the whole run. Put those in the task definition or the automation's Instructions.
Add repositories to an automation
Under the automation name, click the repository selector and select the checkbox next to each repository the automation needs. The first one you select is the primary repository.
To run the automation with an environment configuration, select it in the same list. The environment's repository is always the primary one, and the repositories you select are added to it. You can select only one environment.

To make another repository the primary one, hover over it and click Mark as primary. This isn't available when you've selected an environment.
In Triggers, set the branch and the change handling for each repository. Triggers listen to the primary repository only: an event in another repository, such as a new pull request, doesn't start a run.
By default, each repository uses its default branch and No code changes. The change handling options you can choose depend on the start condition:
With a pull request trigger, the run can push to the primary repository only on the pull request's branch.
With a trigger, the other repositories are limited to No code changes.
With a schedule, every repository can use any option.
In Instructions, tell the agent which repository holds what and which ones it should change. Air Teams lists the repository folders and branches for the agent, but not what each repository is for.
Work without a repository
Not every automation works on code. Triage of new issues, a weekly summary of a Jira project, or a report built from your connectors needs no checkout. For such work, don't select a repository when you define the automation. The run starts without cloning anything, and the agent works only with the automation's Instructions and connectors.
Without a repository, an automation can't use:
An environment configuration. An environment belongs to a repository.
Environment variables and secrets. They come only from an environment configuration. To reach external services, use connectors – they sign in on their own.
Additional repositories.
Schedules, repetitive runs, Jira events, chained automations, and incoming webhooks work as usual.