> ## Documentation Index
> Fetch the complete documentation index at: https://docs.peaq.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Installing peaq SDK

The quickest way to get started building on peaq is to use one of our prebuilt SDKs. They offer robust capabilities in DID, RBAC, and Storage - all communicated via the peaq blockchain. Please checkout
the official [SDK Reference](/peaqchain/sdk-reference/home) for more detailed information.

## Prerequisite:

* [Node.js](https://nodejs.org/en/download/package-manager) version at least 16.x, recommended to use the latest one.

## Installation:

Create a new JavaScript project and follow the steps below to set up a new instance of the peaq sdk.

<Steps>
  <Step title="Create a Node.js project">
    Run command`npm init -y` to create a Node.js project.
  </Step>

  <Step title="Install the SDK">
    <CodeGroup>
      ```bash npm theme={"theme":{"light":"github-light-default","dark":"github-dark"}}
      npm i @peaq-network/sdk
      ```

      ```bash yarn theme={"theme":{"light":"github-light-default","dark":"github-dark"}}
      yarn add @peaq-network/sdk
      ```
    </CodeGroup>
  </Step>

  <Step title="Enable ES Modules">
    In the `package.json`file,  add `"type": "module"` to enable ES Modules.
  </Step>

  <Step title="Create a JavaScript file">
    Create a new `.js` file.
  </Step>

  <Step title="Write your code">
    Write the JavaScript code that interacts with the SDK.
  </Step>

  <Step title="Execute your code">
    Run command: `node file_name.js` to execute.
  </Step>
</Steps>

After completing these steps the peaq sdk will have been successfully installed at your local Javascript Project. For more information about the capabilities it offers checkout the [JavaScript SDK Reference](/peaqchain/sdk-reference/javascript).

# Python SDK Quickstart

## Prerequisite:

* [Python](https://www.python.org/downloads/) Version 3.8+ installed on your system.

## Installation:

<Steps>
  <Step title="Setup Virtual Environment">
    Mac/Linux:

    ```bash npm theme={"theme":{"light":"github-light-default","dark":"github-dark"}}
    python -m venv peaq
    source peaq/bin/activate
    ```

    Windows:

    ```bash npm theme={"theme":{"light":"github-light-default","dark":"github-dark"}}
    python -m venv peaq
    peaq\Scripts\activate
    ```
  </Step>

  <Step title="Install the SDK">
    <CodeGroup>
      ```bash npm theme={"theme":{"light":"github-light-default","dark":"github-dark"}}
      pip install peaq-sdk==0.2.1
      ```
    </CodeGroup>
  </Step>

  <Step title="Setup Requirements.txt">
    <CodeGroup>
      ```bash npm theme={"theme":{"light":"github-light-default","dark":"github-dark"}}
      touch requirements.txt
      ```
    </CodeGroup>

    Add `python-dotenv==1.1.0` to this file to enable environment variables. Install with `pip install -r requirements.txt`.
  </Step>

  <Step title="Create a Python file">
    Create a new `.py` file.
  </Step>

  <Step title="Write your code">
    Write Python code that interacts with the SDK.
  </Step>

  <Step title="Execute your code">
    Run command: `python file_name.py` to execute.
  </Step>
</Steps>

For more information about the Python SDK, take a look at the [Python SDK Reference](/peaqchain/sdk-reference/python).
