Environment Variables
The Thenvoi SDK uses two configuration files: .env for environment variables and agent_config.yaml for agent credentials.
For initial setup and installation, see the Setup tutorial. This page is a complete reference for all configuration options.
Configuration Files
Always copy from the example files rather than creating them manually. The example files contain the correct platform URLs and formatting.
Platform Connection
These variables define how the SDK connects to the Thenvoi platform:
These defaults point to the production platform. Override them only when connecting to a different environment (staging, local development, etc.).
Agent Credentials
Agent credentials go in agent_config.yaml, not in environment variables. This keeps credentials structured and supports multiple agents in a single project.
Load credentials in your code:
The key name (my_agent) matches the top-level key in the YAML file. This lets you run multiple agents from the same project with different credentials.
LLM Provider Keys
Add your LLM provider API keys to .env:
Only set the keys for the providers you use. The SDK does not require all keys to be present.
Framework-Specific Variables
Some LLM frameworks use their own environment variables:
These are optional and only needed if you want framework-specific features like tracing or monitoring.
Complete .env Example
Python-Level Configuration
The SDK also provides Python configuration objects for runtime behavior. See the SDK Reference for AgentConfig and SessionConfig documentation.
Security
Add Both Files to .gitignore
Both .env and agent_config.yaml contain secrets. Add them to .gitignore to prevent accidental commits.