Overview
Local runtime mode uses:- In-Memory Queue -
MemoryBusfor single-process communication - SQLite Database - Local file-based storage for traces
- No External Dependencies - No Docker, Redis, or PostgreSQL needed
Configuration
Set up your environment file:No Redis or Docker dependencies are required. SQLite stores traces locally in
laddr.db.Running Agents
Single Agent
Run a single agent locally:Agent with Tools
Run an agent that uses tools:Sequential Workflows
Run multiple agents in sequence:Debugging and Traces
View Traces
Traces are stored in SQLite:Common Events
Trace events include:task_start- Task execution startedtask_complete- Task execution completedllm_usage- LLM API call with token usagetool_call- Tool invocationtool_error- Tool execution errorautonomous_think- Agent reasoning step
Query Traces
Running Workers Locally
Single Worker
Start a worker process:Multiple Workers
Run multiple workers in separate terminals:Known Limitations
MemoryBus Limitations
- ⚠️ Single Process Only -
MemoryBusonly works within one process - ⚠️ No Inter-Process Delegation - Can’t delegate between separate worker processes
- ⚠️ No Persistence - Messages are lost on process restart
When to Use Memory Backend
✅ Good for:- Single-agent testing
- Debugging agent logic
- Development and prototyping
- Performance benchmarking
- Multi-agent workflows with delegation
- Production deployments
- Distributed systems
- High availability requirements
Guidelines
Best Practices
- ✅ Use single-agent mode for debugging
- ✅ Use sequential mode for chained workflows
- ✅ Inspect traces to verify execution
- ✅ Use Redis/Kafka for multi-agent delegation
Avoid
- 🚫 Don’t use delegation without workers
- 🚫 Don’t use for production workloads
- 🚫 Don’t expect message persistence
Switching to Distributed Mode
When ready for multi-agent workflows:Switch to Redis
Switch to Kafka
Notes
- 🧠
MemoryBusis a singleton that handles agent task routing in the same process - 🗄️ SQLite logging ensures full trace visibility for debugging
- 🚀 For distributed execution, switch to
QUEUE_BACKEND=redisorQUEUE_BACKEND=kafka
Next Steps
- Scaling & Operations - Production deployment
- Agent Configuration - Configure agents
- Installation - Full setup guide