# Installation / Importing

Adding [@delegatexyz/sdk](https://github.com/delegatexyz/delegate-javascript-sdk) to your project is just a single command.

```bash
npm install @delegatexyz/sdk viem
```

## Importing

{% code title="ES6 or Typescript" %}

```javascript
import { http } from "viem"
import { DelegateV1, DelegateV2 } from "@delegatexyz/sdk";
```

{% endcode %}

{% code title="NodeJS require" %}

```javascript
const { http } = require("viem");
const { DelegateV1, DelegateV2 } = require("@delegatexyz/sdk");
```

{% endcode %}


---

# Agent Instructions: 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:

```
GET https://docs.delegate.xyz/technical-documentation/javascript-sdk/installation-importing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
