The ENV tab (in the sidebar when Code view is active) lets you manage environment variables for your project. Variables are injected into the WebContainer’s process environment and are available to your app at runtime.Documentation Index
Fetch the complete documentation index at: https://botflow.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Viewing variables
Switch to Code view, then click the ENV tab in the left sidebar. The panel shows two sections:System variables (read-only)
These are set automatically by the platform and cannot be changed. A common example isVITE_CONVEX_URL, which is injected whenever your project has a Convex backend configured. Your app can read these like any other env variable.
User variables
Variables you add yourself. These are persisted with the project and restored every time you open the workspace.Adding a variable
In the ADD VARIABLE section at the bottom of the ENV panel:- Enter the key (automatically uppercased, e.g.
STRIPE_SECRET_KEY). - Enter the value.
- Optionally check Mark as secret — secret values are masked in the UI after saving and never shown in plaintext again.
- Click + Add.
Bulk import
Click the upload icon at the top of the ENV panel to paste in a.env file’s contents all at once. The format is standard dotenv:
Exporting variables
Click the download icon to export all user variables as a.env file. Secrets are excluded from the export for security.
How variables are used
- Dev server — variables are injected into the WebContainer’s environment before the dev server starts. Your Vite or Next.js app can read them via
import.meta.env.VITE_*orprocess.env.*. - Deploy — when you publish to Cloudflare Pages, user variables are bundled into the build environment. Secrets are passed as encrypted Cloudflare environment variables.
- AI agent — the agent does not read variable values, only their keys. This means the agent can reference
VITE_CONVEX_URLin generated code without ever seeing the actual URL.
Security
- Secrets are stored encrypted in Botflow’s database and are never included in exports or logs.
- Non-secret variables are stored in plaintext and visible to anyone with access to the project.
- Never put production secrets (payment keys, database passwords) in non-secret variables.