All variables below are read by install.sh if set in your environment when you invoke it. They take precedence over values in .env.
Variable Default Purpose DEEPSQL_INITIAL_ADMIN_EMAIL(prompted) Skip the email prompt DEEPSQL_INITIAL_ADMIN_PASSWORD(prompted) Skip the password prompt. Must be 12+ chars
Set both to run the installer with no TTY (e.g. CI, UserData).
Variable Default Purpose AZURE_OPENAI_KEY(bundled) Override the bundled Azure OpenAI key AZURE_OPENAI_ENDPOINT(bundled) Override the bundled Azure OpenAI endpoint DEEPSQL_SKIP_REMOTE_CONFIGfalseSet to true to skip the bundled-config fetch entirely
Variable Default Purpose DEEPSQL_SKIP_MCPfalsetrue to skip the npm install -g @deepsql/mcp@latest step and the agent-config prompt entirely. Use for CI and other headless installs.
The interactive “which coding agent(s) will you use” prompt also auto-skips when no TTY is attached, so unattended installs (CloudFormation UserData, CI) don’t hang.
Variable Default Purpose DEEPSQL_INSTALL_DOCKER(prompted) true to auto-install Docker without prompting; false to refuse and exitDEEPSQL_SKIP_IMAGE_PULLfalsetrue to skip docker compose pull (uses local images)DEEPSQL_BACKEND_IMAGE(from .env) Override the backend image ref DEEPSQL_FRONTEND_IMAGE(from .env) Override the frontend image ref
Variable Default Purpose DEEPSQL_FRONTEND_PORT3035Host port for the UI DEEPSQL_BACKEND_PORT9085Host port for the API DEEPSQL_POSTGRES_PORT5432Host port for the internal Postgres DEEPSQL_VALKEY_PORT6379Host port for Valkey
Variable Default Purpose DEEPSQL_PROJECT_NAMEdeepsql-selfhostCompose project name DEEPSQL_ENV_FILE<repo>/.envAlternate .env file location DEEPSQL_COMPOSE_FILE<repo>/docker-compose.ymlAlternate compose file DEEPSQL_INSTALL_DIR$HOME/.deepsql/self-hostWhere the bundle is extracted when piped from the internet
Variable Default Purpose DEEPSQL_REPO_OWNERDeepSQLAIGitHub org to download the bundle from DEEPSQL_REPO_NAMEdeepsql-self-hostRepo name DEEPSQL_SELF_HOST_REFmainBranch or tag (v1.2.3) to install DEEPSQL_SELF_HOST_ARCHIVE_URL(computed) Full archive URL override
Variable Default Purpose VECTOR_STORE_TYPEpgvectorpgvector or azureAZURE_SEARCH_ENABLEDfalseEnable Azure AI Search AZURE_SEARCH_ENDPOINT— Required if azure selected AZURE_SEARCH_API_KEY— Required if azure selected AZURE_SEARCH_INDEX_NAME— Required if azure selected
export DEEPSQL_INITIAL_ADMIN_EMAIL = ' admin@acme.com '
export DEEPSQL_INITIAL_ADMIN_PASSWORD = ' a-very-strong-password-123 '
export DEEPSQL_INSTALL_DOCKER = true
export DEEPSQL_FRONTEND_PORT = 8080
curl -fsSL https://install.deepsql.ai/install.sh | bash