AgentSea

Getting started

Installation

Install the AgentSea packages in a Node.js project, then set the API keys your providers need.

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.

BASH
# pnpm (recommended)
pnpm add @lov3kaizen/agentsea-core

# npm
npm install @lov3kaizen/agentsea-core

# yarn
yarn add @lov3kaizen/agentsea-core

Note

Types are re-exported from @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.

BASH
# 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 components

04NestJS 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.

BASH
# Core and NestJS packages
pnpm add @lov3kaizen/agentsea-core @lov3kaizen/agentsea-nestjs

# Peer dependencies
pnpm add @nestjs/common @nestjs/core reflect-metadata rxjs

The 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_KEY
Key for AnthropicProvider.
OPENAI_API_KEY
Key for OpenAIProvider.
GEMINI_API_KEY
Key for GeminiProvider. GOOGLE_API_KEY is also read.
OLLAMA_BASE_URL
Server for OllamaProvider. Defaults to http://localhost:11434.
ENV
ANTHROPIC_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:11434

Warning

Never commit API keys to version control. Add .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.

TS
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.