# Can't Authorize Roboflow

**URL:** <https://discuss.roboflow.com/t/cant-authorize-roboflow/3214>\
**Category:** 🤝  Community Help\
**Created:** [September 14, 2023, 2:20am UTC](https://discuss.roboflow.com/t/cant-authorize-roboflow/3214 "2023-09-14T02:20:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Choudhry](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/ali_choudhry/32/2818_2.png) [@Ali\_Choudhry](https://discuss.roboflow.com/u/Ali_Choudhry)\
**Post date:** [September 14, 2023, 2:20am UTC](https://discuss.roboflow.com/t/cant-authorize-roboflow/3214/1 "2023-09-14T02:20:53Z")

</div>

Hello, I’m having a bit of trouble uploading custom weights.

I run the following script to authorize roboflow: `roboflow auth`  
This automatically opens a webbrowser from which I can copy an authentication key. This I rightclick into my command prompt and get the response: `Nothing to select from, only 1 default workspace authorized`  
From my understanding this is working?

However, when I then try to upload custom weights, it still asks for an authentication key. This I’m able to access from [Sign in to Roboflow](https://app.roboflow.com/auth-cli) , however, I can’t seem to paste it as a response back into my terminal?

This is the upload script I’m using:

```auto
import roboflow

roboflow.login()

rf = Roboflow(api_key="API key")

project = rf.workspace("work-space").project("model name")

project.version(version).deploy(model_type="yolo", model_path="path to/runs/detect/train4")

```

I had another thread with the same question, but am reposting it because that one got a bit convoluted: [Uploading Custom Model?](https://discuss.roboflow.com/t/uploading-custom-model/3179)
