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.
OpenCode is the recommended way to use th0th with the best performance and user experience.
Overview
th0th integrates with OpenCode in two ways:- MCP Server - Via the published npm package (recommended)
- OpenCode Plugin - Native plugin integration
- Development Mode - Run from source for development
Prerequisites
Install th0th
Ensure th0th is installed and the API server is running:Verify:
curl http://localhost:3333/healthInstall OpenCode
If you haven’t already, install OpenCode from opencode.ai
Configuration
Method 1: MCP Package (Recommended)
This method uses the published npm package@th0th-ai/mcp-client.
Use
npx instead of bunx if you prefer npm:Method 2: OpenCode Plugin
The native plugin provides deeper integration with OpenCode.opencode.json
- Discovers the th0th API endpoint
- Registers all th0th tools
- Provides optimized context handling
Method 3: Development Mode
For development and testing, run th0th directly from source:opencode.json
Available Tools
Once configured, OpenCode will have access to these th0th tools:th0th_index
Index a project directory for semantic search
th0th_search
Semantic + keyword search with filters
th0th_remember
Store important information in persistent memory
th0th_recall
Search stored memories from previous sessions
th0th_compress
Compress context (70-98% token reduction)
th0th_optimized_context
Search + compress in one call for max efficiency
th0th_analytics
Usage patterns, cache performance, metrics
Verification
Configuration Options
API URL
By default, th0th connects tohttp://localhost:3333. To use a different URL:
Enable/Disable Server
Toggle the MCP server without removing the configuration:Troubleshooting
Tools not showing up
Tools not showing up
- Check that the th0th API is running:
curl http://localhost:3333/health - Restart OpenCode
- Check OpenCode logs for MCP connection errors
- Verify the configuration file path is correct
Connection refused
Connection refused
Ensure the
TH0TH_API_URL matches your running API server:Command not found: bunx
Command not found: bunx
Install Bun or use npx instead:
Package not found
Package not found
The package may not be published yet. Use development mode:
Next Steps
Configuration
Configure embedding providers and advanced settings
MCP Tools
Learn about all available MCP tools
Docker Setup
Run th0th in Docker containers
Troubleshooting
Common issues and solutions