Skip to content

Latest commit

 

History

History
89 lines (60 loc) · 1.19 KB

File metadata and controls

89 lines (60 loc) · 1.19 KB

Installation

Prerequisites

  • Node.js >= 18.0.0
  • npm >= 8.0.0 or pnpm >= 8.0.0
  • (Optional) Python >= 3.10 for Python server adapter

Install CLI

npm install -g @hari7261/ainative-cli

Create New Project

ainative init my-app
cd my-app

Install Dependencies

npm install
# or
pnpm install

Set Up Environment Variables

Create a .env file in your project root:

# OpenAI
OPENAI_API_KEY=sk-...

# Anthropic (optional)
ANTHROPIC_API_KEY=sk-ant-...

# Server port
PORT=3001

Start Development

# Terminal 1: Start AI server
npm run server

# Terminal 2: Start dev server
npm run dev

Manual Installation

If you prefer to set up manually:

Client

npm install @hari7261/ainative-client react react-dom

Node Server

npm install @hari7261/ainative-server-node express cors

Python Server

pip install ainative-server

Verify Installation

ainative doctor

This will check that all required dependencies are installed.

Next Steps