See Authentication for the default behavior of the DataSourceClient. Override the API key from domino.data_sources import DataSourceClient custom_api_key = "VALID_API_KEY" client = DataSourceClient(api_key=custom_api_key) db = client.get_datasource("my-db") Override the location of the token file from domino.data_sources import DataSourceClient custom_token_file = "/valid/token/file/location" client = DataSourceClient(token_file=custom_token_file) db = client.get_datasource("my-db")