> [!WARNING]
>
> **Preview**
>
>
> This feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

> [!NOTE]
> **Note:** Provide feedback or report issues with this preview feature by sending a detailed email to [looker-agents-support-external@google.com](mailto:looker-agents-support-external@google.com).

The [**Looker extension for VS Code**](https://marketplace.visualstudio.com/items?itemName=Google.vscode-looker-official) lets you develop LookML directly within your local desktop environment. It provides rich syntax highlighting, bidirectional file synchronization with your Looker instance, and integration with AI coding agents for "vibe coding."

The extension is built by using the Visual Studio Code (VS Code) framework, and it supports integrated development environments (IDEs) that are based on the VS Code IDE, such as the following IDEs and coding tools:

- Claude Code
- Codex
- Cursor
- Kiro
- VS Code
- Windsurf
- Zed

IDEs that are not forks of VS Code, such as IntelliJ and Eclipse, aren't supported by the Looker extension for VS Code.

This guide covers how to set up and authenticate the extension.

## AI-enabled workflow

The Looker extension for VS Code is part of an AI-enabled agentic development workflow for editing and creating LookML files. To enable this workflow, configure the following tools:

- The **Looker extension for VS Code**.
- A **local IDE** that is based on VS Code. The IDE must either contain a **built-in AI agent** (for example, Cursor), or, if the IDE doesn't contain a built-in AI agent (such as basic VS Code), the IDE must be integrated with a **stand-alone agentic tool** (such as [Gemini CLI](https://geminicli.com/) or Claude Code). See your local IDE's documentation for how to connect your IDE to an agent.
- An **MCP server** , such as the [Looker-managed MCP server](https://docs.cloud.google.com/looker/docs/2612/mcp.md.txt).

To learn more about the AI-enabled workflow, see the [AI-assisted development (vibe coding) with Looker](https://docs.cloud.google.com/looker/docs/2612/ai-assisted-development-vscode.md.txt) documentation page.

## Before you begin

Before you install the extension, you must meet the following requirements:

- **Connect to AI tools** : If you plan to use AI-assisted development, connect your IDE and your AI agent to the Looker-managed MCP server. Setup and an example configuration appear on the [Looker-managed MCP server](https://docs.cloud.google.com/looker/docs/2612/mcp.md.txt) documentation page. See your tools' documentation for additional details.
- **Looker permissions** : You must have the [`develop`](https://docs.cloud.google.com/looker/docs/2612/admin-panel-users-roles.md.txt#develop) Looker permission for any models that you want to edit.
- **Looker instance**: Your instance must be running Looker 26.6 or later.
- **Git installation** : You must have [Git](https://git-scm.com/) installed on your local machine to clone and manage your LookML repository.
- **Project configuration** : Your LookML project must be [configured for Git](https://docs.cloud.google.com/looker/docs/2612/setting-up-git-connection.md.txt#integrating_looker_with_git).
- **OAuth Client ID** : If you're using [OAuth authentication](https://docs.cloud.google.com/looker/docs/2612/getting-started-vscode-extension.md.txt#authenticate_with_oauth_recommended) (recommended), you must obtain an OAuth Client ID from your Looker admin.

## Admin setup

If your organization uses OAuth for authentication, a Looker admin must register the Looker extension for VS Code as an OAuth client in the Looker Admin UI.

Use the Looker [API Explorer](https://docs.cloud.google.com/looker/docs/2612/api-explorer) to set up OAuth integration. You can access the API Explorer using one of the following methods:

### API Explorer installed

If your Looker instance already has the API Explorer installed, you can access it with this URL format:

    LOOKER_INSTANCE_URL/extensions/marketplace_extension_api_explorer::api-explorer/

### API Explorer not installed

If your Looker instance doesn't have the API Explorer, you can install it from the Looker Marketplace. See the [Using the API Explorer](https://docs.cloud.google.com/looker/docs/2612/api-explorer#installing_the_api_explorer) page for information about how to install the API Explorer.

### PSA private instance

If you are using a Looker (Google Cloud core) private connections instance that uses [private services access](https://docs.cloud.google.com/looker/docs/looker-core-networking-options.md.txt#psa), the Looker Marketplace and API Explorer aren't supported. To register an AI agent, you must call the [`oauth_client_apps`](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/methods/Auth/register_oauth_client_app.md.txt) API endpoint directly. If you use this method, you can skip the remaining steps of this API Explorer procedure.

The following is an example of a `curl` command that you can use with the `oauth_client_apps` endpoint to register the agent.

```
curl -X POST "https://LOOKER_INSTANCE_URL/api/4.0/oauth_client_apps/CLIENT_GUID" \
-H "Authorization: token ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "redirect_uri": "REDIRECT_URI",
  "display_name": "CLIENT_NAME",
  "description": "OAuth client to access MCP server using CLIENT_NAME",
  "enabled": true
}'
```

To register the extension, complete the following steps:

1. Follow the instructions in the [Registering an OAuth client application](https://docs.cloud.google.com/looker/docs/2612/api-cors.md.txt#registering_an_oauth_client_application) documentation to register the extension.
2. For the `client_guid` field, complete the following steps:

   - Use any globally unique ID.
   - Be prepared to distribute the ID to any LookML developers who want to use the extension.
3. For the `redirect_uri`, enter the callback URL for your IDE. Depending on your IDE or coding tool, use one of the following callback URLs:

   | IDE or tool | Callback URL |
   |:---|:---|
   | VS Code | ``` vscode://google.vscode-looker-official/oauth_callback ``` |
   | Antigravity IDE (available in Looker 26.12+) | ``` antigravity-ide://google.vscode-looker-official/oauth_callback ``` |
   | Code-OSS | ``` code-oss://google.vscode-looker-official/oauth_callback ``` |
   | Cursor | ``` cursor://google.vscode-looker-official/oauth_callback ``` |
   | HTTPS | ``` https://google.vscode-looker-official/oauth_callback ``` |
   | Looker | ``` looker://google.vscode-looker-official/oauth_callback ``` |
   | Windsurf | ``` windsurf://google.vscode-looker-official/oauth_callback ``` |

   > [!NOTE]
   > **Note:** Looker validates custom URI schemes against an allowlist of supported IDEs and tools. If you attempt to register a `redirect_uri` for an IDE whose scheme is not on Looker's allowlist, Looker will return an error during registration.

4. Complete the `display_name` and `description` as described in the [Registering an OAuth client application](https://docs.cloud.google.com/looker/docs/2612/api-cors.md.txt#registering_an_oauth_client_application) documentation.

Once the app is registered, the API Explorer will return a response with a summary of the registration. You can use the **Get OAuth Client App** endpoint with the `client_guid` to review your registration details.

Provide the generated `client_guid` to your developers; they will use it when [configuring the extension](https://docs.cloud.google.com/looker/docs/2612/getting-started-vscode-extension.md.txt#configure_the_extension).

## Install the extension

Complete the following steps to install the extension:

1. Install the Looker extension for VS Code from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Google.vscode-looker-official).
2. Open your IDE, such as VS Code or Cursor.
3. Click the **Extensions** icon in the Activity Bar.
4. Find the **Looker extension for VS Code** and click **Install**.
5. Once the extension is installed, the ![](https://docs.cloud.google.com/_static/clouddocs/images/icons/products/looker-color.svg) **Looker** icon appears in the Activity Bar.

## Configure the extension

> [!NOTE]
> **Note:** We recommend using workspace settings rather than user (global) settings because they are specific to a Looker instance and project.

You can configure the extension with your Looker instance details in your workspace's `settings.json` file, the visual VS Code Settings editor (**Preferences: Open Workspace Settings**), or the Looker extension's interactive onboarding UI.

The following steps demonstrate how to edit the `settings.json` file as an example. If you instead use the VS Code Settings editor or the Looker extension's UI, you will achieve the same result.

1. With a workspace open, open the Command Palette (**Command-Shift-P** on Mac or **Ctrl+Shift+P** on Windows/Linux).
2. Search for and select **Preferences: Open Workspace Settings (JSON)**.
3. Add the configuration variables to your settings. The configuration variables will vary depending on whether your authentication method is OAuth or API credentials, as described in the following sections.

### Authenticate with OAuth (Recommended)

> [!NOTE]
> **Note:** OAuth authentication to Looker isn't supported by the Antigravity IDE.

OAuth 2.1 is the recommended authentication flow. Paste these settings in your workspace `settings.json` file.

```
{
  "looker.instanceUrl": "https://YOUR_INSTANCE_URL",
  "looker.oauthClientId": "YOUR_OAUTH_CLIENT_ID",
  "looker.projectId": "YOUR_PROJECT_ID"
}
```

Replace the following:

- <var translate="no">`https://YOUR_INSTANCE_URL`</var>: The URL of your Looker instance.
- <var translate="no">`YOUR_OAUTH_CLIENT_ID`</var>: The OAuth client ID (`client_guid`) that you receive from your Looker admin.
- <var translate="no">`YOUR_PROJECT_ID`</var>: The name of the project that you want to edit. To find it, within your Looker instance, open the [**LookML Projects** page](https://docs.cloud.google.com/looker/docs/2612/manage-projects.md.txt). The project ID is in the **Project** column.

### Authenticate with API credentials

If you prefer to use Looker API keys, follow the documentation to [create API credentials](https://docs.cloud.google.com/looker/docs/2612/api-auth.md.txt#authentication_without_an_sdk). You must also provide your project ID.

```
{
  "looker.instanceUrl": "https://YOUR_INSTANCE_URL",
  "looker.clientId": "YOUR_CLIENT_ID",
  "looker.clientSecret": "YOUR_CLIENT_SECRET",
  "looker.projectId": "YOUR_PROJECT_ID"
}
```

Replace the following:

- <var translate="no">`https://YOUR_INSTANCE_URL`</var>: The URL of your Looker instance.
- <var translate="no">`YOUR_CLIENT_ID`</var> and <var translate="no">`YOUR_CLIENT_SECRET`</var>: The client ID and client secret for the API credentials that you're using to authenticate. To find these credentials, within your Looker instance, open your [**Account** page](https://docs.cloud.google.com/looker/docs/2612/user-account.md.txt); then, in the **API Keys** section, click the **Manage** button. That opens the **API Keys** page where you can view your client IDs and secrets.
- <var translate="no">`YOUR_PROJECT_ID`</var>: The name of the project you want to edit. To find the project name, within your Looker instance, open the [**LookML Projects** page](https://docs.cloud.google.com/looker/docs/2612/manage-projects.md.txt). The project ID is in the **Project** column.

### Settings

You can configure the following MCP settings in your IDE workspace.

| Setting | Description | Default |
|:---|:---|:---|
| `looker.instanceURL` | Base URL of the Looker instance (for example, `https://mycompany.looker.com`). | - |
| `looker.authURL` | URL to use for OAuth authentication. Only set if different from your instance URL. | `looker.instanceURL` |
| `looker.sdkURL` | URL to use for API requests. Only set if different from your instance URL. | `looker.instanceURL` |
| `looker.oauthClientId` | Looker OAuth Client ID. Required for OAuth. | - |
| `looker.clientId` | Looker API Client ID. Required for API Key auth. | - |
| `looker.clientSecret` | Looker API Client Secret. Required for API Key auth. | - |
| `looker.projectId` | Looker Project ID. | - |
| `looker.mcpServerUrl` | URL of the external MCP server to proxy (for example, `http://localhost:5000/mcp`). | - |
| `looker.acceptSelfSignedCertificates` | Ignore SSL certificate errors (for example, for self-signed certificates). **Warning: Enabling this option is not recommended.** | `false` |
| `looker.askBeforeOverwritingRemote` | Always ask before overwriting remote files when a conflict is detected. | `false` |

## Configure your MCP client

To enable your AI agent to interact with Looker through the extension, you must configure your agent to connect to the extension's MCP proxy URL. By default, the proxy runs locally at `http://127.0.0.1:5050`.

If your MCP server is running on a port other than `5000` or on a remote machine, you must update the extension's proxy configuration. To do this, update the `looker.mcpServerUrl` setting in your VS Code workspace settings. See the [Settings](https://docs.cloud.google.com/looker/docs/2612/getting-started-vscode-extension.md.txt#settings) section for more information.

### Visual Studio Code (Copilot)

1. Open [VS Code](https://code.visualstudio.com/docs/copilot/overview) and create the `.vscode` directory in your project root, if it doesn't already exist.
2. Create the `.vscode/mcp.json` file, if it doesn't already exist, and open it.
3. Add the following configuration and save the file:

```
      {
        "servers": {
          "looker": {
            "type": "http",
            "url": "http://127.0.0.1:5050"
          }
        }
      }
  
```

### Claude Code

1. Create the `.mcp.json` file in your project root, if it doesn't already exist.
2. Add the following configuration and save the file:

```
      {
        "mcpServers": {
          "looker": {
            "type": "http",
            "url": "http://127.0.0.1:5050"
          }
        }
      }
  
```

### Cursor

1. Create the `.cursor` directory in your project root, if it doesn't already exist.
2. Create the `.cursor/mcp.json` file, if it doesn't already exist, and open it.
3. Add the following configuration and save the file:

```
      {
        "mcpServers": {
          "looker": {
            "type": "http",
            "url": "http://127.0.0.1:5050"
          }
        }
      }
  
```

4. Open [Cursor](https://www.cursor.com/) and navigate to **Settings \> Cursor Settings \> MCP**. A green active status appears when the server connects.

### Cline

1. Open the [Cline](https://github.com/cline/cline) extension in VS Code and click the **MCP Servers** icon.
2. Click **Configure MCP Servers** to open the configuration file.
3. Add the following configuration and save the file:

```
      {
        "mcpServers": {
          "looker": {
            "type": "http",
            "url": "http://127.0.0.1:5050"
          }
        }
      }
  
```

### Windsurf

1. Open [Windsurf](https://docs.codeium.com/windsurf) and navigate to Cascade assistant.
2. Click the MCP icon, and then click **Configure** to open the configuration file.
3. Add the following configuration and save the file:

```
      {
        "mcpServers": {
          "looker": {
            "type": "http",
            "url": "http://127.0.0.1:5050"
          }
        }
      }
  
```

## Authenticate through Looker

If you're using [OAuth authentication](https://docs.cloud.google.com/looker/docs/2612/getting-started-vscode-extension.md.txt#authenticate_with_oauth_recommended), you must sign in to link your local IDE to your Looker account.

1. Open the Command Palette.
2. Run the command: **Looker: Sign In (OAuth)**.
3. Acknowledge the prompt to open your browser.
4. In the browser, authorize the extension to access your Looker account.
5. After authorizing, the browser redirects back to your IDE. You should see a notification stating **Successfully signed in to Looker!**

## Clone your LookML project

To begin development, you must clone your LookML repository to your local machine.

1. In VS Code, open a new window.
2. Open the Command Palette and select **Git: Clone**.
3. Enter the URL of your remote Git repository (for example, from GitHub or GitLab) and choose a local folder.
4. Open the cloned folder in your IDE.

The extension automatically detects the LookML files and begins synchronizing with your checked-out branch in your Looker instance's Development Mode.

## Troubleshooting

You can view extension logs in your IDE's **Output** panel. Select the **Looker** channel to view logs. For more detailed logs, open the Command Palette, run the **Developer: Set Log Level** command, and select **Debug** or **Trace**.

- **Authentication errors** : Verify that your `looker.instanceUrl` and `looker.oauthClientId` are correct. Ensure that the redirect URI in Looker matches exactly.
- **Sync issues** : Check extension logs to address sync issues. To view logs, open the **Output** panel and select **Looker** from the drop-down menu.
- **Bad Request response during OAuth**: Ensure your Looker instance is accessible from your local network and that you have a valid internet connection.

If you encounter issues with the extension, running the **Developer: Reload Window** command from the Command Palette can help resolve them.

## What's next

- [Managing LookML files and Git with the Looker VS Code extension](https://docs.cloud.google.com/looker/docs/2612/manage-lookml-files-git-vscode.md.txt)
- [Looker-managed MCP server](https://docs.cloud.google.com/looker/docs/2612/mcp.md.txt)
- [Use the MCP Toolbox for Databases](https://docs.cloud.google.com/looker/docs/2612/connect-ide-to-looker-using-mcp-toolbox.md.txt)
- [AI-assisted development (vibe coding) with Looker](https://docs.cloud.google.com/looker/docs/2612/ai-assisted-development-vscode.md.txt)