-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.template
More file actions
138 lines (109 loc) · 5.35 KB
/
.env.template
File metadata and controls
138 lines (109 loc) · 5.35 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# GitPilot Environment Configuration
# Copy this file to .env and fill in your credentials
# These values will be used if not configured via the Admin UI
# =============================================================================
# GitHub Authentication
# =============================================================================
# Option 1: GitHub App (Recommended - Like Claude Code)
# Create your GitHub App at: https://github.com/settings/apps
# Users install the app to their repos, get automatic authentication
GITHUB_APP_ID=
GITHUB_APP_SLUG=gitpilot
# Note: GitHub App slug is used for installation URL (https://github.com/apps/{slug})
# Option 2: Personal Access Token (PAT) - Quickstart
# Get yours at: https://github.com/settings/tokens/new?scopes=repo,user:email
# This is the simplest way to get started immediately
GITPILOT_GITHUB_TOKEN=
# Alternative PAT variable name (either works)
# GITHUB_TOKEN=
# Option 3: OAuth App (Advanced)
# Create OAuth App at: https://github.com/settings/developers
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URI=http://localhost:8000/api/auth/callback
# Priority: GitHub App > OAuth > PAT
# For quickstart: Use PAT
# For Claude Code behavior: Use GitHub App
# For enterprise SSO: Use OAuth
# =============================================================================
# LLM Provider Selection
# =============================================================================
# Choose your default provider: openai, claude, watsonx, ollama
GITPILOT_PROVIDER=openai
# =============================================================================
# OpenAI Configuration
# =============================================================================
# Get your API key at: https://platform.openai.com/api-keys
OPENAI_API_KEY=
# Optional: Override default model (default: gpt-4o-mini)
GITPILOT_OPENAI_MODEL=gpt-4o-mini
# Optional: Custom base URL (for Azure OpenAI or API proxies)
# OPENAI_BASE_URL=
# =============================================================================
# Claude (Anthropic) Configuration
# =============================================================================
# Get your API key at: https://console.anthropic.com/
ANTHROPIC_API_KEY=
# Optional: Override default model (default: claude-sonnet-4-5)
GITPILOT_CLAUDE_MODEL=claude-sonnet-4-5
# Optional: Custom base URL (for API proxies)
# ANTHROPIC_BASE_URL=
# =============================================================================
# IBM Watsonx.ai Configuration
# =============================================================================
# Get your credentials at: https://cloud.ibm.com/
WATSONX_API_KEY=
WATSONX_PROJECT_ID=
# Optional: Override default model (default: meta-llama/llama-3-3-70b-instruct)
GITPILOT_WATSONX_MODEL=meta-llama/llama-3-3-70b-instruct
# Optional: Override default base URL (default: https://api.watsonx.ai/v1)
# WATSONX_BASE_URL=https://api.watsonx.ai/v1
# =============================================================================
# Ollama Configuration (Local LLMs)
# =============================================================================
# Ollama base URL (default: http://localhost:11434)
OLLAMA_BASE_URL=http://localhost:11434
# Model to use with Ollama (default: llama3)
GITPILOT_OLLAMA_MODEL=llama3
# =============================================================================
# OllaBridge / OllaBridge Cloud Configuration
# =============================================================================
# OllaBridge base URL (default: http://localhost:8000)
# OLLABRIDGE_BASE_URL=http://localhost:8000
# Model to use with OllaBridge (default: qwen2.5:1.5b)
# GITPILOT_OLLABRIDGE_MODEL=qwen2.5:1.5b
# Optional: API key for authenticated endpoints
# OLLABRIDGE_API_KEY=
# =============================================================================
# Lite Mode (Optional — for small LLMs under 7B parameters)
# =============================================================================
# Enable Lite Mode to use simplified prompts and single-agent execution.
# Recommended when using small models like qwen2.5:1.5b, phi-3-mini, gemma-2b.
# Default: false — standard multi-agent pipelines are used.
# GITPILOT_LITE_MODE=false
# =============================================================================
# LangFlow Integration (Optional)
# =============================================================================
# LangFlow server URL
# GITPILOT_LANGFLOW_URL=http://localhost:7860
# LangFlow API key
# GITPILOT_LANGFLOW_API_KEY=
# LangFlow plan flow ID
# GITPILOT_LANGFLOW_PLAN_FLOW_ID=
# =============================================================================
# Server Configuration
# =============================================================================
# Host to bind the server (default: 127.0.0.1)
# GITPILOT_HOST=127.0.0.1
# Port to run the server (default: 8000)
# GITPILOT_PORT=8000
# Enable debug mode (default: false)
# GITPILOT_DEBUG=false
# =============================================================================
# Notes
# =============================================================================
# 1. You only need to configure the provider you plan to use
# 2. Environment variables take precedence over Admin UI settings
# 3. Admin UI settings are stored in ~/.gitpilot/settings.json
# 4. For production, use environment variables or secret management
# 5. Never commit this file with real credentials!