Quick Start
How It Works
NetworkingConfig
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
type | NetworkingType | UNRESTRICTED | Network access level |
allowed_hosts | Optional[List[str]] | None | Permitted hostnames for LIMITED type |
allow_mcp_servers | bool | True | Allow MCP server connections |
allow_package_managers | bool | True | Allow package manager access |
NetworkingType Enum
Examples
PackagesConfig
Configuration Options
| Package Manager | Type | Default | Description |
|---|---|---|---|
pip | Optional[List[str]] | None | Python packages |
npm | Optional[List[str]] | None | Node.js packages |
apt | Optional[List[str]] | None | Debian/Ubuntu system packages |
cargo | Optional[List[str]] | None | Rust packages |
gem | Optional[List[str]] | None | Ruby packages |
go | Optional[List[str]] | None | Go modules |
Examples
Common Patterns
Migration from Dict Config
Environment-Specific Configurations
Package Templates
Best Practices
Security Configuration
Security Configuration
Use LIMITED networking in production environments:
Package Management
Package Management
Organize packages logically and minimize dependencies:
Backward Compatibility
Backward Compatibility
Both dict and typed configs work seamlessly:
Type Safety Benefits
Type Safety Benefits
- IDE Support: Auto-completion and type checking
- Runtime Validation: Early error detection
- API Compatibility: Seamless serialization with
to_dict() - Documentation: Self-documenting configuration structure
Related
Managed Vault
OAuth credentials management for managed agents
Sandboxed Agent
Local agent loop with configurable tool sandboxing

