v18

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-014211,6201.8 MB
gitpod.v1.RunnerService

CreateRunner

Creates a new runner registration with the server. Registrations are very short-lived and must be renewed every 30 seconds.

Use this method to:

  • Register organization runners
  • Set up runner configurations
  • Initialize runner credentials
  • Configure auto-updates

Examples

  • Create an AWS runner:

    Creates a new runner in AWS EC2.

    name: "AWS Runner"
    provider: RUNNER_PROVIDER_AWS_EC2
    spec:
      desiredPhase: RUNNER_PHASE_ACTIVE
      configuration:
        region: "us-west"
        releaseChannel: RUNNER_RELEASE_CHANNEL_STABLE
        autoUpdate: true
    
  • Create a GCP runner:

    Creates a new runner on Google Cloud Platform.

    name: "GCP Runner"
    provider: RUNNER_PROVIDER_GCP
    spec:
      desiredPhase: RUNNER_PHASE_ACTIVE
      configuration:
        region: "us-central1"
        releaseChannel: RUNNER_RELEASE_CHANNEL_STABLE
        autoUpdate: true
    
  • Create local runner (deprecated):

    Creates a new local runner on Linux. Local runners are deprecated; use RUNNER_PROVIDER_AWS_EC2 or RUNNER_PROVIDER_GCP instead.

    name: "Local Development Runner"
    provider: RUNNER_PROVIDER_LINUX_HOST
    spec:
      desiredPhase: RUNNER_PHASE_ACTIVE
      configuration:
        releaseChannel: RUNNER_RELEASE_CHANNEL_LATEST
        autoUpdate: true
    
post/gitpod.v1.RunnerService/CreateRunner

Request body

kind'RUNNER_KIND_UNSPECIFIED' | 'RUNNER_KIND_LOCAL' | 'RUNNER_KIND_REMOTE' | 'RUNNER_KIND_LOCAL_CONFIGURATION'

RunnerKind represents the kind of a runner

namestring

The runner name for humans

provider'RUNNER_PROVIDER_UNSPECIFIED' | 'RUNNER_PROVIDER_AWS_EC2' | 'RUNNER_PROVIDER_LINUX_HOST' | 'RUNNER_PROVIDER_DESKTOP_MAC' | 'RUNNER_PROVIDER_MANAGED' | 'RUNNER_PROVIDER_GCP' | 'RUNNER_PROVIDER_DEV_AGENT'

RunnerProvider identifies the specific implementation type of a runner. Each provider maps to a specific kind of runner (local or remote), as specified below for each provider.

runnerManagerIdstring uuid

The runner manager id specifies the runner manager for the managed runner. This field is mandatory for managed runners, otheriwse should not be set.

Response

Success

accessTokenstring

deprecated, will be removed. Use exchange_token instead.

exchangeTokenstring

exchange_token is a one-time use token that should be exchanged by the runner for an access token, using the IdentityService.ExchangeToken rpc. The token expires after 24 hours.