Installation
Core AI is distributed as npm packages. Install the core package along with your preferred provider adapter.Requirements
- Node.js 22 or higher
- TypeScript 5.7+ (recommended)
Install the core package
Install a provider adapter
You need at least one provider adapter to use Core AI. Install the package for your preferred LLM provider:- OpenAI
- Anthropic
- Google GenAI
- Mistral
The OpenAI adapter supports chat completion, streaming, embeddings, and image generation with DALL-E.
Get API keys
You need an API key from your chosen provider. Set it as an environment variable:Verify installation
Create a simple test file to verify your installation:test.ts
Core AI uses ES modules (
"type": "module"). Make sure your package.json includes this or use .mts file extensions.