> For the complete documentation index, see [llms.txt](https://docs.datasaur.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasaur.ai/integrations/external-object-storage/google-drive.md).

# Google Drive

Connect your Google Drive with Datasaur. Once connected, you can access and use files from Google Drive directly within your LLM Labs projects and workflows.

{% hint style="info" %}
**Google Drive** external object storage is currently available only for [LLM Labs](/llm-projects/llm-introduction.md).
{% endhint %}

## Prerequisites

You need the **Shared Drive ID** before starting.

1. Open [Google Drive](https://drive.google.com/).
2. In the left-hand menu, click **Shared drives** and open the specific drive you want to connect.
3. Copy the Drive ID from the URL. The ID is the long string of characters at the end.

   * Example URL:

   ```
   https://drive.google.com/drive/u/0/folders/0A-bCdEfGhIjKlMnOpQrStUvWxYzC
   ```

   * In this example, the Shared Drive ID is:

   ```
   0A-bCdEfGhIjKlMnOpQrStUvWxYzAbC
   ```
4. Save this ID. You will need it later.

## Setup

1. Open the **Settings** page from the sidebar.
2. Go to the **External object storage** section and click **Add external object storage**.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-499063e32cfe2c5721443fa985059f2ad87c372d%2FEOS%20-%20manage%20external%20object%20storage%20-%20AWS%20GCS%20Azure%20Dropbox.png?alt=media" alt=""><figcaption></figcaption></figure>
3. Select **Google Drive**.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-2944072d2181170d417c928363de5867eea24b17%2FEOS%20-%20manage%20external%20object%20storage%20-%20Add%20external%20object%20storage%20dialog.png?alt=media" alt=""><figcaption></figcaption></figure>
4. Paste the **Shared Drive ID** you copied earlier into the input field.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-ca13ea442378159337f5040e5c3df357f21d1a97%2FEOS%20-%20Google%20Drive%20-%20dialog%20-%20initial.png?alt=media" alt=""><figcaption></figcaption></figure>
5. Click **Authorize**.
6. You will be redirected to Google’s account selection page. Select the Google account with access to the shared drive.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-a659387185d078cbb87f0ee8704c839d2ceb2ea0%2FEOS%20-%20Google%20Drive%20-%20choose%20an%20account.png?alt=media" alt=""><figcaption></figcaption></figure>
7. Click **Allow** to grant Datasaur permission to access your files. This is necessary for our app to read the files from your drive and use them in LLM Labs.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-0dc7deb5d78cafeab3d10ffe77095205cd0697d0%2FEOS%20-%20Google%20Drive%20-%20allow%20access.png?alt=media" alt=""><figcaption></figcaption></figure>
8. After authorization, you will be redirected back to Datasaur, and your Google Drive will appear in the list of connected storage.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-64cc27c2de287ef918714897414d629a601b2281%2FEOS%20-%20manage%20external%20object%20storage%20-%20AWS%20GCS%20Azure%20Dropbox%20Drive.png?alt=media" alt=""><figcaption></figcaption></figure>

### "Unverified app" warning

If you see a message saying *“Google hasn’t verified this app”*, this is expected.

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-08e3630a20252891129e829556c2a78ebb2aa214%2FEOS%20-%20Google%20Drive%20-%20not%20verified%20warning.png?alt=media" alt=""><figcaption></figcaption></figure>

To continue:

1. Click **Advanced**.
2. Click **Go to Datasaur (unsafe)**.
