Anaconda logoAnaconda logo
Channels
Blog
Sign in
Package Hosting
Publish and distribute public and private conda packages.
Paxton holding a shield
Security
Track vulnerabilities, assess impact, and manage fixes across shipped releases.
Enterprise support
Contracted support and organization-controlled builds of pixi, rattler and rattler-build.
Create a channel
Paxton with wand and angel wings on starry night sky background
Pixi
Reproducible, cross-platform development environments.
rattler-build
Build conda packages from simple, declarative recipes.
rattler
Build custom conda tooling with Rust libraries and Python bindings.
Paxton with wand and angel wings on starry night sky background
Pixi
How to manage dependencies
Rattler Build
How to build conda packages
Rattler API
Rust + Python Bindings
Channels
How to host your own packages
GraphQL API
How to use our GraphQL API
API Keys
Set your own API keys
Go to Overview

Prefix.dev

  • prefix
  • Overview
  • Browse packages
  • API and API Keys
  • GraphQL API
  • pixi-pfx CLI
  • Channels
  • Overview
  • Find and inspect channels
  • Paths and priority
  • Create and configure
  • Virtual package detectors
  • Use channels
  • Build and publish a package
  • Publish packages
  • Manage access
  • Channel notices
  • Lifecycle
  • Pixi
  • Documentation
  • Repository
  • rattler-build
  • Documentation
  • Repository
  • rattler
  • Rust API
  • Python API
  • Repository

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

  1. Member roles define what a signed-in person can do.

  2. Interactive OAuth lets a local tool act for a signed-in person without copying an API key.

  3. Channel-scoped API keys support clients that cannot use OAuth.

  4. 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:

  1. Open Settings > Members.

  2. Select Invite member and find an existing prefix.dev user.

  3. Choose Viewer or Contributor, then confirm.

  4. Remove access when it is no longer needed.

Channel members page with Owner, Contributor, and Viewer roles and member-management controls.Channel members page with Owner, Contributor, and Viewer roles and member-management controls.

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

  1. Sign in and open Settings.

  2. Select API keys.

  3. Enter a unique Name and optional Description.

  4. Choose an Expiration date.

  5. Under Access, choose Read, Read/write, or Read/write/delete.

  6. Select the channel by its canonical path, such as acme/research.

  7. Select Generate API Key.

  8. 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.

  1. Open Settings > Repository Access.

  2. Choose GitHub, GitLab, or Google Cloud.

  3. Choose the narrowest mode: Read, Read/write, or Read/write/delete.

  4. Enter the provider identity fields.

  5. Select Authorize and confirm the source under Authorized Sources.

Repository Access form with GitHub, GitLab, and Google Cloud providers and three access modes.Repository Access form with GitHub, GitLab, and Google Cloud providers and three access modes.

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

  • Use public and private channels

  • Publish packages

  • Manage package and channel lifecycle

Previous Chapter

Publish packages

Next Chapter

Channel notices
Manage channel access
  • 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
Tools
Pixi Reproducible, cross-platform development environments.rattler-build Build conda packages from simple, declarative recipes.rattler Build custom conda tooling with Rust libraries and Python bindings.
Company
TeamImprintContact usChangelogSecurity
Docs
OverviewBrowse packagesAPI and API KeysGraphQL API
BlogChannelsReport Issues
Anaconda logoAnaconda logo
Anaconda logoAnaconda logo
© Prefix.dev GmbH All rights reserved.
Terms of ServicePrivacy Policy
Anaconda logoAnaconda logo
All systems operational
Channels
Blog