Skip to main content
Glama

L2M

Put AI agents into production, on your own servers.

L2M (lsquarem) is an open-source, self-hosted orchestrator for AI agents and workflows. Build them visually, connect any MCP server, and control every tool call with approvals, budgets and replay tests.

Live demo in your browser · Docs · 5-minute tutorial · Templates

The L2M studio: an agent with its chat model, memory and MCP tools, and the run tape of a finished run

Run it

You need Docker with Compose. Then:

curl -fsSL https://lsquarem.com/install.sh | sh

Open http://localhost:8080 and sign in as admin@l2m.local with the password the installer prints. Prefer not to pipe a script into a shell? Two commands do the same, in an empty folder:

curl -fsSL https://raw.githubusercontent.com/TensorGreed/l2m/v0.1.0/docker-compose.quickstart.yml -o docker-compose.yml
docker compose up -d

The generated password is printed once in docker compose logs api.

More (ports, keys, upgrades, Helm, Postgres): Install with Docker. To work on L2M itself you need Node.js 24+ and pnpm 10+: see Run from source.

Docker (amd64/arm64), Helm, SQLite or Postgres. Nothing is hosted by us, and L2M does not phone home.

Related MCP server: mlua-swarm

What people use it for

  • One MCP gateway for your team. Serve your MCP servers and workflows to any MCP client through one endpoint, with per-client tokens, allow/deny rules per tool and per-tool usage and cost.

  • A human approves before the agent writes. Agents read freely, pause for approval before write tools, and stop at a budget.

  • CI for agents. Record a run, change the prompt or model, replay, and block the release if the behaviour changes.

What's inside

Visual builder with ~140 node types · describe-a-workflow builder · import workflow exports from other visual builders · supervisor/worker agents · OpenAI-compatible AI gateway · RBAC, SSO, audit log · OpenTelemetry traces · VS Code extension. Full list in the docs.

Pre-1.0 and moving fast. MIT licensed. Questions and ideas: Discussions.

Learn MCP and AI agents

Free guides at lsquarem.com/docs/learn, useful whether or not you use L2M:

Also the Glossary, ready-to-import Recipes and the Blog.

Docs map

I want to

Read

Install, sign in, run a first workflow

Install with Docker, Quickstart

Set up the repo, run the tests, build

Run from source, CI pipeline

Configure environment variables

Environment, Postgres

Understand the architecture and layout

Architecture overview

Know the workflow file format and samples

Workflow JSON and samples

Call the HTTP API

API endpoints

Sign-in, roles and RBAC

Auth and RBAC

Secure and call webhooks (bearer, HMAC, Postman examples)

Secure webhooks

Store credentials

Secrets

Organize and debug workflows in the editor

Workflow editor

Triggers, integrations, chat models, Azure and Qdrant nodes

Triggers and integrations, Node reference

Agent loop, ports, memory, tool cache, output limits

Agent loop

Pass data between nodes

Templates and expressions

Connect an MCP server

MCP integration

Render PDFs, parse model output

Core nodes

Add a provider, connector or MCP adapter

Providers, Connectors, MCP

Ship a community node package

Community nodes, l2m-nodes-template

Use the VS Code extension

VS Code extension

Verify a release image

Verify a release

Reference projects (helpdesk agent, support triage, VS Code repo reviewer) are in l2m-samples.

Repository layout

A pnpm and TypeScript monorepo.

  • apps/api: Fastify API, SQLite or Postgres

  • apps/web: React and React Flow studio

  • apps/docs: the VitePress docs

  • apps/vscode-l2m-agent: the VS Code extension

  • packages/: shared (schemas and node definitions), workflow-engine, agent-runtime, provider-sdk, mcp-sdk, connector-sdk

  • samples/workflows: sample workflows

  • docs/: the lsquarem.com landing page

The full layout is in the architecture overview.

Contributing, security, license

L2M is MIT licensed and welcomes adapters, MCP integrations, docs, bug reports and real-world patterns. Start with CONTRIBUTING.md; participation is governed by the Code of Conduct.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      C
      quality
      A
      maintenance
      Self-hosted, source-available AI workflow automation platform. Build multi-agent, RAG, and tool-using pipelines on a visual canvas and publish any workflow as an MCP server (stdio/SSE/Streamable HTTP). Also an MCP client via the agent node.
      2
      1,820
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server that executes Blueprint workflows (flow.ir) with swarm operations, dispatching agent steps to backends like Lua, Rust, processes, or interactive Operator sessions.
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Self-hosted workspace MCP gateway that registers MCP servers, stores secrets encrypted, mints agent keys, and shares a unified tool library across multiple AI harnesses.
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables autonomous multi-agent orchestration using directed acyclic graph workflows to interact with external developer infrastructure such as Git, Postgres, and Docker through safety-gated MCP servers.
      Apache 2.0