Environment variables
Store keys and values that Terno AI can use when it runs code in your workspace.
Environment variables hold values Terno needs when it runs code for you, such as an API key for an outside service.
Add a variable
Section titled “Add a variable”Open Environment Variables from the sidebar and click Add Variable. A new row appears: switch it on with Enable, type a Name and a Value, then click Add.
To change existing variables, edit them or switch Enable on or off, then click Apply Changes.
Naming rules
Section titled “Naming rules”- Use letters, numbers and underscores, for example
WEATHER_API_KEY. - A name can’t start with a number, and can’t be just
_. - Each name can be used once.
How Terno uses them
Section titled “How Terno uses them”Every enabled variable is set as an environment variable in the workspace where Terno runs code, in chats and in App Services, including scheduled runs. Ask Terno to use it by name, for example “Call the weather API with the key in WEATHER_API_KEY”. In Python, code reads it with os.environ["WEATHER_API_KEY"].
Who can see them
Section titled “Who can see them”Your environment variables are yours alone. Teammates in the same workspace don’t see them, and their chats don’t use them. When a teammate runs an app you shared, it uses their variables, not yours.
You don’t need environment variables for your databases and apps. Connect those with connectors instead.