Overview
Thetinbox doctor command runs comprehensive diagnostic checks to verify your Tinbox installation and configuration. It checks system dependencies, Python packages, API keys, and local model support.
Basic Usage
Options
Output the diagnostic report as JSON instead of formatted tables.Default:
falseUse case: Useful for automation, CI/CD pipelines, or programmatic parsing of the diagnostic results.What It Checks
Thedoctor command runs diagnostic checks across multiple categories:
System Tools
Required for: PDF processing and translationCheck: Verifies that
poppler utilities (specifically pdftoppm) are installed and accessibleInstallation:- macOS:
brew install poppler - Ubuntu/Debian:
sudo apt-get install poppler-utils - Windows: Download from poppler for Windows
Python Packages
Required for: PDF to image conversionInstallation:
pip install pdf2imageRequired for: DOCX file supportInstallation:
pip install python-docxRequired for: Image processingInstallation:
pip install pillowAPI Keys (Cloud Models)
Required for: OpenAI models (
openai:gpt-4o, etc.)Setup: Set environment variable with your OpenAI API keyRequired for: Anthropic Claude models (
anthropic:claude-3-sonnet, etc.)Setup: Set environment variable with your Anthropic API keyRequired for: Google Gemini models (
google:gemini-1.5-pro, etc.)Setup: Set environment variable with your Google API keyLocal Model Support
Required for: Local model inference (
ollama:mistral-small, etc.)Check: Verifies that Ollama is installed and runningInstallation:- Visit ollama.ai for installation instructions
- Start Ollama service:
ollama serve
Output Format
Human-Readable Format (Default)
The default output displays diagnostic results in categorized tables:JSON Format
The--json flag outputs a machine-readable JSON report:
Exit Codes
Success: All required checks passed. Tinbox is ready to use.
Partial Success: Core checks passed, but some optional features are unavailable (e.g., missing API keys).
Failure: One or more required checks failed. System dependencies or Python packages are missing.
Status Messages
All Checks Passed
Core Checks Passed
Required Checks Failed
Examples
Run Basic Diagnostics
Get JSON Output for CI/CD
Check Before Translation
Parse JSON Output with jq
Troubleshooting Common Issues
Missing Poppler
Error:poppler check fails
Solution:
Missing Python Packages
Error:pdf2image, python-docx, or pillow checks fail
Solution:
Missing API Keys
Error:OPENAI_API_KEY, ANTHROPIC_API_KEY, or GOOGLE_API_KEY checks fail
Solution:
Ollama Not Running
Error:ollama check fails
Solution:
Use in CI/CD Pipelines
Thetinbox doctor command is useful for validating environments in automated workflows:
See Also
- tinbox translate - Main translation command
- Installation Guide - Setup instructions
- Environment Variables - API key configuration