01Requirements
- Node.js 20 or later. Node 18 is no longer supported as of v1.0.1.
- TypeScript 5.0 or later (recommended).
- A package manager: pnpm, npm or yarn.
02Core package
The core package holds the Agent, provider, tool and memory classes. Install it with your package manager.
# pnpm (recommended)
pnpm add @lov3kaizen/agentsea-core
# npm
npm install @lov3kaizen/agentsea-core
# yarn
yarn add @lov3kaizen/agentsea-coreNote
@lov3kaizen/agentsea-core. The dedicated types package is also available: pnpm add @lov3kaizen/agentsea-types.For the terminal, install the CLI globally with pnpm add -g @lov3kaizen/agentsea-cli. It installs the sea command. Start an interactive coding session with sea code.
03Add-on packages
AgentSea is a modular monorepo. Install only the packages you need. Each is published under the @lov3kaizen/agentsea-* scope and is framework-agnostic.
# Orchestration and routing
pnpm add @lov3kaizen/agentsea-crews # Multi-agent crews
pnpm add @lov3kaizen/agentsea-gateway # LLM gateway and routing
# Data and retrieval
pnpm add @lov3kaizen/agentsea-memory # Advanced memory stores
pnpm add @lov3kaizen/agentsea-embeddings # Vector embeddings
pnpm add @lov3kaizen/agentsea-cache # Semantic response cache
pnpm add @lov3kaizen/agentsea-structured # Zod structured output
pnpm add @lov3kaizen/agentsea-ingest # Document ingestion
pnpm add @lov3kaizen/agentsea-prompts # Prompt management
# Safety and evaluation
pnpm add @lov3kaizen/agentsea-guardrails # Safety and validation
pnpm add @lov3kaizen/agentsea-evaluate # LLM evaluation
pnpm add @lov3kaizen/agentsea-redteam # Red teaming
# Observability and operations
pnpm add @lov3kaizen/agentsea-analytics # Conversation analytics
pnpm add @lov3kaizen/agentsea-costs # Cost tracking
pnpm add @lov3kaizen/agentsea-debugger # Agent debugger
# Automation and UI
pnpm add @lov3kaizen/agentsea-surf # Computer-use agent
pnpm add @lov3kaizen/agentsea-react # React components04NestJS integration
For a NestJS app, install the NestJS integration with the core package. The integration needs @nestjs/common and @nestjs/core version 10 or 11.
# Core and NestJS packages
pnpm add @lov3kaizen/agentsea-core @lov3kaizen/agentsea-nestjs
# Peer dependencies
pnpm add @nestjs/common @nestjs/core reflect-metadata rxjsThe NestJS guide covers the AgenticModule setup.
05API keys and environment
Each provider reads its key from the environment when no key is passed to its constructor. Create a .env file in your project root, or export the variables in your shell.
ANTHROPIC_API_KEYOPENAI_API_KEYGEMINI_API_KEYOLLAMA_BASE_URLANTHROPIC_API_KEY=your_anthropic_key
OPENAI_API_KEY=your_openai_key
GEMINI_API_KEY=your_gemini_key
# Optional, for local models
OLLAMA_BASE_URL=http://localhost:11434Warning
.env to your .gitignore file.06Verify the install
Save a short script that creates an agent and runs one prompt. Run it with npx tsx. The Getting started page has complete examples for cloud and local models.
import { Agent, AnthropicProvider, ToolRegistry } from '@lov3kaizen/agentsea-core';
const agent = new Agent(
{ name: 'test-agent', description: 'Install check', model: 'claude-opus-4-8', provider: 'anthropic' },
new AnthropicProvider(process.env.ANTHROPIC_API_KEY),
new ToolRegistry(),
);
const response = await agent.execute('Hello!', { conversationId: 'test-123', sessionData: {}, history: [] });
console.log(response.content);07Next steps
- Quick start: a walkthrough from a first agent to tools, MCP servers and workflows.
- Agents: how to create and configure agents.
- Examples: runnable examples for each feature.