Skip to main content

Introduction to Trix

Give your AI agents persistent memory with a simple API. Remember context across sessions, recall relevant information semantically, and create truly personalized experiences.

The Problem: AI Without Memory

Every conversation with your AI starts from scratch. Users repeat themselves. Context is lost. Personalization is impossible. Your AI can process millions of tokens, but it can't remember that a user prefers dark mode or mentioned their dog's name yesterday.

Without Memory

"Hi, I'm Alex. I work in fintech and prefer Python."

...next session...

"What's your name? What industry are you in?"

With Trix

"Hi, I'm Alex. I work in fintech and prefer Python."

...next session...

"Welcome back, Alex! Ready to continue with your Python fintech project?"

The Solution: Trix Memory API

Trix is a Memory-as-a-Service API purpose-built for AI applications. Add persistent, semantic memory to any LLM with a simple SDK. Create memories, search them semantically, and organize them with spaces and clusters.

No vector databases to configure. No embeddings to manage. No infrastructure to maintain. Just a simple API that makes your AI remember.

Get started in 5 minutes. Install the SDK, add your API key, and your AI has memory. See the Quick Start guide.

What You Can Build

AI Assistants

Remember user preferences, past conversations, and learned context.

Autonomous Agents

Agents that learn from experience. Store strategies, remember failures, improve over time.

Personalized Experiences

AI that knows each user. Tone, expertise level, past interactions — instant recall.

Knowledge Management

Ingest documents, conversations, and data. Recall relevant context automatically.

See It in Action

A complete example in under 20 lines:

Trix provides a resource API (memories.create()/memories.list()) for full control over memory operations. Available in all SDKs.

import { Trix } from '@trixdb/client';

const client = new Trix({ apiKey: 'your_api_key' });
const space = await client.spaces.create({ name: 'user_123' });

await client.memories.create({ content: 'User is building a trading bot', spaceId: space.id });
await client.memories.create({ content: 'User prefers async/await', spaceId: space.id });

const result = await client.memories.list({ q: 'What is the user working on?', spaceId: space.id });
const context = result.data.map(m => m.content).join('\n');

Works with Any LLM

Trix is LLM-agnostic. Use it with OpenAI, Anthropic, Google, Mistral, xAI (Grok), open-source models, or your own fine-tuned models.

Claude users: native MCP integration means zero-code memory.

Get Started