Connecting Looker to Lava takes three values: your Looker address and the client ID and client secret of a Looker API key. Looker has no sign-in button for third-party apps, so the API key is how Lava reaches your instance. The key belongs to one Looker user and acts with that user's permissions: the agent sees the models, Explores, Looks, and dashboards that user can see, and nothing more. Expect about five minutes, plus a Looker admin's help if you aren't one.
Prerequisites
A Looker instance hosted by Google, at an address ending in looker.com,
cloud.looker.com, or looker.app. Instances your company hosts on its own
servers or serves on a custom domain can't connect yet. You also need a Looker
admin to create your API key or allow you to create one.
Find your Looker address
Open Looker in your browser and copy the address from the address bar, for
example https://acme.looker.com/browse. Lava needs only the host
(acme.looker.com); pasting the whole address also works.
Create an API key
Which steps apply depends on your Looker edition. If your address ends in
looker.app, you're on Looker (Google Cloud core) and the second set of steps
applies; otherwise you're on Looker (original) and the first set applies.
On Looker (original)
- Open your user in the Admin panel. A Looker admin opens Admin → Users and selects Edit on the user the agent should act as. Using your own user is typical; a dedicated service user with a narrower role limits what the agent can see.
- Create the key. In the API Keys section, choose Edit Keys, then New API Key. Looker shows a Client ID and a Client Secret.
- Copy both values. Copy the Client ID and the Client Secret. Only admins can create keys on Looker (original), so if you aren't one, ask your admin to send you both values securely.
On Looker (Google Cloud core)
- Get API key management turned on. A Looker admin opens Admin → Users, edits your user, and enables management of your API credentials. Admins can skip this step.
- Create the key from your Account page. Open your Account page (your avatar, then Account), find API Keys, and create a new key. Looker shows a Client ID and a Client Secret.
- Copy both values. Copy the Client ID and the Client Secret.
Connect to Lava
1. Add Looker
In Lava Desktop, add Looker from the app picker and choose Connect. (In the Lava dashboard, go to Wallet → Connected Services and click Looker.)
2. Enter the three values
Paste your Looker address, the Client ID, and the Client Secret. Lava signs in to your instance with them before saving, so a mistyped value is caught right away, and refreshes the hour-long access token for you from then on.
3. Open your instance
The Looker tab in Lava Desktop opens your instance's address. Sign in there as usual to review dashboards alongside the agent.
Set it up for me
In Lava Desktop, Set it up for me hands this guide to the agent. It asks for your Looker address, opens your instance, and walks you to the API key screen. You still type the Client Secret yourself on Lava's connection screen; the agent never handles it.
Troubleshooting
- "Enter your Looker instance URL" when connecting: the address isn't a Google-hosted Looker host. Check for a typo, and note that custom domains and self-hosted instances aren't supported yet.
- "Looker rejected the API key": the Client ID or Client Secret was mistyped, the key was deleted, or it belongs to a different instance than the address you entered.
- An object you can see in Looker returns 404 to the agent: the key's user lacks access to it. Looker answers 404, not 403, for content the user can't view. Use a key on a user with that access, or share the folder with it.
- SQL Runner requests are refused: running raw SQL needs the
use_sql_runnerpermission. The agent prefers Explores, which don't.
Looker's own reference lives at Looker API authentication.