Installing
Installation Guide
Section titled “Installation Guide”This guide will walk you through installing Thought Ledger and its dependencies on your local machine.
Step 1: Install Ollama
Section titled “Step 1: Install Ollama”Ollama is the local AI runtime that powers Thought Ledger. It allows you to run AI models directly on your machine without API keys or cloud dependencies.
macOS Installation
Section titled “macOS Installation”# Download and install Ollamacurl -fsSL https://ollama.com/install.sh | shOr download the macOS installer directly.
Linux Installation
Section titled “Linux Installation”# Download and install Ollamacurl -fsSL https://ollama.com/install.sh | shFor specific Linux distributions:
# Ubuntu/Debiansudo apt update && sudo apt install -y curl
# Fedorasudo dnf install -y curl
# Arch Linuxsudo pacman -S curlWindows Installation
Section titled “Windows Installation”Install via WSL2:
# In WSL2 terminalcurl -fsSL https://ollama.com/install.sh | shVerify Ollama Installation
Section titled “Verify Ollama Installation”# Check Ollama is runningollama --version
# Start Ollama service (if needed)sudo systemctl start ollamaStep 2: Install Node.js
Section titled “Step 2: Install Node.js”Thought Ledger requires Node.js 18 or higher.
Using Node Version Manager (Recommended)
Section titled “Using Node Version Manager (Recommended)”# Install nvmcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Reload shellsource ~/.bashrc
# Install Node.jsnvm install 18nvm use 18Direct Installation
Section titled “Direct Installation”Download from nodejs.org or use your system package manager:
# macOS (Homebrew)brew install node@18
# Ubuntu/Debiansudo apt install nodejs npm
# Fedorasudo dnf install nodejs npmVerify Node.js Installation
Section titled “Verify Node.js Installation”# Check Node.js versionnode --version # Should be v18+
# Check npm versionnpm --versionStep 3: Install Thought Ledger
Section titled “Step 3: Install Thought Ledger”Now install Thought Ledger itself:
# Clone the repositorygit clone https://github.com/your-org/thought-ledger.gitcd thought-ledger
# Install dependenciesnpm install
# Build the applicationnpm run build
# Start the development servernpm run devStep 4: Download AI Models
Section titled “Step 4: Download AI Models”Thought Ledger needs local AI models to function. We recommend starting with:
# Download a lightweight model (good for testing)ollama pull llama3.2:3b
# Download a more capable model (recommended)ollama pull llama3.2:8b
# Download a coding-focused model (optional)ollama pull codegemma:7bAvailable Models
Section titled “Available Models”| Model | Size | Use Case | RAM Required |
|---|---|---|---|
llama3.2:3b | 2GB | Basic decisions, testing | 4GB+ |
llama3.8b | 5GB | General use, recommended | 8GB+ |
codegemma:7b | 5GB | Code-related decisions | 8GB+ |
llama3.1:70b | 40GB | Complex decisions | 64GB+ |
Step 5: Configure Thought Ledger
Section titled “Step 5: Configure Thought Ledger”Create your configuration file:
# Copy example configurationcp config.example.json config.json
# Edit configurationnano config.jsonExample configuration:
{ "ai": { "model": "llama3.2:8b", "ollama_url": "http://localhost:11434" }, "memory": { "storage_path": "./data/decisions.db", "max_decisions": 10000 }, "ui": { "theme": "auto", "language": "en" }}Step 6: Start Thought Ledger
Section titled “Step 6: Start Thought Ledger”# Start the applicationnpm start
# Or run in development modenpm run devOpen your browser and navigate to http://localhost:3000 to access Thought Ledger.
Verification
Section titled “Verification”Test your installation:
- Check Ollama:
ollama listshould show downloaded models - Check Thought Ledger: The web interface should load at localhost:3000
- Test AI: Try a simple decision in the interface
Next Steps
Section titled “Next Steps”- Quick Start Guide - Learn the basics
- User Guide - Master decision memory features
- Configuration - Customize your setup
Having issues? Check our troubleshooting guide for common problems.