-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
72 lines (60 loc) · 2.82 KB
/
.env.example
File metadata and controls
72 lines (60 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# OpenHands LLM Enhanced - Configuration
# Copy this file to .env and edit as needed: cp .env.example .env
# ============================================================
# OPTION A: Cloud LLM (DeepSeek, OpenAI, Anthropic, etc.)
# ============================================================
LLM_MODEL=deepseek/deepseek-reasoner
LLM_API_KEY=sk-your-api-key-here
LLM_BASE_URL=https://api.deepseek.com
# ============================================================
# OPTION B: Local LLM via Ollama
# Uncomment these and comment out Option A above.
# ============================================================
# LLM_MODEL=ollama/qwen3.5
# LLM_API_KEY=ollama
# LLM_BASE_URL=http://host.docker.internal:11434/v1
# ============================================================
# OPTION C: Same provider for main and hooks (e.g., DeepSeek for both)
# Example: DeepSeek for main agent and DeepSeek-Chat for hooks
# ============================================================
# LLM_MODEL=deepseek/deepseek-reasoner
# LLM_API_KEY=sk-your-deepseek-key
# LLM_BASE_URL=https://api.deepseek.com
# HOOKS_MODEL=deepseek/deepseek-chat
# HOOKS_BASE_URL=https://api.deepseek.com
# HOOKS_API_KEY=sk-your-deepseek-key # Can reuse same key
# ============================================================
# Hook Routing LLM (classifies queries for code analysis)
# Supports any OpenAI-compatible provider. Examples:
# ============================================================
# --- Option A: Local Ollama (free, default) ---
# Use the exact model:tag from `ollama list` (e.g. qwen3.5:27b, qwen2.5:1.5b)
HOOKS_MODEL=ollama/qwen3.5:27b
OLLAMA_HOST=http://host.docker.internal:11434
# HOOKS_BASE_URL= (auto-detected from OLLAMA_HOST for ollama/ models)
# HOOKS_API_KEY= (not needed for Ollama)
# --- Option B: DeepSeek (cloud, reuse main API key) ---
# HOOKS_MODEL=deepseek/deepseek-chat
# HOOKS_BASE_URL=https://api.deepseek.com
# HOOKS_API_KEY=sk-your-api-key-here
# --- Option C: OpenAI ---
# HOOKS_MODEL=gpt-4o-mini
# HOOKS_API_KEY=sk-your-openai-key
# --- Option D: Claude ---
# HOOKS_MODEL=anthropic/claude-haiku-4-5
# HOOKS_API_KEY=sk-ant-your-key
# --- Option E: Groq (fast, free tier) ---
# HOOKS_MODEL=groq/llama-3.1-8b-instant
# HOOKS_API_KEY=gsk_your-groq-key
EMBEDDING_MODEL=nomic-embed-text
# ============================================================
# Code Analysis (tldr-code integration)
# ============================================================
# Mode: hook (auto-inject context), tool (agent calls manually), both (default)
TLDR_MODE=both
# Routing: keyword (fast, no LLM), llm (smart, uses HOOKS_MODEL), auto (balanced, default)
TLDR_ROUTING=auto
# ============================================================
# Port (external port you access in your browser)
# ============================================================
EXTERNAL_PORT=3333