Installation
Get an API key
Get your API key at app.xysq.ai/connect. It starts withxysq_.
Add it to a .env file in your project:
Your first memory
Core concepts
The SDK exposes two namespaces on every client:| Namespace | Purpose |
|---|---|
client.memory | All persistent memory — conversational facts, decisions, preferences, plus source-tagged links / quotes / code / chats |
client.organise | Folders + uploaded files (PDFs, images, long documents) |
| Method | What it does |
|---|---|
capture(content) | Store a memory permanently |
surface(query) | Retrieve the most relevant memories for a query |
synthesize(query) | Answer a natural language question from your memory bank |
capture() with tags=["source:knowledge", "source_type:link"] (or quote/code/chat) and put type-specific fields (url, title, location, language) in metadata. They surface alongside regular memories in surface() and synthesize().
Source code
The SDK is open source on GitHub: xysq-ai/sdk_python_xysq Includes examples, community contributions, and the full source. Issues and PRs welcome.What to explore next
Memory operations
Full reference for capture, surface, synthesize, list, delete, and status
Organise — folders & files
Upload PDFs, images, and long documents into a browsable folder tree
Team Vaults
Share memory across your entire team
XysqAgent & Integrations
Memory-aware agent wrapper with configurable context strategies and tool calling