Skip to main content


Log into Modelbit.

Opens a browser tab that authenticates your Modelbit session, or uses API keys to authenticate if they're present. Returns a logged-in Modelbit object typically named mb.


  • branch: Optional[str] Optionally specify the branch the notebook should use after login.
  • region: Optional[str] Optionally specify the Modelbit region the notebook should connect to.


Modelbit session, typically stored in a variable named mb


Normal authentication

import modelbit
mb = modelbit.login()

Authenticate to branch mb_branch

import modelbit
mb = modelbit.login(branch="my_branch")

Authenticate to region ap-south-1

import modelbit
mb = modelbit.login(region="ap-south-1")

See also