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 area | Subcommands / operations | Purpose |
|---|---|---|
| cred / key | cred set|get|list|delete|path|store|oauth-store|encrypt-existing, key rotate|backup | Manage AES-256-GCM encrypted secrets, instance/data keys, and broker grants in ~/.lmconn/creds.db. |
| oauth | authorize, device, refresh, status, list | Run OAuth2 authorization-code + PKCE and device-code flows across 69 built-in service presets. |
| llm | providers, chat, probe | Query API providers (deepseek, openrouter, ollama-cloud) and CLI agents (claude, codex, agy, kimi). |
| http | request | Send HTTP/HTTPS requests with automatic stored API-key or OAuth2 bearer token injection and refresh. |
| github | user, repos | Inspect the authenticated GitHub user or paginate organization and user repository names. |
| valkey | ping, get, set, del, cmd | Connect to Valkey or Redis servers over native RESP wire protocol or lmvalkey REST endpoints. |
| ldap | ping, bind, whoami, search, get, add, modify, compare, del | Execute RFC 4511/4516/4532 LDAPv3 operations over native ASN.1 BER or lmldap REST endpoints. |
| saml | ping, metadata, sp-metadata, users, user-get, user-add, user-del, authn, assertion, verify | Manage users and issue or verify signed SAML 2.0 responses against lmsaml servers. |
| mcp / acp / npm | mcp tools|resources|prompts|read|prompt|call|session, acp chat, npm pack|publish|whoami | Drive 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
- Skill — agent authoring rules, commands, credential safety rules, exit codes, and verification steps.
- Guide — architecture, SQLite credential and broker store design, protocol connectors (OAuth2, LDAPv3, SAML 2.0, Valkey, MCP), and schema bridge integration.
- Reference — complete table of all 56 cli.schema.v1 operations, CLI flags, environment variables, error codes, and exit codes.