7
7
8
8
# REQUIRED VARIABLES
9
9
10
- # The node environment to run the server in. Should be "production" or "development"
10
+ # The node environment to run the server in. Should be "production" or "development"
11
11
NODE_ENV
12
12
13
- # Standalone mode is the ide running locally.
13
+ # Standalone mode is the IDE running locally
14
14
STANDALONE
15
+ VITE_APP_STANDALONE
16
+
17
+ # Production mode flag
18
+ PRODUCTION
15
19
16
- # # Main database URL
20
+ # Main database URL
17
21
DATABASE_URL
18
22
19
23
# The shadow database URL used for prisma migrations
20
24
SHADOW_DATABASE_URL
21
25
22
- # API key for pinecone used by the memory service
23
- PINECONE_API_KEY
26
+ # Keywords API configuration
27
+ KEYWORDS_API_KEY
28
+ KEYWORDS_API_URL
29
+
30
+ # The main JWT secret used by the server to authenticate requests. Shared with the portal API.
31
+ JWT_SECRET = magick_nextauth_secret_key_123
32
+
33
+ # Generic hard coded API access key for server to server communication
34
+ API_ACCESS_KEY
24
35
25
- # telemetry key for the platform
26
- HYPERDX_API_KEY
36
+ # Used to encrypt the credentials in the database
37
+ CREDENTIALS_ENCRYPTION_KEY
27
38
28
39
# URL of the portal
29
40
PORTAL_URL
30
41
31
- # Url of the IDE server itself
42
+ # URL of the IDE server itself
43
+ API_URL
32
44
API_ROOT_URL
33
45
34
- # The main JWT secret used by the server to authenticate requests. Shared with the portal API.
35
- JWT_SECRET
46
+ # Trusted parent URL
47
+ TRUSTED_PARENT_URL
36
48
37
- # Generic hard coded API access key for server to server communication
38
- API_ACCESS_KEY
49
+ # The URL for the main redis server
50
+ REDIS_URL
51
+ REDIS_PRIVATE_URL
39
52
40
- # Used to encrypt the credentials in the database.
41
- CREDENTIALS_ENCRYPTION_KEY
53
+ # Used by the cloud to validate any API requests coming from the agent server
54
+ PORTAL_AGENT_KEY
42
55
43
- # Posthos API key for doing posthog stuff in the app
44
- POSTHOG_API_KEY
56
+ # Portal bot URL for notifications
57
+ PORTAL_BOT_URL
45
58
46
- # The URL for teh main redis server. Often set as an environment by hosting services.
47
- REDIS_URL
59
+ # User service configuration
60
+ ENABLE_USER_SERVICE
48
61
49
- # Used by the cloud to validate any API requests coming from the agent server. Needs to be the same in the portal
50
- PORTAL_AGENT_KEY
62
+ # Seraph configuration
63
+ ENABLE_SERAPH
64
+ NITRO_JWT_SECRET
51
65
52
- # AWS CONFIGURATION KEYS
53
- AWS_ACCESS_KEY
54
- AWS_SECRET_KEY
55
- AWS_REGION
56
- AWS_BUCKET_NAME
57
- AWS_BUCKET_ENDPOINT
66
+ # ML SERVICE API KEYS
67
+ OPENAI_API_KEY
68
+ DEFAULT_OPENAI_KEY
69
+ ANTHROPIC_API_KEY
70
+ GROQ_API_KEY
71
+ TOGETHERAI_API_KEY
72
+ GEMINI_API_KEY
73
+ DEFAULT_GOOGLEAI_API_KEY
74
+ UNSTRUCTURED_KEY
75
+
76
+ # MEMORY/VECTOR DATABASES
77
+ PINECONE_API_KEY
78
+ PINECONE_INDEX_NAME
79
+
80
+ # VOICE SERVICES
81
+ AAI_KEY
82
+ ELEVENLABS_API_KEY
83
+
84
+ # TELEMETRY CONFIGURATION
85
+ POSTHOG_API_KEY
86
+ POSTHOG_ENABLED
87
+ VITE_APP_POSTHOG_ENABLED
88
+ VITE_APP_POSTHOG_API_KEY
89
+ PINO_LOG_LEVEL
90
+ BUDGET_LOGGING
91
+ LITELLM_LOCAL_MODEL_COST_MAP
58
92
59
- # Open meter configuration
93
+ # OPENMETER CONFIGURATION
60
94
OPENMETER_ENABLED
61
95
OPENMETER_ENDPOINT
62
96
OPENMETER_TOKEN
63
97
OPENMETER_SOURCE
64
98
65
- # EXTERNAL ML SERVICES
66
- MAGICK_OPENAI_API_KEY
67
- MAGICK_GEMINI_API_KEY
68
- MAGICK_PALM_API_KEY
69
- MAGICK_TOGETHERAI_API_KEY
70
- VERTEXAI_PROJECT
71
- VERTEXAI_LOCATION
99
+ # FEATURE FLAGS
100
+ VITE_APP_COMPOSER_V2
101
+ COMPOSER_V2
102
+ NEXT_PUBLIC_BETA_FEATURES_FUNCTIONS
72
103
104
+ # GOOGLE CLOUD CONFIGURATION
105
+ GOOGLE_CLOUD_PROJECT_ID
106
+ GOOGLE_CLOUD_CLIENT_EMAIL
107
+ GOOGLE_CLOUD_PRIVATE_KEY
108
+ GOOGLE_PRIVATE_BUCKET_NAME
109
+ GOOGLE_PUBLIC_BUCKET_NAME
110
+ PROJECT_BUCKET_PREFIX
111
+
112
+ # AWS CONFIGURATION KEYS
113
+ AWS_ACCESS_KEY
114
+ AWS_SECRET_KEY
115
+ AWS_REGION
116
+ AWS_BUCKET_NAME
117
+ AWS_BUCKET_ENDPOINT
118
+ NEXT_PUBLIC_BUCKET_PREFIX
73
119
74
120
# OPTIONAL VARIABLES
75
121
76
- # Prevents the server form crashing on unhandled exceptions.
77
- # Defaults to true
122
+ # Prevents the server from crashing on unhandled exceptions
78
123
DONT_CRASH_ON_ERROR
79
124
80
- # The port the server should listen on.
81
- # Default: 3030
125
+ # The port the server should listen on
126
+ PORT
82
127
SERVER_PORT
83
128
84
129
# The host of the server
85
- # Default: localhost
130
+ HOST
86
131
SERVER_HOST
87
132
88
- # Algorithm used for credential encryptian
133
+ # Algorithm used for credential encryption
89
134
CREDENTIALS_ALGORITHM
90
135
91
- # How many items are returned from a paginated endpoint
92
- # default: 10
136
+ # Pagination configuration
93
137
PAGINATE_DEFAULT
94
-
95
- # The maximum number of items that can be returned from a paginated endpoint
96
- # default: 100
97
138
PAGINATE_MAX
98
139
99
- # The log level for pino. Can be "trace", "debug", "info"
100
- # Defaults to "info"
101
- PINO_LOG_LEVEL
102
-
103
- # The interval in milliseconds that the agent manager should send a heartbeat to check for agents
104
- # default: 3000
140
+ # Agent configuration
105
141
HEARTBEAT_MSEC
106
-
107
- # How long the agent manager should wait before checking for agents after starting
108
- # default: 5000
109
142
MANAGER_WARM_UP_MSEC
143
+ AGENT_HEARTBEAT_INTERVAL_MSEC
144
+ AGENT_RESPONSE_TIMEOUT_MSEC
110
145
111
- # Slack developer mode is used to developer slack apps locally
112
- # Defaults to false
146
+ # Plugin configuration
113
147
SLACK_DEVELOPER_MODE
114
-
115
- # The directory plugins live in.
116
- # Defaults to ./plugins
117
- PLUGINS_DIRECTORY
118
-
148
+ DISCORD_DEVELOPER_MODE
149
+ PLUGIN_DIRECTORY
150
+
151
+ # Embedder configuration
152
+ EMBEDDER_DB_URL
153
+ EMBEDDER_REDIS_URL
154
+ EMBEDDER_REDIS_HOST
155
+ EMBEDDER_REDIS_PORT
156
+ EMBEDDER_PINECONE_PROJECT
157
+ EMBEDDER_PINECONE_CLOUD
158
+ EMBEDDER_PINECONE_REGION
159
+ EMBEDDER_JWT_SECRET
160
+ EMBEDDER_JWT_EXPIRES_IN
161
+ EMBEDDER_AUTH_ROUTE_MATCHER
162
+ AGENT_EMBEDDER_API_KEY
163
+
164
+ # Frigade configuration
165
+ FRIGADE_PRIVATE_KEY
119
166
120
167
# ██╗██████╗ ███████╗ ██████╗██╗ ██╗███████╗███╗ ██╗████████╗
121
168
# ██║██╔══██╗██╔════╝ ██╔════╝██║ ██║██╔════╝████╗ ██║╚══██╔══╝
@@ -127,44 +174,14 @@ PLUGINS_DIRECTORY
127
174
# The URL of the app portal
128
175
NEXT_PUBLIC_APP_URL = http://localhost:3000
129
176
130
- # The root url of the IDE server
131
- SERVER_ROOT_URL
132
-
133
177
# The root url of the API server
134
- # defaults to localhost:SERVER_PORT (3030)
135
178
VITE_APP_API_ROOT_URL
136
179
137
- # Enabled posthog. Defaults to false.
138
- VITE_APP_POSTHOG_ENABLED
139
-
140
- # The posthog API key for the app
141
- VITE_APP_POSTHOG_API_KEY
142
-
143
- # The frigade API key
144
- VITE_APP_FRIGADE_KEY
145
-
146
-
147
- # IDE CLIENT VARIABLES - optional
148
-
149
- # The port the server is running on
150
- # Default: 3030
180
+ # IDE CLIENT VARIABLES
151
181
VITE_APP_SERVER_PORT
152
-
153
- # The node environment to run the server in. Should be "production" or "development".
154
- # Defaults to development
155
182
VITE_APP_NODE_ENV
156
-
157
- # used for running the IDE locally
158
- VITE_APP_STANDALONE
159
-
160
- # Used by the client to set up a single project space.
161
- # Needs to also be on the server, and have a JWT key encoded with it.
162
183
VITE_APP_DEFAULT_PROJECT_ID
163
-
164
- # Used by the client to set up a single user space.
165
184
VITE_APP_DEFAULT_USER_ID
166
-
167
- # A default jwt token used to authenticate the default user with the default project id.
168
185
VITE_APP_DEFAULT_USER_TOKEN
169
186
170
187
# ██████╗ ██████╗ ██████╗ ████████╗ █████╗ ██╗
@@ -174,66 +191,49 @@ VITE_APP_DEFAULT_USER_TOKEN
174
191
# ██║ ╚██████╔╝██║ ██║ ██║ ██║ ██║███████╗
175
192
# ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝
176
193
177
- # Database stuff
178
- PORTAL_DATABASE_URL
179
- PORTAL_SHADOW_DATABASE_URL
194
+ # Note: The following are client/portal specific variables and may not
195
+ # be directly used in the server config.ts, but are kept for reference.
180
196
181
- # The URL of the app portal
182
- NEXT_PUBLIC_APP_URL
197
+ # Database configuration
198
+ PORTAL_DATABASE_URL
183
199
184
- # URL of the IDE API
200
+ # URLs for portal
185
201
NEXT_PUBLIC_API_URL = http://localhost:3030
186
-
187
- # The root url of the IDE server
188
202
IDE_SERVER_URL = http://localhost:3030
189
-
190
203
APP_URL = http://localhost:3000
191
-
192
- # URL for the API server
193
204
API_URL = http://localhost:3030
205
+ SERVER_ROOT_URL
194
206
195
- # Stripe stuff
207
+ # Stripe configuration
196
208
NEXT_PUBLIC_STRIPE_PUB_KEY
197
209
STRIPE_SIGNING_SECRET
198
210
STRIPE_WEBHOOK_SECRET
199
211
STRIPE_DATABASE_URL
200
212
201
- # POSTHOG
202
- NEXT_PUBLIC_POSTHOG_KEY
203
- NEXT_PUBLIC_POSTHOG_HOST
204
-
205
- # AWS CONFIGURATION KEYS
206
- NEXT_AWS_ACCESS_KEY
207
- NEXT_AWS_SECRET_KEY
208
- NEXT_AWS_REGION
209
- NEXT_AWS_BUCKET_NAME
210
- NEXT_AWS_BUCKET_ENDPOINT
211
- NEXT_PUBLIC_BUCKET_PREFIX
212
-
213
213
# Next auth secret (shared with IDE)
214
- NEXTAUTH_SECRET
214
+ NEXTAUTH_SECRET = magick_nextauth_secret_key_123
215
215
216
- # Needed to talk directly to the IDE server
216
+ # API key for the agent
217
217
AGENT_API_KEY
218
218
219
219
# Clerk configuration
220
220
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
221
- # The clerk secret key.
222
221
CLERK_SECRET_KEY
222
+ CLERK_WEBHOOK_SECRET
223
223
CLERK_WEBHOOK_LOGGING
224
224
CLERK_MIDDLEWARE_LOGGING
225
-
226
- # The URL for sign in
227
225
NEXT_PUBLIC_CLERK_SIGN_IN_URL
228
-
229
- # The URL for sign up
230
226
NEXT_PUBLIC_CLERK_SIGN_UP_URL
231
-
232
- # The URL to redirect to after sign up
233
227
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL
228
+ NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL
234
229
235
- # The URL to redirect to after sign in
236
- NEXT_PUBLIC_CLERK_SIGN_IN_URL
230
+ # Posthog configuration - portal specific
231
+ NEXT_PUBLIC_POSTHOG_ENABLED = false
232
+ NEXT_PUBLIC_POSTHOG_KEY = dummy_key
233
+ NEXT_PUBLIC_POSTHOG_HOST = https://app.posthog.com
234
+
235
+ # Embedder client URL - portal specific
236
+ NEXT_PUBLIC_EMBEDDER_SERVER_URL
237
237
238
- # Webhook secret for clerk
239
- CLERK_WEBHOOK_SECRET
238
+ # Frigade key - portal specific
239
+ VITE_APP_FRIGADE_KEY
0 commit comments