Core Architecture
Eko’s environment-aware architecture consists of three key layers:
- Universal Core
- Environment-Specific Tools
- Environment Bridge
1. Universal Core
The framework’s core layer provides environment-independent functionality:
- Workflow management and execution
- Tool Registration management
- LLM integration (Claude/OpenAI)
- Hook system
Each environment provides its own optimized set of tools:
Learn more: Available Tools;
3. Environment Bridge
The bridge layer handles:
- Environment detection
- Tool registration and access control
- Resource management
- Security boundaries
Web Environment Security
When using Eko in a web environment, follow these security best practices:
-
Never expose API keys in client-side code
-
Implement server-side authentication
-
Handle user authentication state
Each environment provides a loadTools()
helper for easy setup:
Security and Access Control
Eko implements environment-appropriate security measures:
-
Browser Extension
- Respects extension permissions
- Manages tab and window access
- Handles cross-origin interactions
-
Web Environment
- Operates within browser sandbox
- Limited to web-safe APIs
- No direct system access
- Server-side API key management
- User authentication required
-
Node.js Environment
- Full system access based on Node permissions
- User-approved file operations
- Command execution safeguards
- Direct API key usage permitted
-
Fellou Browser Environment
- User-approved computer use
- Manages tab and window access
- Server-side API key management
Best Practices
-
Environment Detection
-
Tool Registration
Learn more: Custom Tools.
-
Error Handling
Learn more: Hook System.
Next Steps