lmconn guide

Overview

lmconn provides a unified connector layer for AI-agent workflows without requiring a persistent daemon or external npm dependencies. Built on modern ESM JavaScript and Node.js built-in node:sqlite (and distributed as standalone single-file binaries across five platforms), it combines a local credential and OAuth2 token vault with ten protocol command areas and an auto-generated cli.schema.v1 interface that lmscript imports directly as typed functions.

Architecture and schema bridge

Each connector area lives in its own module under src/cmd-*.js and exports both an async run(args) handler and a declarative ops array of cli.schema.v1 operation descriptors:

SQLite credential store and broker mode

Credentials are stored in a local SQLite database at ~/.lmconn/creds.db (overridable via the LMCONN_DB environment variable) with strict file permission checks:

Directory, identity, and cache connectors (LDAPv3, SAML 2.0, Valkey)

Version 0.2.0 expands lmconn beyond REST and OAuth2 to cover enterprise directory, single sign-on, and in-memory data protocols:

Agent and package ecosystem connectors (LLM, MCP, ACP, npm)

lmconn also bridges local AI agent protocols and software publishing:

Standard lmcode_std_v3 interoperability

When lmconn talks to companion lmctl servers such as lmldap, lmsaml, lmvalkey, or lmmock, those C++ and Go hosts expose endpoints built on the 226-signature lmcode_std_v3 REST and CLI standard (RestGet..RestOptions, RestHandler, CliCommand, CliOption, rest_config, rest_route, rest_serve, rest_stop, rest_cli). This allows LMScript orchestrations to spin up an in-memory mock or protocol server with _lmcode_ and immediately drive it through lmconn's typed cli.schema.v1 operations.