Environment Variables
At Creation
Section titled “At Creation”cell = Cell( envs={ "DATABASE_URL": "postgresql://...", "API_KEY": "sk_live_...", "DEBUG": "true", })Runtime Updates
Section titled “Runtime Updates”# Get current environment variablesenvs = cell.get_envs()
# Merge new variables (existing keys preserved)cell.set_envs({"NEW_VAR": "value"})From the SDK
Section titled “From the SDK”Environment variables are available to executed code:
result = cell.run("import os; print(os.environ.get('API_KEY'))")print(result.stdout) # "sk_live_..."