Skip to content

Quick Start

Get started in 5 minutes. Choose your path:

I want to... Use
Install client tools (CLI, MCP, FUSE) Client Tools
Deploy the platform on a server Production Install
Set up for development Development Setup

Client Tools

Install the CLI, MCP server, and optionally the FUSE filesystem driver:

curl -fsSL https://raw.githubusercontent.com/aaronsb/knowledge-graph-system/main/client-manager.sh | bash

What's included: - kg CLI — Command-line access to the knowledge graph - MCP server — Lets AI assistants (Claude, etc.) use the graph as memory - FUSE driver (optional) — Mount the graph as a filesystem

The installer prompts for the API URL and credentials, then configures everything.

Quick Install (npm only)

If you just need the CLI and already have Node.js:

npm install -g @aaronsb/kg-cli
kg config set api_url https://kg.example.com/api
kg login

What Gets Installed

Component Package Purpose
kg CLI npm: @aaronsb/kg-cli Command-line queries, ingestion
MCP server (included with CLI) AI assistant integration
kg-fuse PyPI: kg-fuse FUSE filesystem (optional)

See Client Tools Guide for detailed configuration.


Production Install

One command installs everything on a Linux server:

curl -fsSL https://raw.githubusercontent.com/aaronsb/knowledge-graph-system/main/install.sh | bash

This starts an interactive installer that: - Installs Docker if needed - Downloads container images from GHCR - Generates secure secrets - Configures SSL/HTTPS (optional) - Creates admin user

Headless Mode

For automation, CI/CD, or scripted deployments:

curl -fsSL https://raw.githubusercontent.com/aaronsb/knowledge-graph-system/main/install.sh | bash -s -- \
  --hostname kg.example.com \
  --ssl letsencrypt \
  --ssl-email admin@example.com \
  --ai-provider openai \
  --ai-key "$OPENAI_API_KEY"

Common options:

Option Description
--hostname Public hostname or IP (required for headless)
--ssl MODE offload, selfsigned, letsencrypt, or manual
--ssl-email Email for Let's Encrypt (required for letsencrypt)
--ai-provider openai, anthropic, or ollama
--ai-key API key for the provider
--skip-ai Skip AI configuration (configure later)
--gpu MODE auto, nvidia, amd, or cpu

Minimal headless (configure AI later):

curl -fsSL .../install.sh | bash -s -- --hostname 192.168.1.100 --skip-ai

After Installation

The installer shows access URLs and credentials. Your primary management tool is operator.sh:

cd ~/knowledge-graph   # or your install directory

./operator.sh status   # Check platform health
./operator.sh logs api # View API logs
./operator.sh shell    # Configuration shell

Development Setup

Clone the repo and use operator.sh init:

git clone https://github.com/aaronsb/knowledge-graph-system.git
cd knowledge-graph-system
./operator.sh init

The init wizard will: - Generate infrastructure secrets (.env) - Detect your GPU (NVIDIA/Mac/CPU) - Start all containers - Prompt for admin password and AI configuration

Headless Development Setup

./operator.sh init --headless \
  --container-mode dev \
  --gpu auto \
  --skip-ai-config

Verify Installation

Check that everything is running:

./operator.sh status

You should see all containers healthy:

Container Status:
kg-postgres   Up (healthy)
kg-garage     Up (healthy)
kg-api        Up (healthy)
kg-web        Up (healthy)
kg-operator   Up

Access the system: - Web UI: https://your-hostname (or http://localhost:3000 for dev) - API Docs: https://your-hostname/api/docs - Login: Use the admin credentials from installation


Platform Management

After installation, operator.sh is your primary tool:

# Daily operations
./operator.sh start              # Start platform
./operator.sh stop               # Stop platform
./operator.sh status             # Check health

# Logs
./operator.sh logs api           # API logs (last 100 lines)
./operator.sh logs api -f        # Follow logs in real-time
./operator.sh logs web           # Web server logs

# Updates (like apt update/upgrade)
./operator.sh update             # Pull latest images
./operator.sh update operator    # Pull specific service
./operator.sh upgrade            # Pull, migrate, restart

# Configuration
./operator.sh shell              # Enter configuration shell
./operator.sh query 'SQL'        # Run database queries

# Maintenance
./operator.sh restart api        # Restart a service
./operator.sh teardown           # Remove containers (keeps data)
./operator.sh teardown --full    # Complete reset

Inside the configuration shell (./operator.sh shell):

configure.py status              # Show current config
configure.py ai-provider openai  # Change AI provider
configure.py api-key openai      # Store API key
configure.py oauth --list        # Manage OAuth clients


Optional: Install the CLI

The kg CLI provides command-line access. Choose your method:

npm install -g @aaronsb/kg-cli

Using the client installer

curl -fsSL https://raw.githubusercontent.com/aaronsb/knowledge-graph-system/main/client-manager.sh | bash

From source (development)

cd cli
npm install && npm run build
npm install -g .

Configure and test

kg config set api_url http://localhost:8000  # or your API URL
kg login                                      # authenticate
kg health                                     # verify connection
kg search "your query"                        # test search

What's Next?