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.
Prerequisites
Node.js v18 LTS or newer
npm v9+
A valid gospace API key
1. Install Node.js and npm
Check your version:
node -v
npm -vIf you need to upgrade, download from nodejs.org or use a version manager:
nvm install 18
nvm use 182. Create a New Project
mkdir gospace-dev
cd gospace-dev
npm init -y3. Install the gospace AI SDK
npm install @gospace-ai/api4. Store Your API Key Securely
npm install dotenvCreate .env:
GOSPACE_API_KEY=your_api_key_hereLoad it in your code:
import "dotenv/config";
import GospaceAI from "@gospace-ai/api";
const gospace = new GospaceAI(process.env.GOSPACE_API_KEY!);Last updated
Was this helpful?