lmplayer guide

Overview

lmplayer is an open-source AI coding agent designed for unattended automation, scripted CLI pipelines, and single-user REST services. Derived from OpenCode (baseline 9f69463f1d), lmplayer replaces interactive-TUI-first defaults with non-interactive CLI execution, persisted background shell jobs, an internal five-field cron scheduler, durable-memory organize compaction, and deterministic file-based permissions.

Non-interactive CLI, FIFO service gate, and configuration

Running lmplayer "your prompt" or piping stdin executes immediately without opening a full-screen TUI (use lmplayer tui when an interactive terminal UI is wanted). In service mode (lmplayer serve --hostname 127.0.0.1 --port 4096), a process-wide FIFO execution gate serializes turn execution across sessions while keeping read-only health, metrics, and control endpoints responsive and allowing in-process subagents to bypass the gate.

Project configuration discovery is strictly bounded to the starting directory and its immediate .opencode directory rather than walking parent directories, preventing accidental inheritance from outer workspaces. Application storage uses XDG directories named lmplayer (~/.config/lmplayer, ~/.local/share/lmplayer).

Background shell jobs, internal cron, and durable-memory compaction

Three runtime capabilities support long-running autonomous sessions:

Positive tool provisioning, structured Linux tools, and local Ollama

Agent profiles can restrict tool definitions and filesystem scope: