> For the complete documentation index, see [llms.txt](https://exaprotocol.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://exaprotocol.gitbook.io/home/getting-started/install-sdk.md).

# Install SDK

Once you have set up your project's codebase, you can easily integrate the ExaDrive SDK into your application. The SDK is available as an npm package, providing a seamless installation process.

#### Install using npm

To install the ExaDrive SDK using npm, run the following command in your project directory:

```
// Install using npm

npm install exadrive-sdk
```

OR

#### Install using Yarn

If you prefer using Yarn as your package manager, you can install the ExaDrive SDK with this command:

```
// Install using yarn

yarn install exadrive-sdk
```

### Setting Up the SDK

After installing the package, you need to initialize the ExaDrive SDK in your application. This involves creating an instance of the ExaDrive object using your unique APP\_ID and API\_KEY.

#### Importing the SDK

First, import the ExaDrive class from the installed package:

```
import { ExaDrive } from 'exadrive-sdk';
```

#### Initializing the SDK

Create an instance of the ExaDrive object by providing your APP\_ID and API\_KEY:

```
const exaDrive = new ExaDrive(
      '<Your APP_ID>',
      '<Your API_KEY',
    );
```

Replace `'<Your APP_ID>'` and `'<Your API_KEY>'` with the actual credentials provided to you by ExaDrive.

Once initialized, you can use the `exaDrive` object to access various SDK functionalities throughout your application.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://exaprotocol.gitbook.io/home/getting-started/install-sdk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
