Manage channel accessChoose member roles, OAuth, API keys, or OIDC-based Repository Access.
Channel access covers both people and automated tools. Choose the narrowest mechanism that supports the task and the shortest practical lifetime.
Choose an access mechanism
Member roles define what a signed-in person can do.
Interactive OAuth lets a local tool act for a signed-in person without copying an API key.
Channel-scoped API keys support clients that cannot use OAuth.
Repository Access gives a matching CI/CD or Google Cloud workload short-lived access without a stored prefix.dev key.
Channel-scoped keys and Repository Access set a capability ceiling for one channel. The user’s role or trusted-publisher relationship must also permit the operation.
Legacy unscoped All keys are different: they include every channel scope globally, constrained by the user’s role on each channel.
Warning: Do not create new All keys. Replace existing ones by deploying and testing a narrower credential before revoking the old key.
Assign member roles
Task | Viewer | Contributor | Owner |
|---|---|---|---|
Browse and download from a private channel | Yes | Yes | Yes |
Upload, reindex, yank, and restore packages | No | Yes | Yes |
Permanently delete package variants | No | Yes | Yes |
Change settings or manage members and Repository Access | No | Yes | Yes |
Transfer ownership or delete the channel | No | No | Yes |
To add a member:
Open Settings > Members.
Select Invite member and find an existing prefix.dev user.
Choose Viewer or Contributor, then confirm.
Remove access when it is no longer needed.


The Owner cannot be removed as a member. Transfer ownership instead.
Prefer OAuth for local tools
Run:
pixi auth login prefix.dev
Complete the browser authorization flow. OAuth avoids copying a long-lived secret into a command or configuration file.
Understand API-key modes
Mode | Scope | Capability |
|---|---|---|
All | Legacy and unscoped | Every channel scope globally, constrained by the user’s role |
Read | One private channel | Read metadata and download packages |
Read/write | One channel | Read, upload, reindex, yank, and restore |
Read/write/delete | One channel | Read/write plus permanent deletion and force replacement |
Create a channel-scoped API key
Sign in and open Settings.
Select API keys.
Enter a unique Name and optional Description.
Choose an Expiration date.
Under Access, choose Read, Read/write, or Read/write/delete.
Select the channel by its canonical path, such as
acme/research.Select Generate API Key.
Copy the key immediately. It is shown only once.
Use Read for private downloads, Read/write for normal publishing and yanking, and Read/write/delete only when the client must permanently delete or force-replace variants.
Treat every key as a password. Review its status, expiry, last use, mode, and canonical channel path. To rotate a key, deploy and test a replacement before selecting Revoke on the old key. Delete the revoked record later when you no longer need its audit context.
If a client accepts a token only as a command-line argument, avoid entering it directly into shared shell history or logs. Prefer the client’s credential store or your environment’s secret injection mechanism.
Configure Repository Access
Repository Access uses OIDC to match a provider identity and mint short-lived prefix.dev access. Owners and Contributors can add or remove a source.
Open Settings > Repository Access.
Choose GitHub, GitLab, or Google Cloud.
Choose the narrowest mode: Read, Read/write, or Read/write/delete.
Enter the provider identity fields.
Select Authorize and confirm the source under Authorized Sources.


Repository Access does not grant channel settings, member management, ownership transfer, or channel deletion.
GitHub Actions
Configure the organization or username, repository, workflow filename, optional GitHub Environment, and access mode. The workflow must request GitHub’s OIDC permission:
permissions:
contents: read
id-token: write
If you configure a GitHub Environment, the token must contain the same environment name. Matching is exact and case-sensitive. Leaving the field blank does not restrict the source to an Environment.
After Repository Access is configured, the matching workflow can upload with:
rattler-build upload prefix --channel <canonical-channel-reference> <package-file>
Protect changes to publishing workflows and use the narrowest access mode.
GitLab CI/CD
Configure the namespace, project, CI configuration filepath, optional environment, and access mode. The token audience must be prefix.dev. The project path is compared case-insensitively; the workflow filepath and configured environment are matched exactly.
Google Cloud
Configure the service-account email, optional subject, and access mode. The Google-issued ID token must use audience prefix.dev and match the configured identity.
Remove Repository Access
Remove a source under Authorized Sources when a repository or workload no longer needs access. When moving to a replacement, add and test the new source first, then remove the old one.
Restrict uploads to trusted publishers
You can lock a channel so that only Repository Access sources can publish to it. A leaked API key or a compromised account then cannot add packages. Open Settings > General; the settings are in the Upload restrictions section, with an Enabled/Disabled toggle for each. The attestation toggle is greyed out until the first one is enabled:
Only allow uploads from trusted publishers: API keys, OAuth logins, and browser uploads are refused. Only the sources listed under Repository Access can upload.
Also require a sigstore attestation: every upload must also carry a sigstore attestation signed by the uploading workflow. Packages can no longer be copied into the channel from another channel, because a copy carries no attestation for it.
With the attestation setting on, have the workflow sign each upload:
rattler-build upload prefix --channel <canonical-channel-reference> --generate-attestation <package-file>pixi publish accepts the same flag. To attach a bundle you created yourself, pass --attestation instead.
Packages already published stay in the channel. On a restricted channel, API keys and tokens also cannot unyank packages, add members, or add Repository Access sources; do that while signed in on the website.
You can change these settings only while signed in on the website, not with an API key or token. Each change is recorded in the audit log and emailed to the channel's Owners.
Group-wide settings
A group Owner can turn on the same two settings for every channel of the group under the group's Settings > General > Trusted publishing. A channel can be stricter than its group but cannot turn off what the group requires. Its Upload restrictions section then names the group that requires the setting.
Allow trusted publishers only from specific accounts
Under Restrict trusted publishers to these accounts on the same group page, a group Owner can list the accounts whose trusted publishers may publish to the group's channels. Channels still choose which workflows to trust; the list bounds them. An empty list allows any account.
GitHub: a user or organization. It covers workflows in any of its repositories. prefix.dev stores the account's numeric ID, so the entry follows a renamed account and does not match a new account that takes the old name.
GitLab: a group or user path, such as
my-group/subgroup. It covers pipelines in that group and its subgroups.Google Cloud: a project ID. It covers the service accounts of that project.
Sources from other accounts are not deleted. They show a Blocked by group badge on the channel's Repository Access page, and their uploads are refused until a group Owner adds the account or the source is removed. Only group members can see the list, and each change is emailed to the group's Owners.
When an upload is refused
A refused upload fails with HTTP 403 and a message that names the setting that blocked it and whether the channel or its group set it. For example:
This channel only accepts uploads from trusted publishers: the upload policy of the 'acme' group only allows trusted publishing, so API keys and user logins cannot upload here. Upload from a CI workflow added under the channel's Repository Access settings.Next steps
Previous Chapter
Next Chapter
- Choose an access mechanism
- Assign member roles
- Prefer OAuth for local tools
- Understand API-key modes
- Create a channel-scoped API key
- Configure Repository Access
- GitHub Actions
- GitLab CI/CD
- Google Cloud
- Remove Repository Access
- Restrict uploads to trusted publishers
- Group-wide settings
- Allow trusted publishers only from specific accounts
- When an upload is refused
- Next steps