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
from docarray import login login()
login() supports notebook environments as well, but it’s recommended to use parameter
in that case:
from docarray import login login(interactive=True)
To log out, you can use the
from docarray import logout logout()
For more logout methods (CLI), see Login & Token Management.