Configuration Guide¶
Configure AgenticAI for your environment
Flexible configuration options for 400+ modules and 237 enterprise features
Enterprise Configuration
For advanced options including multi-tenant, high-availability, and compliance settings, see Enterprise Documentation.
1. Configuration Methods¶
You can configure AgenticAI in three ways:
- Programmatically – Using
set_config()fromagenticaiframework.configurations - Configuration File – Using the
ConfigurationManagerclass - Environment Variables – Setting variables before running your application
2. Common Configuration Keys¶
| Key | Description | Example |
|---|---|---|
llm_provider | LLM provider to use | "openai" |
api_key | API key for LLM provider | "sk-xxxx" |
memory_backend | Memory storage backend | "in_memory" |
log_level | Logging verbosity | "INFO" |
default_agent | Default agent name | "default_agent" |
3. Programmatic Configuration¶
| Python | |
|---|---|
4. Using Environment Variables¶
| Bash | |
|---|---|
5. Default Configuration¶
| Python | |
|---|---|
6. Advanced Configuration¶
- Multiple LLM Providers – Register multiple providers and switch dynamically
- Custom Memory Backends – Implement custom backends for persistence
- Logging – Adjust
log_levelto"DEBUG"for detailed logs
7. Verifying Configuration¶
| Python | |
|---|---|
8. Environment-Specific Configurations¶
Maintain separate configurations for different environments:
config_dev.pyfor developmentconfig_staging.pyfor stagingconfig_prod.pyfor production
Load dynamically based on environment:
| Python | |
|---|---|
9. Dynamic Configuration Updates¶
Update configuration values at runtime:
| Python | |
|---|---|
10. Secrets Management¶
For sensitive values like API keys, use a secrets manager:
- AWS Secrets Manager
- HashiCorp Vault
- Azure Key Vault
- Google Secret Manager
11. Best Practices¶
Configuration Best Practices
- Store API keys securely (environment variables or secret managers)
- Never commit sensitive data to version control
- Use different configurations for dev/staging/production
- Document all configuration keys
- Use
.envfiles for local development withpython-dotenv
Related Documentation¶
- Configuration Reference - Complete reference for all settings
- Deployment - Production deployment configuration
- Security - Security configuration best practices