Non-interactive use
Lime exposes several non-interactive surfaces. Each is suited to a different shape of automation.
Run a slash command against a saved session
lime --resume latest /statuslime --resume latest /commitlime --resume <session-id> /prlime --resume path/to/session.jsonl /memoryTrailing tokens after --resume must be slash commands. If no session
reference is given, latest is implied. Only commands marked [resume]
in /help are valid here — interactive-only commands return a clear
error pointing you at the correct invocation.
Snapshot subcommands
These print structured information and exit. They do not require an existing session.
lime status # session + model + provider + workspace snapshotlime sandbox # sandbox isolation snapshotlime version # version + build infolime system-prompt # render the resolved system prompt for the cwdlime bootstrap-plan # print the bootstrap-phase skeletonlime agents # list configured agentslime skills # list discovered skillslime system-prompt accepts --cwd PATH and --date YYYY-MM-DD to
inspect what the system prompt would look like for a different working
directory or date.
Configuration & resource management
lime init # bootstrap repo-local Lime fileslime login [...] # store credentials (see Installation)lime logout [...] # clear credentialslime model list|add|rm # manage user entries in ~/.lime/models.jsonlime command list|create|... # manage user-scope custom slash commandslime mcp list|add|... # manage MCP serverslime remote pair|devices|... # manage remote-control devicesBridge mode (programmatic)
For deeper integration, run the JSON-RPC 2.0 bridge directly:
# stdio (one client per process — VS Code uses this)lime bridge
# WebSocket (bound to 127.0.0.1, bearer-token gated)lime bridge --ws --ws-port 9111 --ws-token "$(openssl rand -hex 32)"
# WebSocket with device-registry authlime bridge --ws --device-auth
# Inspect a registered bridge enginelime bridge --statusThe bridge protocol surface includes initialize, session.create / list / continue / fork / compact, turn.send / cancel, permission.respond,
slash.list, and shutdown, plus push notifications (runtime.event,
turn.completed, session.created, permission.request).
This is the same protocol the VS Code extension and the Web companion (PWA) speak. Use it directly when you want to embed Lime in another tool.
Structured JSON output
Lime can constrain a turn’s output to a JSON Schema with --output-schema:
lime --output-schema ./schema.json --resume latest /…See Structured output for the full pattern.
What’s intentionally not in this list
- There is no
--output-formatflag. The CLI parser explicitly rejects it. - There is no
--print/-pshortcut. - There is no
lime prompt "…"subcommand. - Plain
lime "some prompt"is not a one-shot — unrecognized first arguments raiseunknown subcommand.
If you need a one-shot prompt-and-exit flow, use the bridge with a
custom client, or open a session and drive it with --resume plus a
slash command.