Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Environment Variables

Translation

VariableDescription
DEEPL_API_KEYDeepL API key
GOOGLE_TRANSLATE_API_KEYGoogle Cloud Translation API key

AI Extraction

VariableDescription
OPENAI_API_KEYOpenAI API key
ANTHROPIC_API_KEYAnthropic API key

Web Server

VariableDescriptionDefault
ROCKET_ADDRESSIP address to bind127.0.0.1
ROCKET_PORTPort to listen on8000
ROCKET_WORKERSWorker threadsCPU count
ROCKET_LOG_LEVELoff, critical, normal, debugnormal
ROCKET_TLS_CERTSPath to TLS certificate—
ROCKET_TLS_KEYPath to TLS private key—

Examples

With translation:

export DEEPL_API_KEY="your-key"
url2ref-cli --url "https://example.com" --target-lang EN

With AI extraction:

export OPENAI_API_KEY="your-key"
url2ref-cli --url "https://example.com" --ai-extraction

Web server on all interfaces:

export ROCKET_ADDRESS="0.0.0.0"
export ROCKET_PORT="3000"

Docker:

docker run -e DEEPL_API_KEY="your-key" -e ROCKET_ADDRESS="0.0.0.0" url2ref