lmconn

lmconn is a zero-dependency connector CLI and cli.schema.v1 module for AI-agent workflows with an AES-256-GCM encrypted SQLite credential and OAuth2 store. It exposes 56 operations across HTTP, OAuth2, LLM providers, GitHub, Valkey, LDAPv3, SAML 2.0, MCP, ACP, and npm.

Quick reference

curl -L https://github.com/lmctl-ai/lmconn/releases/latest/download/lmconn-linux-x64.tar.gz | tar xz
./lmconn-linux-x64 --version
lmconn --cli-schema --json
Command areaSubcommands / operationsPurpose
cred / keycred set|get|list|delete|path|store|oauth-store|encrypt-existing, key rotate|backupManage AES-256-GCM encrypted secrets, instance/data keys, and broker grants in ~/.lmconn/creds.db.
oauthauthorize, device, refresh, status, listRun OAuth2 authorization-code + PKCE and device-code flows across 69 built-in service presets.
llmproviders, chat, probeQuery API providers (deepseek, openrouter, ollama-cloud) and CLI agents (claude, codex, agy, kimi).
httprequestSend HTTP/HTTPS requests with automatic stored API-key or OAuth2 bearer token injection and refresh.
githubuser, reposInspect the authenticated GitHub user or paginate organization and user repository names.
valkeyping, get, set, del, cmdConnect to Valkey or Redis servers over native RESP wire protocol or lmvalkey REST endpoints.
ldapping, bind, whoami, search, get, add, modify, compare, delExecute RFC 4511/4516/4532 LDAPv3 operations over native ASN.1 BER or lmldap REST endpoints.
samlping, metadata, sp-metadata, users, user-get, user-add, user-del, authn, assertion, verifyManage users and issue or verify signed SAML 2.0 responses against lmsaml servers.
mcp / acp / npmmcp tools|resources|prompts|read|prompt|call|session, acp chat, npm pack|publish|whoamiDrive stdio MCP servers, ACP agent sessions, and credential-protected npm package publishing.
# Direct CLI usage
lmconn cred set deepseek api_key --env DEEPSEEK_API_KEY
lmconn http request https://api.github.com/zen
lmconn ldap search --url "ldap://127.0.0.1:3389/dc=example,dc=com?cn,mail?sub?(cn=Alice)"
lmconn valkey set session:1 '{"active":true}' --port 6379 --mode resp

# LMScript cli.schema.v1 import
import "schema/lmconn.cli.schema.v1.json";
r = lmconn.github_repos("lmctl-ai", {limit: 5});
require(r.status == "ok" && r.result.ok, json_stringify(r));
println(json_stringify(r.result));

Documentation pages

Source repository and releases