Back to Home
NocturnLabs icon

opencode-personal-knowledge

Verified Safe

by NocturnLabs

Overview

A personal knowledge base and session memory system for AI agents, enabling semantic search and persistent local storage.

Installation

Run Command
bunx opencode-personal-knowledge

Environment 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.

Stats

Interest Score55
Security Score9
Cost ClassMedium
Avg Tokens750
Stars1
Forks1
Last Update2025-12-15

Tags

Knowledge BaseSemantic SearchVector DatabaseSession MemoryAI Agent Tool