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

# Installation

> Install the JavaScript SDK with npm install @actian/vectorai-client.

The JavaScript SDK provides a TypeScript-first `VectorAIClient` for VectorAI DB over gRPC, plus REST-based auth/admin helpers.

## Prerequisites

| Requirement | Version |
| - | - |
| Node.js | 18 or higher |
| npm | 9 or higher |
| VectorAI DB | Running at `localhost:6574` by default |

## Install the SDK

```bash theme={null}
npm install @actian/vectorai-client
```

With yarn:

```bash theme={null}
yarn add @actian/vectorai-client
```

## Verify installation

Requires VectorAI DB running locally. See the [Docker setup guide](https://docs.vectoraidb.actian.com/home/installation/instructions.md) if you haven't done that yet.

Save the following as `health.ts` and run it with `npx tsx health.ts`.

```typescript theme={null}
import { VectorAIClient } from '@actian/vectorai-client';

const client = new VectorAIClient('localhost:6574');

try {
  const health = await client.healthCheck();
  console.log(`Server: ${health.title} v${health.version}`);
} finally {
  client.close();
}
```

For all client configuration options, see the [JavaScript SDK reference](https://docs.vectoraidb.actian.com/sdks/javascript/reference.md).

## Project setup

Create a TypeScript project and install the SDK.

```bash theme={null}
mkdir my-vectorai-app
cd my-vectorai-app
npm init -y
npm install @actian/vectorai-client
npm install --save-dev typescript tsx @types/node
npx tsc --init
```

## Troubleshooting

| Issue | Solution |
| - | - |
| `MODULE_NOT_FOUND` | Verify the SDK is installed with `npm ls @actian/vectorai-client`. |
| gRPC connection errors | Confirm VectorAI DB is reachable at `localhost:6574`. |
| Node.js version mismatch | Run `node --version`; the SDK requires Node.js 18 or later. |
| TypeScript module errors | Use an ESM-compatible setup and run examples with `tsx`. |

## Next steps

> [card] [Quickstart](https://docs.vectoraidb.actian.com/home/quickstart/quickstart.md)
>
> Create a collection, insert vectors, and run a search.

> [card] [JavaScript reference](https://docs.vectoraidb.actian.com/sdks/javascript/reference.md)
>
> Review namespaces, client options, filters, auth, batching, and errors.


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