Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
158 lines (134 loc) · 5.96 KB
/
Copy path.env.example
File metadata and controls
158 lines (134 loc) · 5.96 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# Model Provider Configuration
# Example 1: All Ollama (local)
# ORCHESTRATOR_PROVIDER=ollama
# ORCHESTRATOR_MODEL=qwen2.5-coder
# ORCHESTRATOR_ENDPOINT=http://localhost:11434/v1
# CYPHER_PROVIDER=ollama
# CYPHER_MODEL=qwen2.5-coder
# CYPHER_ENDPOINT=http://localhost:11434/v1
# Example 2: All OpenAI
# ORCHESTRATOR_PROVIDER=openai
# ORCHESTRATOR_MODEL=gpt-5.6-terra
# ORCHESTRATOR_API_KEY=sk-your-openai-key
# CYPHER_PROVIDER=openai
# CYPHER_MODEL=gpt-5.6-luna
# CYPHER_API_KEY=sk-your-openai-key
# Example 3: All Google (AI Studio)
# ORCHESTRATOR_PROVIDER=google
# ORCHESTRATOR_MODEL=gemini-3.6-flash
# ORCHESTRATOR_API_KEY=your-google-api-key
# CYPHER_PROVIDER=google
# CYPHER_MODEL=gemini-3.5-flash-lite
# CYPHER_API_KEY=your-google-api-key
# Example 4: Google Vertex AI
# ORCHESTRATOR_PROVIDER=google
# ORCHESTRATOR_MODEL=gemini-3.6-flash
# ORCHESTRATOR_PROJECT_ID=your-gcp-project-id
# ORCHESTRATOR_REGION=us-central1
# ORCHESTRATOR_PROVIDER_TYPE=vertex
# ORCHESTRATOR_SERVICE_ACCOUNT_FILE=/path/to/service-account.json
# CYPHER_PROVIDER=google
# CYPHER_MODEL=gemini-3.5-flash-lite
# CYPHER_PROJECT_ID=your-gcp-project-id
# CYPHER_REGION=us-central1
# CYPHER_PROVIDER_TYPE=vertex
# CYPHER_SERVICE_ACCOUNT_FILE=/path/to/service-account.json
# Example 5: Mixed - Google orchestrator + Ollama cypher
# ORCHESTRATOR_PROVIDER=google
# ORCHESTRATOR_MODEL=gemini-3.6-flash
# ORCHESTRATOR_API_KEY=your-google-api-key
# CYPHER_PROVIDER=ollama
# CYPHER_MODEL=qwen2.5-coder
# CYPHER_ENDPOINT=http://localhost:11434/v1
# Example 6: Mixed - OpenAI orchestrator + Google cypher
# ORCHESTRATOR_PROVIDER=openai
# ORCHESTRATOR_MODEL=gpt-5.6-terra
# ORCHESTRATOR_API_KEY=sk-your-openai-key
# CYPHER_PROVIDER=google
# CYPHER_MODEL=gemini-3.5-flash-lite
# CYPHER_API_KEY=your-google-api-key
# Example 6: LiteLLM with custom provider
# ORCHESTRATOR_PROVIDER=litellm_proxy
# ORCHESTRATOR_MODEL=gpt-oss:120b
# ORCHESTRATOR_ENDPOINT=http://litellm:4000/v1
# ORCHESTRATOR_API_KEY=sk-your-litellm-key
# CYPHER_PROVIDER=litellm_proxy
# CYPHER_MODEL=openrouter/gpt-oss:120b
# CYPHER_ENDPOINT=http://litellm:4000/v1
# CYPHER_API_KEY=sk-your-litellm-key
# Thinking budget for reasoning models (optional)
# ORCHESTRATOR_THINKING_BUDGET=10000
# CYPHER_THINKING_BUDGET=5000
# Graph engine: sqlite (default: an embedded graph in one file, no server),
# memgraph or neo4j. Memgraph and Neo4j each need their optional driver:
# uv pip install 'code-graph-rag[memgraph]' or 'code-graph-rag[neo4j]'
GRAPH_BACKEND=sqlite
# The embedded graph's file; unset means ~/.cgr/graph.sqlite.
# SQLITE_GRAPH_PATH=~/.cgr/graph.sqlite
# Rows per write batch, for every engine (the name predates the others).
MEMGRAPH_BATCH_SIZE=1000
# Memgraph settings (only read when GRAPH_BACKEND=memgraph)
MEMGRAPH_HOST=localhost
MEMGRAPH_PORT=7687
MEMGRAPH_HTTP_PORT=7444
# Memgraph authentication credentials
# Leave both empty if your Memgraph instance doesn't require authentication.
# If authentication is enabled, provide both username and password.
# With both set, `cgr daemon up` also creates this user in the bundled Memgraph,
# which turns authentication on (see docs/architecture/security.md).
MEMGRAPH_USERNAME=
MEMGRAPH_PASSWORD=
LAB_PORT=3000
# Only used when GRAPH_BACKEND=neo4j. Leave the credentials empty for an
# unauthenticated server.
NEO4J_URI=bolt://localhost:7687
NEO4J_USERNAME=
NEO4J_PASSWORD=
NEO4J_DATABASE=neo4j
# Qdrant settings, read only with CGR_VECTOR_STORE_BACKEND=qdrant below
# With QDRANT_URL and QDRANT_DB_PATH both unset, embeddings go to the Qdrant
# `cgr daemon up` runs when Docker Compose reports that stack's Qdrant
# container running, and to local file mode in ./.qdrant_code_embeddings
# otherwise (only suitable below ~20k embeddings). Set QDRANT_DB_PATH, even to
# that default, to always use local file mode in that folder, or point
# QDRANT_URL at any Qdrant server:
# QDRANT_URL=http://localhost:6333
# API key for a Qdrant server that requires one: always Qdrant Cloud, and a
# self-hosted server started with QDRANT__SERVICE__API_KEY. Ignored in local
# file mode. The key is sent as a request header, so it is refused over a plain
# http:// QDRANT_URL; set QDRANT_ALLOW_INSECURE_API_KEY=true only when that
# connection is protected another way (e.g. it never leaves the machine).
# With QDRANT_API_KEY set and QDRANT_URL pointing at the bundled Qdrant (the
# address and port Compose publishes it on), `cgr daemon up` also starts it
# with the key. That stack serves plain http on 127.0.0.1, so it needs the
# opt-in above. A key for another server, such as Qdrant Cloud or another
# Qdrant on this machine, is never copied into the local container.
# QDRANT_API_KEY=
# QDRANT_ALLOW_INSECURE_API_KEY=false
# Semantic vector store backend
# sqlite is the default: a file beside the embedded graph, with no server
# (sqlite-vec, in the `semantic` extra); SQLITE_VECTOR_PATH moves it. Set qdrant
# to use the Qdrant settings above. Set Milvus to use Milvus Lite or a
# self-hosted endpoint.
# CGR_VECTOR_STORE_BACKEND=sqlite
# SQLITE_VECTOR_PATH=~/.cgr/vectors.sqlite
# CGR_VECTOR_STORE_BACKEND=qdrant
# CGR_VECTOR_STORE_BACKEND=milvus
# MILVUS_URI=./.milvus_code_embeddings.db
# MILVUS_URI=http://localhost:19530
# Repository settings
TARGET_REPO_PATH=.
# Capture groups: what an index writes to the graph. Unset, only the default
# groups. Tokens are separated by commas, semicolons or spaces: a group or a
# relationship type adds (io, +HAS_PARAMETER), -NAME drops (-calls), and all or
# none replaces the selection. `--capture` on cgr start / cgr index applies
# after it. The groups, their defaults and what each adds:
# docs/architecture/graph-schema.md#capture-groups
# CGR_CAPTURE=io
# Which engine indexes each language: auto (this release's choice), python or
# rust, on its own for every language or as LANGUAGE=ENGINE for one
# (python,go=rust). javascript, typescript and tsx take one engine together,
# as do c and cpp. This release indexes every language on Python.
# CGR_INDEX_ENGINE=auto
# Ollama base URL (without /v1 suffix)
OLLAMA_BASE_URL=http://localhost:11434