SAGE - Self-Adaptive General Explorer: Neural Cellular Automata AGI with consciousness, curiosity, and autonomous learning
Rust
2
300 commits
updated Jul 29, 2026
Free, local AI that reads your documents and answers questions. No API keys. No cloud. No subscription.
SAGE runs entirely on your machine. Feed it PDFs, text files, or web pages, and it remembers what it read. Ask questions in plain English and get answers grounded in your documents. Your data never leaves your computer.
# Install
curl -fsSL https://whatssage.ai/install.sh | bash
# Feed it a document
sage learn ~/Documents/notes.txt
# Ask a question
sage search "What did I write about project timelines?"
# Interactive chat
sage chat
That's it. No API keys to set up. No account to create. No monthly bill.
1. Learns from your documents Feed SAGE text files, markdown, or any plain text. It chunks the content, embeds it, and stores it locally in a knowledge base that persists across sessions.
sage learn ~/Documents/report.txt
sage learn ~/notes.md --fastembed # No Ollama needed (384-dim mode)
2. Answers questions about what it's read Ask questions in plain English. SAGE retrieves relevant passages from its knowledge base and synthesizes answers using a local LLM.
sage search "What are the key findings in the Q3 report?"
sage chat # Interactive mode with brain visualization
3. Works completely offline No API keys. No cloud calls. No telemetry. The LLM (SmolLM2 1.7B) runs in-process, or you can use Ollama with any local model.
4. Shares knowledge peer-to-peer Run SAGE on multiple machines. Knowledge syncs over libp2p — no central server, no cloud. Your data stays yours.
sage node start # Join the P2P network
SAGE has three layers:
HDC Knowledge Store — Every chunk of text you feed it gets embedded (768-dim via Ollama, or 384-dim via fastembed) and stored in a Hyperdimensional Computing store. Retrieval is cosine similarity + keyword fusion. This is the memory.
LLM Synthesis — When you ask a question, SAGE retrieves the top relevant passages and a local LLM (SmolLM2 1.7B bundled, or any Ollama model) reads them and generates an answer. This is the reasoning.
NCA Grid — A Neural Cellular Automata grid learns patterns from the knowledge store during "sleep" cycles. This is experimental — it provides intuition and association, not generation. (Work in progress.)
SAGE comes with 8 pre-trained specialist brains. Each one is a ~40MB trained brain that downloads on demand and answers questions locally — no API keys, no cloud, no training required.
# See available specialists
sage specialist list
# Hire one (downloads the trained brain)
sage specialist hire accounting
# Ask it a question
sage specialist ask accounting "What is a balance sheet?"
# See brain details
sage specialist info accounting
Available specialists:
| Specialist | Trained On |
|---|---|
| accounting | Financial statements, bookkeeping, GAAP |
| customer-support | Support best practices, escalation, CSAT |
| data-analyst | SQL, statistics, data visualization |
| high-school-graduate | General knowledge across subjects |
| marketing | Marketing strategy, channels, branding |
| paralegal | Legal research, contracts, civil procedure |
| software-engineer | Data structures, algorithms, system design |
| cs-fundamentals | CS theory, complexity, automata |
Each specialist works with local synthesis (no Ollama needed) or falls back to Ollama for complex queries.
| Command | Description |
|---|---|
sage chat | Interactive chat with brain visualization |
sage learn <file> | Feed a text file into the knowledge base |
sage search "query" | Search the knowledge base (non-interactive) |
sage specialist list | List available trained specialists |
sage specialist hire <name> | Download a trained specialist brain |
sage specialist info <name> | Show specialist brain details |
sage specialist ask <name> "query" | Ask a specialist a question |
sage status | Show brain stats (entries, memory usage, grid state) |
sage node start | Start P2P networking and sync with other nodes |
sage export <file> | Export knowledge to a .sage file (for sneakernet sharing) |
sage import <file> | Import knowledge from a .sage file |
sage insights | Show knowledge statistics and insights |
sage feedback stats | Show learning statistics |
sage dream | Run a consolidation cycle (NCA sleep) |
sage update | Update SAGE to the latest version |
sage version | Print version info |
SAGE includes an API server that's compatible with the OpenAI chat completions endpoint:
sage-api --port 19175 --api-port 19176
# Use with any OpenAI client
OPENAI_API_BASE=http://localhost:19176/v1 python3 your_script.py
Endpoints:
POST /v1/chat/completions — Chat completions (streaming supported)POST /v1/embeddings — Text embeddingsGET /v1/sage/status — Brain statsGET /v1/sage/brain — NCA grid stateGET /health — Health checkgit clone https://github.com/Caryyon/sage.git
cd sage
cargo build --release
# With CUDA support (for GPU inference)
cargo build --release --features cuda
# With local LLM (llama.cpp)
cargo build --release --features local-llm
SAGE is in active development. The core RAG pipeline (HDC retrieval + LLM synthesis) is stable and working. The NCA grid is experimental research. See docs/v0.6.0-the-actual-plan.md for the roadmap.
Current version: v0.6.2
MIT
300 commits
Rust
84.9%
HTML
9.1%
JavaScript
3.2%
Python
1.2%
Shell
1.2%
SAGE - Self-Adaptive General Explorer: Neural Cellular Automata AGI with consciousness, curiosity, and autonomous learning
Rust
2
300 commits
updated Jul 29, 2026
Free, local AI that reads your documents and answers questions. No API keys. No cloud. No subscription.
SAGE runs entirely on your machine. Feed it PDFs, text files, or web pages, and it remembers what it read. Ask questions in plain English and get answers grounded in your documents. Your data never leaves your computer.
# Install
curl -fsSL https://whatssage.ai/install.sh | bash
# Feed it a document
sage learn ~/Documents/notes.txt
# Ask a question
sage search "What did I write about project timelines?"
# Interactive chat
sage chat
That's it. No API keys to set up. No account to create. No monthly bill.
1. Learns from your documents Feed SAGE text files, markdown, or any plain text. It chunks the content, embeds it, and stores it locally in a knowledge base that persists across sessions.
sage learn ~/Documents/report.txt
sage learn ~/notes.md --fastembed # No Ollama needed (384-dim mode)
2. Answers questions about what it's read Ask questions in plain English. SAGE retrieves relevant passages from its knowledge base and synthesizes answers using a local LLM.
sage search "What are the key findings in the Q3 report?"
sage chat # Interactive mode with brain visualization
3. Works completely offline No API keys. No cloud calls. No telemetry. The LLM (SmolLM2 1.7B) runs in-process, or you can use Ollama with any local model.
4. Shares knowledge peer-to-peer Run SAGE on multiple machines. Knowledge syncs over libp2p — no central server, no cloud. Your data stays yours.
sage node start # Join the P2P network
SAGE has three layers:
HDC Knowledge Store — Every chunk of text you feed it gets embedded (768-dim via Ollama, or 384-dim via fastembed) and stored in a Hyperdimensional Computing store. Retrieval is cosine similarity + keyword fusion. This is the memory.
LLM Synthesis — When you ask a question, SAGE retrieves the top relevant passages and a local LLM (SmolLM2 1.7B bundled, or any Ollama model) reads them and generates an answer. This is the reasoning.
NCA Grid — A Neural Cellular Automata grid learns patterns from the knowledge store during "sleep" cycles. This is experimental — it provides intuition and association, not generation. (Work in progress.)
SAGE comes with 8 pre-trained specialist brains. Each one is a ~40MB trained brain that downloads on demand and answers questions locally — no API keys, no cloud, no training required.
# See available specialists
sage specialist list
# Hire one (downloads the trained brain)
sage specialist hire accounting
# Ask it a question
sage specialist ask accounting "What is a balance sheet?"
# See brain details
sage specialist info accounting
Available specialists:
| Specialist | Trained On |
|---|---|
| accounting | Financial statements, bookkeeping, GAAP |
| customer-support | Support best practices, escalation, CSAT |
| data-analyst | SQL, statistics, data visualization |
| high-school-graduate | General knowledge across subjects |
| marketing | Marketing strategy, channels, branding |
| paralegal | Legal research, contracts, civil procedure |
| software-engineer | Data structures, algorithms, system design |
| cs-fundamentals | CS theory, complexity, automata |
Each specialist works with local synthesis (no Ollama needed) or falls back to Ollama for complex queries.
| Command | Description |
|---|---|
sage chat | Interactive chat with brain visualization |
sage learn <file> | Feed a text file into the knowledge base |
sage search "query" | Search the knowledge base (non-interactive) |
sage specialist list | List available trained specialists |
sage specialist hire <name> | Download a trained specialist brain |
sage specialist info <name> | Show specialist brain details |
sage specialist ask <name> "query" | Ask a specialist a question |
sage status | Show brain stats (entries, memory usage, grid state) |
sage node start | Start P2P networking and sync with other nodes |
sage export <file> | Export knowledge to a .sage file (for sneakernet sharing) |
sage import <file> | Import knowledge from a .sage file |
sage insights | Show knowledge statistics and insights |
sage feedback stats | Show learning statistics |
sage dream | Run a consolidation cycle (NCA sleep) |
sage update | Update SAGE to the latest version |
sage version | Print version info |
SAGE includes an API server that's compatible with the OpenAI chat completions endpoint:
sage-api --port 19175 --api-port 19176
# Use with any OpenAI client
OPENAI_API_BASE=http://localhost:19176/v1 python3 your_script.py
Endpoints:
POST /v1/chat/completions — Chat completions (streaming supported)POST /v1/embeddings — Text embeddingsGET /v1/sage/status — Brain statsGET /v1/sage/brain — NCA grid stateGET /health — Health checkgit clone https://github.com/Caryyon/sage.git
cd sage
cargo build --release
# With CUDA support (for GPU inference)
cargo build --release --features cuda
# With local LLM (llama.cpp)
cargo build --release --features local-llm
SAGE is in active development. The core RAG pipeline (HDC retrieval + LLM synthesis) is stable and working. The NCA grid is experimental research. See docs/v0.6.0-the-actual-plan.md for the roadmap.
Current version: v0.6.2
MIT
300 commits
Rust
84.9%
HTML
9.1%
JavaScript
3.2%
Python
1.2%
Shell
1.2%