Core Feature
Trust in ConnectOnion
Flexible, bidirectional trust configuration for agent interactions
Quick Start
trust_config.py
Python REPL
Interactive
Three Forms of Trust
1. Trust Levels (String)
Simple predefined levels for common scenarios:
open→Trust everyone (development)
tested→Test before trusting (default)
strict→Verified agents only (production)
2. Trust Rules (Dict)
Fine-grained control with custom rules:
custom_trust.py
3. Trust Functions
Dynamic trust evaluation with custom logic:
dynamic_trust.py
Bidirectional Trust
Trust works both ways in ConnectOnion:
Outbound Trust
Who I trust to use
need("service", trust="...")
Inbound Trust
Who can use me
Agent(..., trust="...")
Choose Your Trust Level
Development?
Use open
Testing/Staging?
Use tested
Production?
Use strict
Common Patterns
- Progressive trust elevation
- Environment-based trust
- Mutual authentication
- Rate limiting & quotas
Security Note
Always use strict
trust in production environments to prevent unauthorized access.