Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt

Use this file to discover all available pages before exploring further.

CoreWeave AI Object Storage requires virtual-hosted style URLs. Path-style addressing is not supported, so you must configure your client accordingly. This guide explains how to set the virtual-hosted addressing style and set a valid AI Object Storage endpoint URL in your S3 configuration. In virtual-hosted style, the bucket name is part of the domain, like https://[BUCKET-NAME].cwobject.com, instead of part of the path. When you enable this, your S3 client prepends bucket names to the endpoint in the correct format for AI Object Storage: https://[BUCKET-NAME].cwobject.com. Make sure your S3 client is not using path-style addressing (for example, https://cwobject.com/[BUCKET-NAME]/file). This format is unsupported and will result in errors.
Use the CoreWeave fork of s5cmd with AI Object StorageThe upstream s5cmd uses path-style addressing with custom endpoint URLs. AI Object Storage does not support path-style addressing and requires virtual-hosted style URLs. Use the CoreWeave fork of s5cmd, which is compatible with AI Object Storage and can safely replace any existing s5cmd installation. See Migrate data to AI Object Storage for setup and usage.

Configure CoreWeave credentials

Using a separate profile for CoreWeave AI Object Storage is recommended to avoid conflicts with your other AWS profiles and S3-compatible services; if you do not set up this configuration, you may encounter errors when using AI Object Storage.
  1. Create a new credentials file and profile in your CoreWeave configuration directory.
    Create a new credentials file and profile
    AWS_SHARED_CREDENTIALS_FILE=~/.coreweave/cw.credentials aws configure --profile cw
    
  2. When prompted for information, provide the following values:
    • AWS Access Key ID: The Access Key ID of your CoreWeave AI Object Storage Access Key.
    • AWS Secret Access Key: The Secret Key of your CoreWeave AI Object Storage Access Key.
    • Default region name: Optional. To set a default region, refer to the CoreWeave Availability Zones.
    • Default output format: Use json for JSON output.
  3. Set the default endpoint URL to the appropriate endpoint for your use case:
    • The primary endpoint, https://cwobject.com, for use when running outside of a CoreWeave cluster.
    • The LOTA endpoint, http://cwlota.com, for use when running inside a CoreWeave cluster. The LOTA endpoint routes to the LOTA path for best performance.
    Set the primary endpoint for local development
    AWS_CONFIG_FILE=~/.coreweave/cw.config aws configure set endpoint_url https://cwobject.com --profile cw
    
  4. Set the S3 addressing_style to virtual:
    Set virtual addressing style
    AWS_CONFIG_FILE=~/.coreweave/cw.config aws configure set s3.addressing_style virtual --profile cw
    

Set virtual addressing style

Using the AWS CLI, you can set the virtual addressing style for your CoreWeave profile, and then verify the setting:
Configure the virtual addressing style
aws configure set s3.addressing_style virtual --profile cw
Verify the setting
aws configure get s3.addressing_style --profile cw
Boto3 shares this AWS CLI configuration, unless overridden by a Config object or the environment. This Boto example shows where to modify the S3 config within the Boto config:
boto_config = Config(
    region_name = 'US-EAST-04A',
    s3={'addressing_style':'virtual'}
)

Set endpoint URL

Make sure you use valid AI Object Storage endpoint URLs:
  • Use the primary endpoint, https://cwobject.com, when running outside of a CoreWeave cluster.
  • Use the LOTA endpoint, http://cwlota.com, when running inside a CoreWeave cluster. The LOTA endpoint routes to the LOTA path for best performance.
Set the default endpoint URL in your AWS config, and verify the setting:
Set the endpoint URL
aws configure set endpoint_url "https://cwobject.com" --profile cw
Verify the endpoint URL
aws configure get endpoint_url --profile cw
Alternatively, you can set it in your Boto3 client. Set your credentials as environment variables, then pass them to the client:
export ACCESS_KEY_ID="[ACCESS-KEY-ID]"
export SECRET_ACCESS_KEY="[SECRET-ACCESS-KEY]"
import os
import boto3
from botocore.client import Config

boto_config = Config(
    region_name='US-EAST-04A',
    s3={'addressing_style': 'virtual'}
)

s3_client = boto3.client(
    's3',
    endpoint_url='https://cwobject.com',
    aws_access_key_id=os.environ['ACCESS_KEY_ID'],
    aws_secret_access_key=os.environ['SECRET_ACCESS_KEY'],
    config=boto_config
)

Full configuration examples

These configuration examples show how to set both the virtual-hosted addressing style and the AI Object Storage endpoint URL. Use one of these AZs for your region:
  • US-CENTRAL-05A
  • US-CENTRAL-06A
  • US-CENTRAL-07A
  • US-CENTRAL-08A
  • US-CENTRAL-08B
Learn more about Regions and Availability Zones.
If you are using an S3 client that uses the AWS config file (~/.aws/config), such as the AWS CLI, the S3 SDKs, or s3cmd, you can add it directly to your CoreWeave configuration file:Named profile:
[profile cw]
region = US-EAST-04A
endpoint_url = https://cwobject.com
s3 =
   addressing_style = virtual
Last modified on April 30, 2026