π₯ Check out this must-read post from Hacker News π
π **Category**:
π **What Youβll Learn**:
A local device focused AI assistant built in Rust β persistent memory, autonomous tasks, ~27MB binary. Inspired by and compatible with OpenClaw.
cargo install localgpt
- Single binary β no Node.js, Docker, or Python required
- Local device focused β runs entirely on your machine, your memory data stays yours
- Persistent memory β markdown-based knowledge store with full-text and semantic search
- Autonomous heartbeat β delegate tasks and let it work in the background
- Multiple interfaces β CLI, web UI, desktop GUI
- Multiple LLM providers β Anthropic (Claude), OpenAI, Ollama
- OpenClaw compatible β works with SOUL, MEMORY, HEARTBEAT markdown files and skills format
# Initialize configuration
localgpt config init
# Start interactive chat
localgpt chat
# Ask a single question
localgpt ask "What is the meaning of life?"
# Run as a daemon with heartbeat, HTTP API and web ui
localgpt daemon start
LocalGPT uses plain markdown files as its memory:
~/.localgpt/workspace/
βββ MEMORY.md # Long-term knowledge (auto-loaded each session)
βββ HEARTBEAT.md # Autonomous task queue
βββ SOUL.md # Personality and behavioral guidance
βββ knowledge/ # Structured knowledge bank (optional)
βββ finance/
βββ legal/
βββ tech/
Files are indexed with SQLite FTS5 for fast keyword search, and sqlite-vec for semantic search with local embeddings
Stored at ~/.localgpt/config.toml:
[agent]
default_model = "claude-cli/opus"
[providers.anthropic]
api_key = "$π¬"
[heartbeat]
enabled = true
interval = "30m"
active_hours = π¬
[memory]
workspace = "~/.localgpt/workspace"
# Chat
localgpt chat # Interactive chat
localgpt chat --session <id> # Resume session
localgpt ask "question" # Single question
# Daemon
localgpt daemon start # Start background daemon
localgpt daemon stop # Stop daemon
localgpt daemon status # Show status
localgpt daemon heartbeat # Run one heartbeat cycle
# Memory
localgpt memory search "query" # Search memory
localgpt memory reindex # Reindex files
localgpt memory stats # Show statistics
# Config
localgpt config init # Create default config
localgpt config show # Show current config
When the daemon is running:
| Endpoint | Description |
|---|---|
GET /health |
Health check |
GET /api/status |
Server status |
POST /api/chat |
Chat with the assistant |
GET /api/memory/search?q= |
Search memory |
GET /api/memory/stats |
Memory statistics |
Rust, Tokio, Axum, SQLite (FTS5 + sqlite-vec), fastembed, eframe
Apache-2.0
{π¬|β‘|π₯} **Whatβs your take?**
Share your thoughts in the comments below!
#οΈβ£ **#GitHub #localgptapplocalgpt**
π **Posted on**: 1770518550
π **Want more?** Click here for more info! π
