Get Started with CLS++

Add persistent memory to your AI app in 3 minutes. Your users' preferences, corrections, and facts follow them across every model.

1

Change One Line — Get Memory Instantly

Already using OpenAI or Anthropic? Just change the base_url. No SDK, no install, no new code. Your app gets persistent memory across every session.

# Before (no memory): client = OpenAI() # After (persistent memory forever): client = OpenAI(base_url="http://localhost:8181/v1") # That's it. Same code. Every conversation now remembered. response = client.chat.completions.create( model="gpt-4", messages=[{"role": "user", "content": "I prefer Python"}] ) # Next session, GPT-4 already knows the user prefers Python.
2

Want More Control? Use the Brain SDK

For developers who want to learn/ask/forget programmatically.

pip install git+https://github.com/rajamohan1950/CLSplusplus.git
from clsplusplus import Brain brain = Brain("alice") brain.learn("Works at Google as a senior engineer") brain.learn("Prefers Python and VS Code") brain.ask("Where does she work?") # → ["Works at Google as a senior engineer"] brain.context("coding help") # → "Known facts about this user:\n- Works at Google...\n- Prefers Python..." # 11 methods: learn, ask, context, forget, wrap, absorb, teach, watch, correct, chat, who
3

Try It Right Here

Test memory in your browser. No install needed.