iam:[ORG-ID]:groups condition key for group-based and attribute-based access control.
Your client requests credentials from the AI Object Storage API access token endpoint, passing your API access token as a bearer token.
Exchanging an API access token for temporary credentials requires the
Object Storage Admin role or an organization access policy that grants cwobject:CreateAccessKey.Configure your environment
You can set up the exchange in two ways. CoreWeave recommends the CoreWeave Intelligent CLI, because it caches the exchanged credentials and reuses them across commands and processes.Use the CoreWeave Intelligent CLI (recommended)
The CoreWeave Intelligent CLI (cwic) provides cwic auth accesskey api-token, a credential process that performs the exchange and caches the result on disk. Every command and every process that uses the profile shares one set of credentials until they approach expiry, instead of exchanging its own.
This command requires CoreWeave Intelligent CLI version 1.37.0 or later. Install
cwic by following the installation instructions.-
Authenticate once. On a workstation, pass
--storage keyringto keep the API access token in your operating system credential store instead of a file on disk:This also records the keyring as the backend for that organization, so the Access Keys thatAuthenticate and store the token in the keyringcwic auth accesskeyexchanges later are cached there too, and you don’t need to repeat the flag.A keyring is only reachable from a desktop session, so omit--storage keyringon a server, in a container, or in a Pod, wherecwicuses its on-disk cache instead. For the platform details and the macOS re-authorization prompt after an upgrade, see Store the cache in your system keyring. -
Add a profile that names the command. Replace
[AVAILABILITY-ZONE]with the CoreWeave Availability Zone you’re using:~/.aws/config -
Test your configuration by listing your buckets:
List your buckets
cwic reads the API access token from the COREWEAVE_API_TOKEN environment variable, or, if that’s unset, from the token stored by cwic auth login for the active organization.
Set container credential environment variables
Use this method when you can’t add thecwic binary to the environment, such as a third-party container image. It configures the AWS container credentials feature directly, with no extra software.
-
Ensure you’re using a supported S3 client. The minimum supported versions are
awscli >= 2.33.2andboto3 >= 1.42.5. -
Set the following environment variables. Replace
[API-ACCESS-TOKEN]with your API access token and[AVAILABILITY-ZONE]with the CoreWeave Availability Zone you’re using:Set the environment variables -
Test your configuration by listing your buckets:
List your buckets
aws command you run. A workload that starts many processes in parallel produces a matching burst of credential requests. For ways to avoid that, see Share credentials across processes.
Results
On success, CoreWeave validates the API access token and returns temporary credentials with the identity formatcoreweave/[UID]. The returned credentials inherit permissions from your organization access policies and any applicable bucket access policies.
Group-based access control
Because the temporary credentials carry the principal’s SCIM group memberships in theiam:[ORG-ID]:groups condition key, you can write access policies that grant or deny access based on group membership instead of naming individual principals. To use this:
- Attribute-based access control: how principal attributes such as group memberships are referenced in policy conditions.
- Group-based access: an example bucket policy that grants access to members of a specific group.