Interact with Blaxel by API or CLI using access tokens.
bl login
command.
You will then be redirected to the Blaxel console to finish logging in. Sign in using your Blaxel account if you aren’t already.
Once this is done, return to your terminal: the login will be finalized and you will then be able to run CLI commands.
/oauth/token
endpoint.
Authorization
or X-Blaxel-Authorization
, as such:
Authorization
or X-Blaxel-Authorization
.
Alternatively, you can retrieve a token using the SDK:
Authorization
or X-Blaxel-Authorization
in any call to the Blaxel APIs. For example, to list models: