Quickstart
Store and search your first memory in 3 minutes.
Quickstart
Get from zero to your first API call in under 3 minutes.
1. Get Your API Key
Sign up at cerebe.ai/sign-up and create an API key from the Dashboard.
2. Install the SDK
pip install cerebenpm install @cerebe/sdkNo installation needed — use curl directly.
3. Store a Memory
from cerebe import AsyncCerebe
client = AsyncCerebe(api_key="YOUR_API_KEY")
await client.memory.add(
content="User prefers visual explanations over text",
user_id="user_123",
session_id="onboarding_session",
type="semantic",
importance=0.8,
)import Cerebe from '@cerebe/sdk'
const client = new Cerebe({ apiKey: 'YOUR_API_KEY' })
await client.memory.add({
content: 'User prefers visual explanations over text',
userId: 'user_123',
sessionId: 'onboarding_session',
type: 'semantic',
importance: 0.8,
})curl -X POST https://api.cerebe.ai/api/v1/memory/store \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "User prefers visual explanations over text",
"entity_id": "user_123",
"session_id": "onboarding_session",
"memory_type": "semantic",
"importance": 0.8
}'4. Search Memories
results = await client.memory.search(
query="What kind of explanations does the user like?",
session_id="later_session",
user_id="user_123",
)
print(results.data)
# → memories matching "visual explanations"const results = await client.memory.search({
query: 'What kind of explanations does the user like?',
sessionId: 'later_session',
userId: 'user_123',
})
console.log(results.data)
// → memories matching "visual explanations"curl -X POST https://api.cerebe.ai/api/v1/memory/search \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "What kind of explanations does the user like?",
"session_id": "later_session",
"entity_id": "user_123",
"limit": 5
}'Next Steps
- Authentication — Understand API keys, orgs, and projects
- Memory API — Full memory operations guide
- Knowledge Graph — Build and query knowledge graphs
- Python SDK — Complete Python SDK reference