Help article
Cloud agents on a GitHub repository
A Cloud agent runs on iTwins computers, so it keeps working after you close the browser. Start one on a GitHub repository you granted to iTwins: it clones the repository, works on its own branch, pushes it and opens a pull request for you to review.
- Paid plans only (Pro, Pro+, Ultra or Teams). Connect GitHub once in Settings > Integrations and grant the iTwins GitHub App only the repositories you want agents to use.
- Start one: click New Agent, choose iTwins Cloud as the computer, open the folder menu and pick a repository under GitHub repositories. Type the task and send it. The same run can be started from a program with POST /api/cloud-agents (see itwins.com/docs/api).
- The agent works on a new branch named itwins/... and never pushes to the default branch or your base branch, never force-pushes and never deletes branches. It opens the pull request itself and can add labels to it; it can read the repository with gh but cannot change settings, other repositories or issues.
- The agent never sees your GitHub credential. iTwins holds a short-lived token limited to the one repository, and every push and pull request goes through iTwins, which applies the rules above.
- Close the browser at any time; the run keeps going. Open the conversation from the sidebar on any device to follow it. Press Stop to end it; work already pushed stays on its branch.
- Cost: model use counts against your plan's usage and your Team's spend limit. A run the limit cannot start is refused before a computer starts.
- To run an agent on a schedule or when something happens on GitHub, use Automations (itwins.com/docs/automations).