Skip to main content

Quick Start Guide

Get up and running with LanOnasis in 5 minutes.

Prerequisites

  • Node.js 18+ or Python 3.8+
  • An API key (get one from the Dashboard)

Installation

Choose your preferred SDK:

TypeScript/JavaScript

npm install @LanOnasis/memory-sdk

Python

pip install LanOnasis

Your First Memory

JavaScript Example

import { MemoryClient } from '@LanOnasis/memory-sdk';

const client = new MemoryClient({
apiKey: process.env.LANONASIS_API_KEY
});

// Create a memory
const memory = await client.memories.create({
content: 'My first memory!',
metadata: { importance: 'high' }
});

// Search memories
const results = await client.search({
query: 'first memory',
limit: 10
});

Python Example

from LanOnasis import MemoryClient

client = MemoryClient(api_key="your-api-key")

# Create a memory
memory = client.memories.create(
content="My first memory!",
metadata={"importance": "high"}
)

# Search memories
results = client.search(
query="first memory",
limit=10
)

Next Steps