The th0th configuration CLI (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.
th0th-config) provides a simple way to manage your configuration file, switch embedding providers, and customize settings.
Installation
The configuration CLI is included with the MCP client package:npx:
Configuration File
th0th stores its configuration in~/.config/th0th/config.json. This file is automatically created on first run with sensible defaults.
The configuration file is shared across all th0th integrations (MCP server, REST API, CLI tools).
Quick Commands
Use these flags with the mainth0th command for quick configuration tasks:
CLI Commands
Theth0th-config binary provides advanced configuration management:
init
Initialize or reinitialize the configuration file.Use Ollama for local embeddings (default)
Use Mistral with the provided API key
Use OpenAI with the provided API key
use
Switch between embedding providers without reinitializing.Embedding provider:
ollama, mistral, or openaiAPI key (required for
mistral and openai)Model name (optional, uses provider defaults)
Base URL for Ollama (default:
http://localhost:11434)set
Set specific configuration values using dot notation.Configuration key in dot notation (e.g.,
embedding.dimensions)Value to set (auto-converts numbers)
show
Display the current configuration.path
Print the path to the configuration file.Embedding Providers
th0th supports three embedding providers:Ollama
Free, local, private
- Default:
nomic-embed-text:latest(768d) - Alternative:
bge-m3(1024d) - Requires Ollama running locally
Mistral
API-based, cost-effective
- Default:
mistral-embed(1024d) - Alternative:
codestral-embed - Requires API key
OpenAI
API-based, high quality
- Default:
text-embedding-3-small(1536d) - Alternative:
text-embedding-3-large - Requires API key
Configuration Schema
The configuration file follows this schema:The
dimensions field must match the output dimensions of the selected model. The CLI sets this automatically when using init or use commands.Examples
Initial Setup with Ollama
Switch to Cloud Provider
Custom Ollama Configuration
Fine-tune Settings
Troubleshooting
Config file not found
Config file not found
If you see “No config file found”, run:This creates the default configuration at
~/.config/th0th/config.json.Ollama connection failed
Ollama connection failed
Ensure Ollama is running:Or update the base URL if Ollama is on a different host:
Invalid API key
Invalid API key
Update your API key:Or use the
set command:Reset to defaults
Reset to defaults
Reinitialize the configuration:This overwrites your existing config with Ollama defaults.
Source Reference
The configuration CLI implementation can be found at:- CLI source:
apps/mcp-client/src/config-cli.ts:1 - Binary name:
th0th-config(defined inapps/mcp-client/package.json:10) - Configuration utilities:
@th0th-ai/shared/config
Related Documentation
Quick Start
Get started with th0th in minutes
REST API
Use th0th via HTTP endpoints
MCP Integration
Integrate with AI coding assistants
Development Guide
Build and contribute to th0th