Enclave provides pre-configured security profiles that balance functionality against risk. Choose the appropriate level based on your trust model and use case.Documentation Index
Fetch the complete documentation index at: https://docs.agentfront.dev/llms.txt
Use this file to discover all available pages before exploring further.
Using Security Levels
Security Level Comparison
| Setting | STRICT | SECURE | STANDARD | PERMISSIVE |
|---|---|---|---|---|
| timeout | 5s | 15s | 30s | 60s |
| maxIterations | 1,000 | 5,000 | 10,000 | 100,000 |
| maxToolCalls | 10 | 50 | 100 | 1,000 |
| maxConsoleCalls | 100 | 500 | 1,000 | 10,000 |
| maxConsoleOutputBytes | 64KB | 256KB | 1MB | 10MB |
| sanitizeStackTraces | YES | YES | NO | NO |
| blockTimingAPIs | YES | NO | NO | NO |
| allowUnboundedLoops | NO | NO | YES | YES |
| unicodeSecurityCheck | YES | YES | NO | NO |
When to Use Each Level
STRICT
Use for maximum security with untrusted code:- AI-generated scripts from external sources
- User-submitted code
- Third-party plugin code
- Any code where you cannot verify the source
SECURE
Balanced security for semi-trusted scenarios:- Internal automation scripts
- Validated AI-generated code
- Scripts from authenticated users
STANDARD
Default level for trusted internal use:- Internal workflow automation
- Development and testing
- Scripts you control
PERMISSIVE
Minimal restrictions for controlled environments:- Internal testing
- Performance benchmarking
- Trusted scripts where you need maximum flexibility
Customizing Security Levels
You can start with a preset and override specific settings:Defense-in-Depth
Security levels configure multiple defense layers:- AST Validation - Blocked constructs vary by level
- Resource Limits - Timeout, iterations, tool calls
- Output Controls - Console rate limiting, output size
- Stack Sanitization - Information leakage prevention
Related
- Configuration - All configuration options
- Worker Pool - OS-level isolation presets
- Double VM - Enhanced security layer