# Cloning HF Private Repo using OAuth Token

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcloning-hf-private-repo-using-oauth-token%2F127005%3E%5C
**Category:** 🤗Hub\
**Created:** [November 23, 2024, 3:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcloning-hf-private-repo-using-oauth-token%2F127005 "2024-11-23T15:48:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![singhalkarun](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/singhalkarun/32/36306_2.png) [@singhalkarun](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsinghalkarun)%5C
**Post date:** [November 23, 2024, 3:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcloning-hf-private-repo-using-oauth-token%2F127005%2F1 "2024-11-23T15:48:52Z")

</div>

I was trying to clone a private repository using the huggingface oauth token with repo write permissions but unable to. I am able to clone if I used Peronal Access Token.

My goal is to be able to push large files (.h5 or .pt files) which I can’t do using upload\_file endpoint.

---

<div class="post-metadata">

**Author:** ![coyotte508](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/coyotte508/32/36751_2.png) [@coyotte508](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcoyotte508)%5C
**Post date:** [November 30, 2024, 9:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcloning-hf-private-repo-using-oauth-token%2F127005%2F2 "2024-11-30T21:21:06Z")

</div>

Can you give more details? Do you have a request id to share? Is the private repository you’re trying to access part of an org or a user?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [December 1, 2024, 6:09am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcloning-hf-private-repo-using-oauth-token%2F127005%2F3 "2024-12-01T06:09:07Z")

</div>

Thank you for your response, coyotte508.😀 I think this is the same issue that was resolved on HF Discord.

> **[Discord - Group Chat That’s All Fun & Games](https://discord.com/channels/879548962464493619/1310127489162678292)**
>
> Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.
