Quickstart
Install the SDK and make your first Libra call.
1. Get an API key
Create a project API key in the console.
Keys look like lb-sk_…. Keep it in LIBRA_API_KEY.
2. Install the SDK
npm install @libra-memory/sdkThe libra CLI ships in the same package (npx libra --help).
3. Make a call
import { createMemoryClient } from "@libra-memory/sdk";
const memory = createMemoryClient({ apiKey: process.env.LIBRA_API_KEY });
await memory.add("I prefer window seats and vegetarian meals.", { userId: "u_123" });
const hits = await memory.search("what are my travel preferences?", { userId: "u_123" });
console.log(hits);Or with plain HTTP:
curl https://libra.rivastudio.ai/v3/memories/search/ \
-H "Authorization: Token $LIBRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"travel preferences","filters":{"user_id":"u_123"}}'Next steps
- Authentication — keys and scopes.
- Pick a product: Memory, Vector Database, Knowledge, Agents.