SDKs
Rekall provides first-class SDKs for TypeScript, Python, and Go. Choose the right SDK for your use case -- from a full offline-first agent SDK to a lightweight REST client.
Overview
All SDKs communicate with the Rekall API at https://api.rekall.ai/v1. The Agent SDKs (TypeScript, Python, Go) include local storage, cloud sync, and agent lifecycle management. The TypeScript Client is a thin REST wrapper for server-side or lightweight integrations that do not need local state.
Which SDK should I start with?
If you are building an AI agent that needs persistent memory across sessions, use one of the Agent SDKs. If you just need to call the API from a backend service or script, use the TypeScript Client or call the REST API directly.
SDK Comparison
| Feature | TS Agent SDK | TS Client | Python SDK | Go SDK |
|---|---|---|---|---|
| Package | @rekall/agent-sdk | @rekall/client | rekall-agent-sdk | rekall-agent-sdk |
| Language | TypeScript / JavaScript | TypeScript / JavaScript | Python 3.9+ | Go 1.21+ |
| Local Storage | SQLite | None | SQLite | SQLite |
| Cloud Sync | Yes | N/A (API only) | Yes | Yes |
| Offline Mode | Yes | No | Yes | Yes |
| Agent Lifecycle | Full | API calls | Full | Full |
| Memory Operations | Full + local cache | Full (remote) | Full + local cache | Full + local cache |
| Entity Management | Yes | Yes | Yes | Yes |
| Bundle Size | ~120 KB (+ SQLite) | ~8 KB | N/A | N/A |
When to Use Which SDK
Agent SDKs (TypeScript, Python, Go)
Use an Agent SDK when you are building an AI agent that needs persistent memory, offline capability, and automatic cloud sync. The Agent SDKs manage local SQLite storage and handle sync conflicts transparently.
- check_circleAutonomous agents with long-running sessions
- check_circleOffline-first or intermittent connectivity environments
- check_circleMulti-agent systems with shared hive memory
- check_circleComplex agent lifecycle management (spawn, message, terminate)
TypeScript Client (@rekall/client)
Use the lightweight client when you need a thin, typed wrapper around the REST API without local storage overhead. Ideal for server-side services, scripts, or dashboards.
- check_circleBackend services or API routes
- check_circleAdmin dashboards and monitoring tools
- check_circleOne-off scripts and data migrations
- check_circleEnvironments where minimal bundle size matters
Installation Quick Reference
npm install @rekall/agent-sdk
import { RekallAgent } from '@rekall/agent-sdk';const agent = new RekallAgent({apiKey: process.env.REKALL_API_KEY!,agentId: 'my-agent',storage: { path: './rekall.db' },});await agent.initialize();
SDK Documentation
TypeScript Agent SDK
@rekall/agent-sdk
Full-featured agent SDK with local SQLite storage, cloud sync, agent lifecycle management, and offline-first architecture.
TypeScript Client
@rekall/client
Lightweight REST client. Thin wrapper around the Rekall API with full type safety. No local storage -- ideal for server-side and simple use cases.
Python SDK
rekall-agent-sdk
Async-first Python SDK with agent lifecycle, memory operations, entity management, and full type hints.
Go SDK
github.com/rekall-ai/rekall-go
Goroutine-safe Go SDK with context-based APIs, builder patterns, and struct-typed responses.
