Workspace-level environment variables
Workspace-level environment variables are shared across all projects in your workspace. To set them, navigate to Workspace settings → Environment variables.Pre-defined variables
Openlayer provides pre-defined fields for commonly used API keys:OPENAI_API_KEYANTHROPIC_API_KEYAZURE_OPENAI_API_KEYAZURE_OPENAI_ENDPOINTGOOGLE_API_KEY
Custom variables
You can also add arbitrary key-value pairs for any other environment variables your system requires.Project-level environment variables
Project-level environment variables work the same way as workspace-level ones, but are specific to a single project. They are only used during development mode runs and LLM-based tests within that project. To set them, navigate to Project settings → Select your project → Environment variables.If an environment variable is already set at the workspace level, you will see
a tag indicating that it is inherited on the project-level page. You can
override inherited variables by setting a new value at the project level.

