In order to work on a Layer project, you must first log in to Layer. However, you can access public entities as a guest user.
You must have a Google or GitHub account in order to have a Layer account.
Log in to Layer with a web browser
You can log in to Layer from a web browser. This does not require the Layer SDK to be installed.
Use this login method to view your projects, datasets, and other private assets.
- In a Chrome or Safari web browser, navigate to layer.ai.
- Click Login.
- Enter your Google or GitHub account information.
After you complete all necessary steps, Layer logs you in to your account with the web browser.
Log in with the SDK and a script
In your notebook or Python script use this method to use Layer features.
The first time you log in with this method:
- Copy the link Layer provides and paste it into your web browser.
- Log in using your Google or GitHub account.
- Copy the code, paste it where prompted in the notebook, and then press Enter or Return.
Layer reuses your credentials on subsequent logins.
Log in with an API key
Once logged in with a web browser, create an API key in Layer Developer Settings. Copy the API key and use it to log in to Layer.
Log in as guest
Guest users can access public projects and entities within those projects without logging in to Layer.
You can access Layer as a guest one by using a function to get a public entity without logging in. If Layer cannot find a login associated with your request, then it assumes you are a guest user and logs you in as one automatically.