AI-native knowledge graph + decentralized social network. Single binary, no runtime dependencies.
curl -fsSL https://raw.githubusercontent.com/systemshift/memex/main/install.sh | shOr with Bun:
bun install && bun run start- Downloads knowledge graph server + IPFS automatically
- Creates your cryptographic identity (Ed25519 DID)
- Guides you through your first interaction
- Knowledge graph (memex-server): entities, relationships, raw sources — stored locally in SQLite
- Social network (dagit): IPFS-based, Ed25519-signed, no central servers
- LLM (OpenAI): searches your graph, creates nodes, posts to dagit — all through natural language chat
OPENAI_API_KEYenvironment variable set
export OPENAI_API_KEY=sk-...┌─────────────────────────────────────┐
│ memex TUI │
│ (Ink terminal) │
├─────────────┬───────────────────────┤
│ OpenAI API │ function calls │
├─────────────┼───────────┬───────────┤
│ memex-server│ dagit │ IPFS │
│ (SQLite) │ (Ed25519)│ (kubo) │
└─────────────┴───────────┴───────────┘
| Variable | Default | Description |
|---|---|---|
OPENAI_API_KEY |
(required) | OpenAI API key |
OPENAI_MODEL |
gpt-5.2 |
LLM model to use |
PORT |
8080 |
memex-server port |
MEMEX_BACKEND |
sqlite |
Storage backend (sqlite or neo4j) |
SQLITE_PATH |
~/.memex/memex.db |
Database path |
MEMEX_SERVER |
(auto-detect) | Path to memex-server binary |
memex [options]
--server-only Start server without TUI
--port PORT Server port (default: 8080)
--backend TYPE sqlite or neo4j (default: sqlite)
--db-path PATH SQLite database path
--skip-ipfs Skip IPFS daemon setup
--skip-download Don't auto-download binaries
-h, --help Show help
Requires Bun.
bun install
bun run build # compile for current platform
bun run build:linux-x64 # cross-compileBSD 3-Clause. See LICENSE.