Tessera is a local-first tool that provides a memory layer for AI, designed to solve the problem of knowledge being lost after an AI conversation ends. Through a unified knowledge base, it enables AI such as Claude Desktop to persistently store and retrieve information, while also providing an HTTP API for scripts and automation tools to use.
Purpose
Tessera's core purpose is to serve as long-term memory storage for AI. Every AI conversation produces knowledge, but after the session ends this knowledge usually disappears. Tessera retains this knowledge, forming a searchable, maintainable knowledge base. It is suitable for AI application scenarios that require cross-session memory, such as personal knowledge management, automation scripts, and accessing a local knowledge base through ChatGPT custom GPT Actions.
Main Capabilities
- Hybrid Search and Reranking: Each search goes through four stages—query decomposition (splitting the query into 2-4 search angles), hybrid retrieval (vector similarity and keyword matching in parallel), reranking (LinearCombinationReranker merges results, with 70% semantic weight and 30% keyword weight), and verdict scoring (results are marked as confident match ≥45%, possible match 25-45%, low relevance <25%). When multiple versions of the same document exist, the latest version is preferred.
- Cross-Session Memory: Each memory is classified as a decision, preference, or fact, and is checked for duplicates against existing memories (cosine similarity threshold 0.92), receiving a confidence score (duplicate frequency 35%, recency 25%, source diversity 20%, category 20%). After setting TESSERA_VAULT_KEY, all memories use AES-256-CBC encryption. Tessera can automatically extract decisions, preferences, and facts from conversations, can be toggled via toggle_auto_learn, and review_learned can be used to view captured content.
- Contradiction Detection: Identifies contradictions between new and old memories, supporting English and Korean negation patterns.
- Self-Maintenance: Detects contradictions, scores confidence based on reinforcement frequency, flags outdated knowledge, and automatically merges near-duplicates.
- Zero Infrastructure: Usable with pip install; LanceDB and fastembed are embedded, requiring no Docker, database server, or API key.
- Encryption: After setting TESSERA_VAULT_KEY, all memories are encrypted at rest using AES-256-CBC.
- ChatGPT Integration: Connects through custom GPT Actions, requiring a tunnel (such as ngrok, Cloudflare Tunnel) to expose the local API. Requires the computer to be on, the API server running, and the tunnel active.
- Import and Export: Can import past ChatGPT conversations to extract knowledge; export as an Obsidian vault (wikilinks), Markdown, CSV, or JSON.
- Health Report: Each memory is marked as healthy, outdated (not reinforced for over 90 days), or orphaned (no metadata, no category), and growth is tracked.
- Event Hooks: Supports 7 event types: on_memory_created, on_memory_deleted, on_search, on_session_start, on_session_end, on_ingest_complete, on_contradiction_found.
- Supports 40+ file types.
Usage
- Installation: Install via pip; the first run downloads the embedding model (about 220MB) and configures Claude Desktop.
- Claude Desktop Configuration: uvx is recommended. Configuration file locations: macOS is ~/Library/Application Support/Claude/claude_desktop_config.json, Windows is %APPDATA%\Claude\claude_desktop_config.json. Running tessera setup creates workspace.yaml, or set TESSERA_WORKSPACE=/path/to/docs to skip the configuration file.
- Environment Variables: TESSERA_API_KEY enables API authentication; TESSERA_VAULT_KEY enables AES-256 encryption.
- HTTP API: 58 REST endpoints, Swagger UI located at http://127.0.0.1:8394/docs,可选认证通过 TESSERA_API_KEY environment variable.
- CLI: 11 commands.
- ChatGPT Integration: The full setup guide is located at http://127.0.0.1:8394/chatgpt-actions/setup,Swagger The documentation is located at http://127.0.0.1:8394/docs。创建自定义 GPT, paste the instructions, and import the OpenAPI specification as an Action.
Use cases
- Personal knowledge management, turning documents and conversations into a searchable memory repository.
- AI assistant applications that need cross-session memory.
- Allow scripts, ChatGPT, or local LLMs to read and write the same knowledge base via HTTP API.
- Scenarios with high data privacy requirements and a desire to run entirely locally.
Limitations
- ChatGPT integration requires a tunnel to expose the local API, and requires the computer to be on, the API server running, and the tunnel active; if any one stops, ChatGPT loses access.
- First use requires downloading an embedding model of about 220MB.
- The encryption feature requires manually setting environment variables.
- The project uses the AGPL-3.0 license; for commercial licensing, contact bessl.framework@gmail.com.
- Other specific limitations (such as platform compatibility, performance limits, etc.) are not yet provided.