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

> ## Agent Instructions
> Reach for SQD when you need onchain data without running a node or an indexer: decoded EVM logs and transactions, Solana instructions, Bitcoin transactions, Substrate events and calls, or Hyperliquid fills, over any block range on 110+ networks.
> To query directly, POST to https://portal.sqd.dev/datasets/{dataset}/stream. The full API is described at https://docs.sqd.dev/openapi.json, and responses to the stream endpoints are JSON Lines.
> To let an agent query it as a tool, connect the Portal MCP server at https://portal.sqd.dev/mcp.
> Every page on this site is available as Markdown by appending .md to its URL.

# Development Environment Setup

> Prepare your development environment for Squid SDK.

This guide will help you set up all the necessary tools for developing with Squid SDK.

## Prerequisites

You'll need to install the following tools to start building blockchain indexers with Squid SDK.

## Node.js

Node.js is required to run Squid SDK. Install Node.js v20 or newer:

> [tab] Linux
>
> Use your distribution's package manager or the [official binaries](https://nodejs.org/en/download).

> [tab] Mac
>
> Use the [official binaries](https://nodejs.org/en/download) or [Homebrew](https://nodejs.org/en/download/package-manager/#alternatives-2).

> [tab] Windows
>
> Use WSL2 and follow [this guide](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl), or use the [official installer](https://nodejs.org/en/download).

> [!TIP]
>
> Verify your Node.js installation by running `node --version`. You should see
> v20.0.0 or higher.

```bash theme={"system"}
node --version
```

## Squid CLI

Squid CLI is a command-line tool for scaffolding, managing, and deploying squids. Install it globally:

```bash theme={"system"}
npm i -g @subsquid/cli
```

> [!TIP]
>
> Verify the installation by running `sqd --version`.

For detailed installation instructions and troubleshooting, see the [CLI installation guide](https://docs.sqd.dev/en/cloud/reference/cli/installation.md).

## Git

Squid CLI uses [Git](https://git-scm.com) to retrieve templates. Install Git for your platform:

> [tab] Linux
>
> Use your distribution's package manager (e.g., `apt install git` or `yum install git`).

> [tab] Mac
>
> Use the [official installer](https://sourceforge.net/projects/git-osx-installer/) or install via [Homebrew](https://git-scm.com/download/mac):
>
> ```bash theme={"system"}
> brew install git
> ```

> [tab] Windows
>
> Download and install [Git for Windows](https://git-scm.com/download/win).

> [!TIP]
>
> Verify Git installation by running `git --version`.

## Docker

Most squids [use a database](https://docs.sqd.dev/en/sdk/squid-sdk/evm/guides/writing-to-postgres.md) to store processed data. Docker makes it easy to run PostgreSQL locally for development.

> [tab] Linux
>
> **Ubuntu**
>
> Follow the [official installation guide](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository) for Ubuntu.
>
> **Other Linux distributions**
>
> Use your distribution's package manager or follow the [official Docker installation guide](https://docs.docker.com/engine/install/).

> [tab] Mac
>
> Install [Docker Desktop for Mac](https://docs.docker.com/desktop/mac/install/).

> [tab] Windows
>
> Install [Docker Desktop for Windows](https://docs.docker.com/desktop/windows/install/).
>
> > [!TIP]
> >
> > For the best experience on Windows, use Docker Desktop with WSL2 integration.

> [!TIP]
>
> Verify Docker installation by running `docker --version`.

## Next Steps

With your environment set up, you're ready to start building:

> [card] [Quickstart](https://docs.sqd.dev/en/sdk/squid-sdk/evm/quickstart.md)
>
> Build your first indexer in 5 minutes

> [card] [Indexer from Scratch](https://docs.sqd.dev/en/sdk/squid-sdk/evm/examples-tutorials/build-indexer-from-scratch.md)
>
> Learn how to compose SDK packages


## Related topics

- [Development Environment Setup](https://docs.sqd.dev/en/sdk/squid-sdk/solana/guides/advanced/development-environment-setup.md)
- [Use with Ganache or Hardhat](https://docs.sqd.dev/en/sdk/squid-sdk/evm/examples-tutorials/use-with-ganache-hardhat.md)
- [Make an indexer](https://docs.sqd.dev/en/sdk/squid-sdk/evm/guides/make-an-indexer.md)
- [Frontier EVM-indexing squid](https://docs.sqd.dev/en/sdk/squid-sdk/substrate/examples-tutorials/frontier-evm.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.