Lex
by smartergpt.dev · v4.4.4 · updated Oct 20, 2026
Episodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.
Run it locally
Install the package and point your AI client at it.
npm
npx -y @smartergpt/[email protected]Environment variables
LEX_WORKSPACE_ROOTProject root directory for Lex runtime discovery. Defaults to current working directory.
LEX_STOREFrame-store backend: sqlite or postgres. Defaults to sqlite unless LEX_DATABASE_URL selects PostgreSQL.
LEX_DB_PATHPath to SQLite database file. Defaults to .smartergpt/lex/memory.db under the project root.
LEX_MEMORY_DBAlias for LEX_DB_PATH (backwards compatibility). Same behavior.
LEX_DATABASE_URLsecretPostgreSQL connection URL for the compatibility adapter. Treat as secret because it may contain credentials.
LEX_POSTGRES_PASSWORDsecretPostgreSQL password supplied separately when LEX_DATABASE_URL omits one.
LEX_POSTGRES_POOL_MAXMaximum PostgreSQL compatibility-adapter pool size. Defaults to 10.
LEX_DEBUGSet to any value to enable debug logging to stderr.
More from smartergpt.dev
More MCP servers
snapcn
snapcn.dev
Search hand-tuned Remotion components, read their props, and plan a video from a one-line brief.
Snaplab
snaplab.dev
Screenshot, PDF and HTML-to-image rendering API so Claude and Cursor can see any web page.
SnapSweep
snapsweep.dev
Read-only web QA agent: scans a site in a real browser and returns evidence-backed findings
Socialscrape
socialscrape.dev
Social media data for agents: profiles, posts, comments, search, ads, transcripts.
SocialTap
socialtap.dev
Social media data API for AI agents. Live data from any public link, handle or search.
Sohum shared work
sohum.dev
Shared pages, resources and conversations for agents, with revision history and private catch-up.