# Dvc get S3 credentials

**URL:** <https://discuss.dvc.org/t/dvc-get-s3-credentials/2061>\
**Category:** Questions\
**Created:** [April 30, 2024, 10:22am UTC](https://discuss.dvc.org/t/dvc-get-s3-credentials/2061 "2024-04-30T10:22:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaPo](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@HaPo](https://discuss.dvc.org/u/HaPo)\
**Post date:** [April 30, 2024, 10:22am UTC](https://discuss.dvc.org/t/dvc-get-s3-credentials/2061/1 "2024-04-30T10:22:11Z")

</div>

Hi,

I would like to download a tracked dataset from outside my dataset repo with this command:  
dvc get [git@gitlab.XXXX.com](mailto:git@gitlab.XXXX.com):XXX/XXXX.git datasets/XXXX/v1.0

Cloning the repo works well, but I got this error:  
ERROR: unexpected error - failed to load directory (‘datasets’, ‘XXXX’, ‘v1.0’): Unable to locate credentials

The point is that the credentials are stored in the .dvc/config file of the dataset repo. It works well when using dvc pull commands.

How can I configure dvc to use the cloned repo credentials when I do a dcv get command ?

---

<div class="post-metadata">

**Author:** ![dberenbaum](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@dberenbaum](https://discuss.dvc.org/u/dberenbaum)\
**Post date:** [May 1, 2024, 4:49pm UTC](https://discuss.dvc.org/t/dvc-get-s3-credentials/2061/2 "2024-05-01T16:49:31Z")

</div>

You can add credentials and other remote info with `dvc get --remote-config`. See an example in [get](https://dvc.org/doc/command-reference/get#example-set-aws-profile-for-default-remote).
