Environment Variables
Third-party services often request API credentials to access their endpoints and resources. Different parts of the Cognition platform that utilize such services require you to add your own set of credentials as environment variables. For example, LLMs hosted on external platforms need these credentials to function properly. Since environment variables contain sensitive information, their values are not displayed directly in the overview table. When creating a variable, users have the option to show or hide the value. For sensitive information like e.g. LLM api keys it’s recommended to hide it for security reasons.
The environment scope can be set at either the organization (scope: ORGANIZATION) or project (scope: PROJECT) level. When an environment variable is defined at the organization level, it can be accessed by any entity or user within the organization. This includes all projects, datasets, strategies, and other resources across the organization. On the other hand, when a variable is defined at the project level, it can only be accessed within that specific project by any entity or strategy within. It is important to note that when a project is deleted, the associated environment variables will also be removed.