opencode-personal-knowledge
Verified Safeby NocturnLabs
Overview
A personal knowledge base and session memory system for AI agents, enabling semantic search and persistent local storage.
Installation
bunx opencode-personal-knowledgeEnvironment Variables
- OPENCODE_PK_DATA_DIR
Security Notes
Input validation is handled by Zod schemas for all tool arguments. All data is stored locally in SQLite and LanceDB (vector database) within the user's local share directory, or a custom path via environment variable. The server uses StdioServerTransport, meaning it communicates via standard input/output streams, which is inherently safer than opening network ports. Embedding models are downloaded locally by `fastembed` from trusted sources, without arbitrary code execution. No direct `eval` or `child_process.exec` calls were found. The primary risk would be overly permissive data access if the `OPENCODE_PK_DATA_DIR` is set to an insecure location.