-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.env.example
More file actions
116 lines (92 loc) · 4.74 KB
/
.env.example
File metadata and controls
116 lines (92 loc) · 4.74 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
# ============================================================================
# Codebase MCP - Environment Configuration
# ============================================================================
# Copy this file to .env and fill in your actual values
# Never commit .env with real API keys to version control
# ============================================================================
# ----------------------------------------------------------------------------
# GEMINI API CONFIGURATION (Required for edit_file tool)
# ----------------------------------------------------------------------------
# Get your free API key from: https://aistudio.google.com/app/apikey
# Free tier limits: 15 RPM, 250K TPM, 1K RPD
# Only used by the edit_file tool - all other operations are local
GEMINI_API_KEY=your_gemini_api_key_here
# ----------------------------------------------------------------------------
# FASTAPI SERVER CONFIGURATION (Optional - defaults shown)
# ----------------------------------------------------------------------------
# Host to bind the FastAPI server (default: 127.0.0.1)
# API_HOST=127.0.0.1
# Port for the FastAPI server (default: 6789)
# API_PORT=6789
# Working directory for codebase operations (set via CLI args preferred)
# WORKING_DIR=/path/to/your/project
# ----------------------------------------------------------------------------
# LOGGING CONFIGURATION (Optional)
# ----------------------------------------------------------------------------
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
# LOG_LEVEL=INFO
# Log file path (leave empty for console-only logging)
# LOG_FILE=
# ----------------------------------------------------------------------------
# SEARCH & INDEXING CONFIGURATION (Optional - defaults shown)
# ----------------------------------------------------------------------------
# Embedding model for semantic search (local, privacy-first)
# EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
# Maximum results for semantic search (1-50)
# MAX_SEARCH_RESULTS=10
# FAISS index type: Flat (accuracy) or IVF (speed for large codebases)
# FAISS_INDEX_TYPE=Flat
# ----------------------------------------------------------------------------
# CODE QUALITY CONFIGURATION (Optional - defaults shown)
# ----------------------------------------------------------------------------
# Quality score threshold for auto-commit (0.0-1.0)
# Lower = more permissive, Higher = stricter quality gates
# QUALITY_THRESHOLD=0.8
# Auto-format Python files with Black (true/false)
# AUTO_FORMAT_PYTHON=true
# Auto-format JavaScript/TypeScript with Prettier (true/false)
# AUTO_FORMAT_JS=true
# ----------------------------------------------------------------------------
# GIT CONFIGURATION (Optional - defaults shown)
# ----------------------------------------------------------------------------
# Git directory name for AI-tracked changes
# Separate from user's .git to avoid conflicts
# CODEBASE_GIT_DIR=.codebase
# Default branch name
# DEFAULT_BRANCH=main
# Auto-commit enabled by default (true/false)
# AUTO_COMMIT_ENABLED=true
# ----------------------------------------------------------------------------
# MEMORY SYSTEM CONFIGURATION (Optional - defaults shown)
# ----------------------------------------------------------------------------
# Maximum memories to return in context operations
# MEMORY_CONTEXT_MAX=10
# Recent days filter for context (0 = all time)
# MEMORY_RECENT_DAYS=30
# Minimum importance level for context (1-5)
# MEMORY_MIN_IMPORTANCE=3
# ----------------------------------------------------------------------------
# PERFORMANCE TUNING (Optional - advanced users)
# ----------------------------------------------------------------------------
# Number of worker processes (0 = auto-detect CPU cores)
# WORKERS=0
# Request timeout in seconds
# REQUEST_TIMEOUT=30
# Maximum file size for indexing (MB)
# MAX_FILE_SIZE_MB=5
# ----------------------------------------------------------------------------
# CORS CONFIGURATION (Optional - for web dashboard)
# ----------------------------------------------------------------------------
# Allowed origins for CORS (comma-separated)
# CORS_ORIGINS=http://localhost:3000,http://localhost:6789
# Allow credentials in CORS requests
# CORS_ALLOW_CREDENTIALS=true
# ----------------------------------------------------------------------------
# NOTES
# ----------------------------------------------------------------------------
# 1. Only GEMINI_API_KEY is required for edit_file tool functionality
# 2. All other settings have sensible defaults
# 3. For production, consider using environment-specific .env files
# 4. Never expose API keys in logs or error messages
# 5. Keep this file updated as new configuration options are added
# ============================================================================