Description
DVC remote commands help you configure and manage remote storage locations where DVC stores cached data and model files. Remotes can be cloud storage (S3, GCS, Azure), network storage (SSH, HDFS), or local directories.Subcommands
remote add
Add a new data remote.Arguments
Name of the remote (converted to lowercase).
Remote location. Supported URLs include:
s3://bucket/path- Amazon S3gs://bucket/path- Google Cloud Storageazure://container/path- Azure Blob Storagessh://user@host/path- SSH/SFTPhdfs://namenode/path- HDFS/local/path- Local directoryhttp://example.com/path- HTTP
Options
Set as default remote.
Force overwriting existing configs.
Use global config (~/.config/dvc/config).
Use system config.
Use project config (.dvc/config).
Use local config (.dvc/config.local).
remote default
Set/unset the default data remote.Arguments
Name of the remote to set as default. Omit to show current default.
Options
Unset default remote.
Use global config.
Use system config.
Use project config.
Use local config.
remote list
List all available data remotes.Example Output
The default remote is highlighted in green and marked with “(default)“.
remote modify
Modify the configuration of a data remote.Arguments
Name of the remote.
Name of the option to modify. Common options:
access_key_id,secret_access_key- AWS credentialsregion- AWS regionprofile- AWS profile nameendpointurl- Custom endpoint URLssl_verify- Enable/disable SSL verificationurl- Change remote URL
Value of the option. Omit when using
--unset.Options
Unset option.
Use global config.
Use system config.
Use project config.
Use local config.
remote remove
Remove a data remote.Arguments
Name of the remote to remove.
Options
Use global config.
Use system config.
Use project config.
Use local config.
remote rename
Rename a DVC remote.Arguments
Remote to be renamed.
New name of the remote.
Options
Use global config.
Use system config.
Use project config.
Use local config.
Examples
Setting Up AWS S3 Remote
Setting Up Google Cloud Storage
Multiple Remotes for Different Purposes
SSH Remote with Key Authentication
Supported Storage Types
Amazon S3
AWS S3 and S3-compatible storage (MinIO, DigitalOcean Spaces)
Google Cloud Storage
GCS buckets with service account or default credentials
Azure Blob Storage
Azure containers with connection string or SAS token
SSH/SFTP
Remote servers via SSH with key or password authentication
HDFS
Hadoop Distributed File System
HTTP/HTTPS
Read-only HTTP servers (for pulling data)
Local Directory
Network-mounted directories or local paths
WebDAV
WebDAV protocol (Nextcloud, ownCloud)
Configuration Levels
DVC supports four configuration levels (in order of precedence):Common Remote Options
AWS S3 Options
access_key_id- AWS access keysecret_access_key- AWS secret keyregion- AWS region (e.g., us-east-1)profile- AWS CLI profile nameendpoint_url- Custom S3 endpointssl_verify- Enable/disable SSL verification
Google Cloud Storage Options
credentialpath- Path to service account JSON fileprojectname- GCP project name
Azure Options
connection_string- Azure storage connection stringaccount_name- Storage account namesas_token- Shared Access Signature token
SSH Options
keyfile- Path to SSH private keypassword- SSH passwordport- SSH port (default: 22)timeout- Connection timeout
Related Commands
dvc push- Upload data to remote storagedvc pull- Download data from remote storagedvc fetch- Download data to cache without checkoutdvc config- Direct configuration management