To manage your resources in Jina AI Cloud using DocArray, you need to authenticate to Jina AI Cloud. Jina AI Cloud offers several ways to log in. Read more about Login & Token Management in Jina AI Cloud. DocArray also offers convenience methods to log in and log out using the Python API.


To log in using the Python API, use the login() method:

from docarray import login


The login() method is interactive, meaning that it will prompt you to log in using a browser. Non-interactive login options are explained in Login & Token Management.

login() supports notebook environments as well, but it’s recommended to use parameter interactive in that case:

from docarray import login



To log out, you can use the logout() method:

from docarray import logout


For more logout methods (CLI), see Login & Token Management.