Generate runner tokens all tiers
To register a runner, you can use either:
- An authentication token assigned to the runner when you create the runner in the UI. The runner uses the token to authenticate with GitLab when picking up jobs from the job queue.
- A registration token (deprecated).
Generate an authentication token
Registration with an authentication token is available for all runners.
For a shared runner
-
Introduced in GitLab 15.10. Deployed behind the
create_runner_workflow_for_admin
flag - Enabled by default in GitLab 16.0.
create_runner_workflow_for_admin
.Prerequisites:
- You must be an administrator.
To generate an authentication token for a shared runner:
- On the left sidebar, expand the top-most chevron ().
- Select Admin Area.
- On the left sidebar, select CI/CD > Runners.
- Select New instance runner.
- Select a platform.
- Optional. Enter configurations for the runner.
- Select Submit.
- Follow the instructions to register the runner from the command line.
You can also create a runner with the API to generate an authentication token.
For a group runner
-
Introduced in GitLab 15.10. Deployed behind the
create_runner_workflow_for_namespace
flag. Disabled by default. - Enabled by default in GitLab 16.0.
create_runner_workflow_for_namespace
.Prerequisites:
- You must have the Owner role for the group.
To generate an authentication token for a group runner:
- On the left sidebar, at the top, select Search GitLab () to find your group.
- Select Build > Runners.
- Select New group runner.
- Select a platform.
- Optional. Enter configurations for the runner.
- Select Submit.
- Follow the instructions to register the runner from the command line.
You can also create a runner with the API to generate an authentication token.
For a project runner
-
Introduced in GitLab 15.10. Deployed behind the
create_runner_workflow_for_namespace
flag. Disabled by default. - Enabled by default in GitLab 16.0.
create_runner_workflow_for_namespace
.Prerequisites:
- You must have the Maintainer role for the project.
To generate an authentication token for a project runner:
- On the left sidebar, at the top, select Search GitLab () to find your project.
- Select Settings > CI/CD.
- Expand the Runners section.
- Select New project runner.
- Select a platform.
- Optional. Enter configurations for the runner.
- Select Submit.
- Follow the instructions to register the runner from the command line.
You can also create a runner with the API to generate an authentication token.
Generate a registration token (deprecated)
glrt-
tokens will be --locked
, --access-level
,
--run-untagged
, --maximum-timeout
, --paused
, --tag-list
, and --maintenance-note
. This change is a breaking
change.For a shared runner
- On the left sidebar, expand the top-most chevron ().
- Select Admin Area.
- Select CI/CD > Runners.
- Select Register an instance runner.
- Copy the registration token.
For a group runner
- On the left sidebar, at the top, select Search GitLab () to find your group.
- Select Build > Runners.
- Copy the registration token.
For a project runner
- On the left sidebar, at the top, select Search GitLab () to find your project.
- Select Settings > CI/CD.
- Expand the Runners section.
- Copy the registration token.