๐Ÿšง Early Alpha โ€” SAGE is under active development. Expect rough edges. Join Discord to follow progress.

๐ŸŒฟ Getting Started with SAGE

Welcome! SAGE is an early alpha โ€” things will be rough around the edges, but the core works and we're building fast. Here's everything you need to get running.

Contents

  1. Prerequisites
  2. Install
  3. Your First Chat
  4. Understanding the Brain
  5. Joining the Network
  6. Keyboard Shortcuts
  7. Troubleshooting
  8. What's Next

๐Ÿ“‹ Prerequisites

System Requirements

Optional: Install Ollama

SAGE ships with an embedded SmolLM2 1.7B model that works out of the box โ€” no extra setup needed. For access to larger models like Qwen, Llama, or Mistral, install Ollama and use the --ollama flag.

Default (SmolLM2): Works immediately, no dependencies. Good for getting started.

With --ollama flag: SAGE uses whatever Ollama model you choose (e.g. qwen2.5:14b). Better output quality for complex tasks.

๐Ÿ“ฆ Install

One command:

curl -fsSL https://whatssage.ai/install.sh | bash

This downloads the sage binary for your platform and installs it to ~/.sage/bin/sage. It also adds ~/.sage/bin to your PATH.

Open a new terminal after install, then verify:

$ sage version
sage v0.2.0-alpha

๐Ÿ’ฌ Your First Chat

sage chat

SAGE uses the embedded SmolLM2 1.7B model by default. To use Ollama instead, run sage chat --ollama.

Here's what you'll see:

SAGE Chat
Engine: smollm2 (embedded)
Brain: ~/.sage/brain.bin (0 active cells)

you> What's the deal with neural cellular automata?

sage> Neural Cellular Automata are grids of cells where each cell
      updates based on its neighbors using small neural networks.
      They can self-organize, self-repair, and encode information
      as stable patterns โ€” like a living memory substrate...

   โ”Œโ”€ Brain โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚  ยท ยท ยท ยท ยท ยท ยท ยท ยท ยท ยท  โ”‚
   โ”‚  ยท ยท ยท  โ–ˆโ–ˆยทยท ยท ยท ยท ยท ยท  โ”‚
   โ”‚  ยท ยท โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆยท ยท ยท ยท ยท  โ”‚
   โ”‚  ยท ยท ยท ยทโ–ˆโ–ˆยท ยท ยท ยท ยท ยท ยท โ”‚
   โ”‚  ยท ยท ยท ยท ยท ยท ยท ยท ยท ยท ยท  โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

The brain visualization at the bottom shows SAGE's NCA grid in real-time. As you chat, you'll see patterns form and grow โ€” that's knowledge being encoded into the neural cellular automata.

Tip: Use sage chat --ollama to use Ollama models, or sage chat --ollama --model llama3.2:3b to pick a specific one. Smaller models are faster; larger models give better answers.

๐Ÿง  Understanding the Brain

The brain visualization shows SAGE's NCA (Neural Cellular Automata) grid โ€” a 256ร—256 grid of cells that stores knowledge as self-organizing patterns.

This isn't just a pretty animation. The grid is the actual knowledge store. When you ask SAGE a question, it queries the grid for relevant patterns and uses them to augment the LLM's response. The patterns are compact (~128 KB for the whole brain) and can be shared across the network.

Think of it like: The LLM handles language. The NCA grid handles memory. Together, they give SAGE both fluency and recall โ€” without needing a massive context window.

๐Ÿ”— Joining the Network

sage node start

This starts your SAGE node and connects it to the peer-to-peer network. Here's what happens:

  1. LAN discovery โ€” finds other SAGE nodes on your local network via mDNS
  2. Bootstrap connection โ€” connects to bootstrap.whatssage.ai:4001 to find internet peers
  3. Knowledge sync โ€” exchanges compact NCA pattern diffs with other nodes

What gets shared (and what doesn't)

Shared: Compressed NCA pattern diffs โ€” tiny (200โ€“2000 bytes), anonymous representations of what was learned. Think statistical patterns, not text.

NOT shared: Your conversations, your prompts, your data. Raw text never leaves your machine. PII filtering runs before any encoding.

You can also run in local-only mode โ€” all the learning, none of the network:

sage chat  # Just chat, no network. Brain still learns locally.

โŒจ๏ธ Keyboard Shortcuts

KeyAction
PageUp / PageDownScroll through chat history
Shift + โ†โ†’Navigate within input
Shift + โ†‘โ†“Scroll output
Ctrl + CCancel current generation
/quit or /exitExit chat

๐Ÿ”ง Troubleshooting

"Killed" on macOS

macOS may kill unsigned binaries. Fix it:

codesign -s - ~/.sage/bin/sage

Bad output quality

If responses are short, repetitive, or nonsensical โ€” the embedded SmolLM2 may be struggling with the topic. Try using Ollama with a larger model for better results:

# Install Ollama, then:
sage chat --ollama

"command not found: sage"

Make sure ~/.sage/bin is in your PATH. Open a new terminal after install, or run:

export PATH="$HOME/.sage/bin:$PATH"

Node won't connect to peers

Brain file issues

If things get weird, you can reset the brain. You'll re-learn from the network when you connect:

rm ~/.sage/brain.bin

๐Ÿš€ What's Next

You're up and running. Here's where to go from here:

Remember: SAGE is early alpha. Things will break. Output quality varies. The NCA research is promising but experimental. We're building in the open โ€” your feedback and bug reports on Discord make a real difference.


GitHub ยท Discord ยท whatssage.ai