Skip to main content
Run Laddr agents locally using an in-memory queue and SQLite database. No Docker or Redis required — ideal for debugging, development, and performance benchmarking.

Overview

Local runtime mode uses:
  • In-Memory Queue - MemoryBus for single-process communication
  • SQLite Database - Local file-based storage for traces
  • No External Dependencies - No Docker, Redis, or PostgreSQL needed
Perfect for quick testing, debugging, and development. For multi-agent workflows with delegation, use Redis or Kafka.

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:
Or using the runner script:

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 started
  • task_complete - Task execution completed
  • llm_usage - LLM API call with token usage
  • tool_call - Tool invocation
  • tool_error - Tool execution error
  • autonomous_think - Agent reasoning step

Query Traces


Running Workers Locally

Single Worker

Start a worker process:

Multiple Workers

Run multiple workers in separate terminals:
Delegation (agents handing tasks to other workers) requires a queue backend such as Redis or Kafka to route tasks between processes. MemoryBus only supports single-process communication.

Known Limitations

MemoryBus Limitations

  • ⚠️ Single Process Only - MemoryBus only 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
Not suitable for:
  • 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

Then start workers:

Notes

  • 🧠 MemoryBus is 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=redis or QUEUE_BACKEND=kafka

Next Steps