Documentation

Welcome to ContextStream

ContextStream gives your AI tools persistent memory, semantic search, and knowledge graphs. Build context-aware applications that remember everything.

What is ContextStream?

ContextStream is a memory and context platform for AI tools. It provides:

  • 1
    Persistent Memory

    Store conversations, decisions, and context that persists across sessions

  • 2
    Semantic Search

    Search by meaning, not just keywords. Find relevant context instantly.

  • 3
    Knowledge Graphs

    Connect decisions, code, and documentation in a queryable graph

  • 4
    MCP Protocol

    Native integration with Claude, Cursor, Windsurf, and other AI tools

  • 5
    Token-Saving Tools

    Save ~80% on AI tokens with smart context retrieval instead of chat history

How It Works

# 1. Create a workspace
curl -X POST https://api.contextstream.io/api/v1/workspaces \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "my-project"}'

# 2. Store a memory
curl -X POST https://api.contextstream.io/api/v1/memory/events \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": "ws_xxx",
    "title": "Decided to use PostgreSQL",
    "content": "After evaluating options, chose PostgreSQL for..."
  }'

# 3. Search memories semantically
curl -X POST https://api.contextstream.io/api/v1/search/semantic \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"query": "database decisions", "search_type": "semantic"}'

Next Steps