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 -v
If you need to upgrade, download from nodejs.org or use a version manager:
nvm install 18
nvm use 18
2. Create a New Project
mkdir gospace-dev
cd gospace-dev
npm init -y
3. Install the gospace AI SDK
npm install @gospace-ai/api
4. Store Your API Key Securely
npm install dotenv
Create .env
:
GOSPACE_API_KEY=your_api_key_here
Load 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?