tutr tutr docs terminal hub

Configuration

Config file

tutr stores configuration at:

~/.tutr/config.json

Edit directly or use:

tutr-cli configure

Environment overrides

VariableDescriptionDefault
TUTR_MODELLLM model in LiteLLM formatgemini/gemini-3-flash-preview
GEMINI_API_KEYGemini API keynone
ANTHROPIC_API_KEYAnthropic API keynone
OPENAI_API_KEYOpenAI API keynone
XAI_API_KEYxAI API keynone
OLLAMA_HOSTOllama host URL overridehttp://localhost:11434
TUTR_UPDATE_CHECKEnable (1/true) or disable (0/false) update checkstrue
NO_COLORDisable ANSI color output when set to any value (follows no-color.org)unset

You can also toggle update checks in saved config with:

tutr-cli configure --disable-update-check
tutr-cli configure --enable-update-check

Configure command flags

Run tutr-cli configure with no arguments to launch the interactive wizard, or pass any of the flags below for non-interactive use.

FlagDescription
--interactiveRun the interactive wizard (default when no other flags are given)
--provider <name>LLM provider (anthropic, gemini, ollama, openai, xai)
--model <id>Model ID in LiteLLM format (e.g. openai/gpt-4o)
--api-key <key>Store a provider API key in config (not recommended — may leak via shell history)
--clear-api-keyRemove the stored API key from config
--ollama-host <url>Set Ollama host URL (e.g. http://localhost:11434)
--clear-ollama-hostRemove the stored Ollama host from config
--show-explanationEnable explanation output by default
--hide-explanationDisable explanation output by default
--enable-update-checkEnable periodic update checks (default)
--disable-update-checkDisable periodic update checks
--allow-executeIn shell mode, allow prompting to auto-run tutr suggestions (default)
--no-executeIn shell mode, never prompt to auto-run tutr suggestions

Update checks

tutr periodically checks PyPI for newer versions at most once every 24 hours. When a newer version is found it prints a notice to stderr with a suggested update command (e.g. pipx upgrade tutr or uv tool upgrade tutr). In an interactive terminal it also prompts you to run the update immediately.

The check runs in a background thread with a 1.5-second network timeout, so it never delays a normal query. The last-checked timestamp is cached at ~/.tutr/update-check.json.

To disable update checks permanently:

tutr-cli configure --disable-update-check

To suppress checks for a single session, set the environment variable:

TUTR_UPDATE_CHECK=0

Helpful runtime vars

VariablePurpose
TUTR_AUTOSTARTEDPrevent recursive auto-start in shell rc
TUTR_SKIP_AUTOSTARTTemporarily bypass auto-start logic
TUTR_ACTIVEIndicates shell wrapper is active
TUTR_PROMPT_PREFIXCustomize wrapper prompt prefix
TUTR_SHELLOverride wrapper shell detection (bash, zsh, pwsh, or powershell)