You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add environment variable support for AI agent configuration
This commit adds support for configuring the AI agent via environment variables,
following the same pattern used for other dashboard configurations.
Two configuration methods are supported:
1. Full JSON configuration via PARSE_DASHBOARD_AGENT_CONFIG
- Allows complex multi-model setups
- Accepts a JSON string with the complete agent configuration
2. Individual environment variables for simple single-model setups:
- PARSE_DASHBOARD_AGENT_MODEL_NAME
- PARSE_DASHBOARD_AGENT_MODEL_PROVIDER
- PARSE_DASHBOARD_AGENT_MODEL
- PARSE_DASHBOARD_AGENT_API_KEY
This enhancement makes it easier to deploy Parse Dashboard in containerized
environments and improves security by allowing API keys to be stored as
environment variables rather than in configuration files.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
PARSE_DASHBOARD_CONFIG: undefined // Only for reference, it must not exist
215
215
PARSE_DASHBOARD_COOKIE_SESSION_SECRET: undefined // set the cookie session secret, defaults to a random string. Use this option if you want sessions to work across multiple servers, or across restarts
216
+
PARSE_DASHBOARD_AGENT_CONFIG: undefined // JSON string containing the full agent configuration with models array
217
+
PARSE_DASHBOARD_AGENT_MODEL_NAME: undefined // Display name for the AI model (e.g. "ChatGPT 4.1")
218
+
PARSE_DASHBOARD_AGENT_MODEL_PROVIDER: undefined // AI provider identifier (e.g. "openai")
219
+
PARSE_DASHBOARD_AGENT_MODEL: undefined // Specific model name from the provider (e.g. "gpt-4.1")
220
+
PARSE_DASHBOARD_AGENT_API_KEY: undefined // API key for authenticating with the AI provider
216
221
217
222
```
218
223
@@ -1305,6 +1310,32 @@ To configure the AI agent for your dashboard, you need to add the `agent` config
1305
1310
1306
1311
The agent will use the configured models to process natural language commands and perform database operations using the master key from your app configuration.
1307
1312
1313
+
### Environment Variables
1314
+
1315
+
You can also configure the AI agent using environment variables, which is useful for containerized deployments or when you want to avoid storing API keys in configuration files.
1316
+
1317
+
#### Option 1: Full JSON Configuration
1318
+
1319
+
For complex setups with multiple models, you can provide the entire agent configuration as a JSON string:
0 commit comments