Documentation Index
Fetch the complete documentation index at: https://mintlify.com/S1LV4/th0th/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This guide will get you from zero to a working th0th instance with semantic search capabilities in under 5 minutes.This quickstart uses Ollama for 100% offline operation with zero API costs.
Prerequisites
Before starting, ensure you have:- Bun (v1.2.0 or higher) - Install Bun
- Node.js (v18 or higher)
- Git
- Curl (for verification)
Ollama will be automatically installed by the setup script if not already present.
Quick Start
Follow these steps to get th0th running:Clone and Install
Clone the repository and install dependencies:This installs all packages in the monorepo workspace.
Run Setup Script
The setup script configures th0th for 100% offline operation:This script will:
- Install/start Ollama (if not already running)
- Pull the
bge-m3embedding model (1024 dimensions) - Create config file at
~/.config/th0th/config.json - Create
.envfile with default settings - Set up data directory at
~/.rlm
The script is smart about existing installations. It detects Ollama on Windows hosts (WSL), remote instances, and local installations.
Your First Search
Now let’s index a project and perform a semantic search.Index a Project
Point th0th at a codebase to index:Response:
Indexing runs in the background. The response includes a
jobId for tracking progress.Use with OpenCode
Integrate th0th with OpenCode for AI-assisted development.Try the MCP Tools
Once integrated with OpenCode, you have access to all th0th tools:Index a Project
Search Code
Compress Context
Store Memory
Recall Memory
Development Mode
For active development with hot reload:Verify Your Setup
Check that everything is working:Check Ollama
Verify Ollama is running and models are available:You should see
bge-m3 in the models list.Common Commands
Here are the most frequently used commands:| Command | Description |
|---|---|
bun run build | Build all packages |
bun run dev:api | Start API with hot reload |
bun run start:api | Start API (production) |
bun run test | Run tests |
bun run lint | Lint code |
bun run type-check | Type checking |
Configuration Paths
th0th stores configuration and data in standard locations:- Config:
~/.config/th0th/config.json - Data:
~/.rlm/ - Environment:
<project-root>/.env
Next Steps
Installation Guide
Detailed setup for Docker, WSL, and production environments
OpenCode Integration
Complete guide to using th0th with OpenCode
Configuration
Switch to Mistral or OpenAI embeddings
API Reference
Complete API documentation
Troubleshooting
If you encounter issues:
For more help, see Troubleshooting.