Skip to main content
You change AutoPilot for CI settings on the Settings tab of AutoPilot for CI, or with the settings API. Settings apply at three levels: the organization, a repository (owner/name), and one workflow (.github/workflows/ci.yml in a repository). The routing job’s inputs in the workflow file can override or narrow some of them.

How the levels combine

The workflow file cannot turn AutoPilot on or off, pause it, set provider limits, or allow a provider or runner shape that CostGraph does not allow. A job whose default runner is outside the runner limits keeps its default runner. When the workflow file sets policy, providers, or a runner limit, the workflow shows Set in Git.

Read and change settings

Read the settings for a level with GET. Leave out repository and workflow_path for the organization.
The response has the settings set at that level (own), the settings in effect (effective), and the level each effective value comes from (inherited_from). Reading needs the focus:read scope or the Member role. Change settings with PUT on the same path. It replaces every setting at that level, and a field you leave null inherits from the wider level. Changing settings needs the Admin role and an active subscription.

Runners

GET /api/v1/tenant/ci/autopilot/labels lists every runner CostGraph knows for you, grouped by provider. The list includes GitHub-hosted runners, runners of providers integrated with CostGraph, and labels you set. Pass repository and workflow_path to see one level. Each runner has a state. To allow or block several runners at once, PUT a list for one level.
Narrower levels inherit an allow. A block at any level wins, even over an allow at a narrower level. CostGraph reads the provider, operating system, architecture, and vCPUs from each label. If it does not recognize a label, nothing is saved and the error names the label. To remove a setting so the runner inherits again, send DELETE with label and the same repository and workflow_path.

Provider limits

Provider limits are set for the organization only. The GET /api/v1/tenant/ci/autopilot/providers request lists every provider AutoPilot can route to. Each has its limits and what routed jobs use now. PUT the limits for one provider. A limit you leave null means no limit.
A job skips a provider at a limit and takes the next best runner or its default. AutoPilot checks limits from its own estimates when it routes a job. Limits do not read the provider’s bill or stop jobs that are already running.

Sandbox runners

Three settings control jobs that run in sandboxes with a CostGraph label. The narrowest level that sets each one wins. The workflow file cannot set them.

Suggest a provider

If the runner provider you use is not listed, ask for it through the support chat in the CostGraph dashboard.