# Setup your development environment

Learn how to install and configure the gospace SDKs, set up your environment variables, and prepare your system for building and running API integrations.

{% tabs %}
{% tab title="Node.js" %}

### Prerequisites

* Node.js v18 LTS or newer
* npm v9+
* A valid gospace API key

### 1. Install Node.js and npm

Check your version:

```bash
node -v
npm -v
```

If you need to upgrade, download from [nodejs.org](https://nodejs.org/) or use a version manager:

```bash
nvm install 18
nvm use 18
```

### 2. Create a New Project

```bash
mkdir gospace-dev
cd gospace-dev
npm init -y
```

### 3. Install the gospace AI SDK

```bash
npm install @gospace-ai/api
```

### 4. Store Your API Key Securely

```bash
npm install dotenv
```

Create `.env`:

```env
GOSPACE_API_KEY=your_api_key_here
```

Load it in your code:

```ts
import "dotenv/config";
import GospaceAI from "@gospace-ai/api";

const gospace = new GospaceAI(process.env.GOSPACE_API_KEY!);
```

{% endtab %}
{% endtabs %}


---

# 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://developer.gospace.com/start-building/setup-your-development-environment.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.
