Skip to content

CLI reference

This page is verified against the clap-style argument parser in crates/lime-cli/src/cli/parser.rs. Anything not listed here is not accepted.

Synopsis

lime [OPTIONS] [SUBCOMMAND] [ARGS...]

Run lime with no arguments to start the interactive REPL.

Top-level flags

These flags work without a subcommand and shape REPL behavior.

FlagTypeDefaultDescription
--help, -hboolPrint help and exit.
--version, -VboolPrint version and exit.
--model SLUGstringgpt-5.4Active model. Accepts any slug from the merged catalog (built-ins + ~/.lime/models.json).
--permission-mode MODEenumdefaultOne of default, plan, acceptEdits, bypassPermissions, dontAsk.
--dangerously-skip-permissionsboolfalseForce bypassPermissions.
--settings FILE_OR_JSONpath | inline JSONExtra settings — file path or inline JSON, applied last (highest precedence).
--setting-sources LISTcsvallRestrict the merged config to a CSV of policy, user, project, local, flag.
--add-dir DIRECTORYpath (repeatable)Additional directories the agent may read/write (in addition to the workspace).
--continue, -cboolfalseResume the most recent session.
--resume [REF]path | id | latestlatestResume a specific session. Trailing tokens after --resume must be slash commands.
--allowedTools TOOLScsv (repeatable)allRestrict the enabled tool set.
--reasoning-effort LEVELenummediumOne of none, low, medium, high, xhigh.
--verbosity LEVELenummediumOne of low, medium, high.
--service-tier TIERstringProvider service tier (e.g. default, priority on OpenAI).
--output-schema FILEpathConstrain the final response to a JSON Schema. See Structured output.
--ide MODEauto | off | portautoIDE companion mode. auto discovers a running VS Code companion via ~/.lime/ide/.

Subcommands

lime init

Bootstrap repo-local Lime files: AGENTS.md, .lime/, .lime.json, and relevant .gitignore entries.

lime status

Print a snapshot of session, model, token, workspace, and provider state.

lime sandbox

Print the sandbox isolation snapshot. See Sandboxing.

lime help, lime version

Aliases for --help and --version.

lime bootstrap-plan

Print the bootstrap-phase skeleton used by lime init.

lime agents [args...]

List or manage configured agents. With no args, lists all.

lime skills [args...]

List or manage discovered skills.

lime command|cmd|commands [args...]

Manage user-scope custom slash commands at ~/.lime/commands/*.md. Subcommands include list, show, create, edit, delete, help.

lime system-prompt

Render the resolved system prompt as it would be assembled for a turn.

FlagDefaultDescription
--cwd PATHcurrent dirPretend the cwd is PATH.
--date YYYY-MM-DDtodayPretend “today” is the given date.

lime login

Store provider credentials under ~/.lime/. Keys stored here override the corresponding environment variables.

FlagDescription
--statusPrint credential status. Combine with --provider to filter.
--provider NAMEOne of openai, anthropic, gemini, openai-compat (alias openai_compat).
--service NAMEOpenAI-compatible service name. Namespaces credentials under openai_compat:<service>.
--with-api-key [VALUE]Supply an API key. If VALUE is omitted, Lime reads the key from stdin (no echo).
--with-base-url URLCustom endpoint URL. Requires --with-api-key.
Terminal window
lime login --with-api-key # OpenAI
lime login --provider anthropic --with-api-key
lime login --provider openai-compat --service groq \
--with-api-key --with-base-url https://api.groq.com/openai/v1
lime login --status

lime logout

Remove stored credentials.

FlagDescription
--provider NAMEClear one provider’s credentials.
--service NAMEClear one compat service.

With no flags, clears all.

lime model | lime models

Manage user entries in ~/.lime/models.json. See Custom models for the full discussion.

SubcommandDescription
list, lsPrint the merged catalog (built-in + user).
add (with flags below)Add or override a model entry.
rm, remove, delete SLUGRemove a user entry. Built-ins always survive.

lime model add flags:

FlagRequiredNotes
--slug SLUGIdentifier used by --model / /model.
--provider NAMEOne of openai, anthropic, gemini, openai-compat, custom.
--context-window NFull context window in tokens.
--service NAMERequired when --provider openai-compat. Pins to a credential bucket.
--display-name STRDefaults to the slug.
--description STR, --desc STRDefaults to "Custom model".
--api-id STR, --api-model-id STRWire model id when it differs from the slug.
--max-output N, --max-output-tokens NDefault response cap. Derived if omitted.
--upper-max-output NUpper retry / thinking cap.
--auto-compact N, --auto-compact-threshold NToken count at which auto-compaction fires.
--param-preset NAMEOne of none, verbosity, reasoning, reasoning-and-verbosity.
--visionModel accepts images.
--reasoning-summariesOpenAI-style reasoning summaries.
--parallel-toolsMultiple tool calls per turn.
--extended-thinking, --thinkingAnthropic-style extended thinking.

lime mcp

Manage MCP servers. Scopes: local (project, untracked), project (committed .lime.json / .mcp.json), user (global ~/.lime/).

SubcommandNotes
serveRun Lime itself as an MCP server.
list, lsList configured servers across scopes.
get NAMEPrint one server’s resolved config.
addAdd a server. Flags: --transport stdio|sse|http (-t), --scope local|project|user (-s), -e KEY=VALUE (stdio env), -H "Key: Value" (remote header). End flag list with --. The CLI shortcut covers the three common transports; for ws, sdk, streamable-http, or lime-proxy use add-json.
add-json NAME JSONAdd a server from a literal JSON object — accepts every mcpServers.type value. Flag: --scope. Example: lime mcp add-json my-srv '{"type":"http","url":"…"}' -s user.
remove, rmRemove a server. Flag: --scope.
enable NAMEEnable a previously-disabled server.
disable NAMEDisable a server without removing its config.
reset-project-choicesForget per-project trust decisions.

lime bridge

Run the JSON-RPC 2.0 bridge.

FlagDescription
--wsSwitch to WebSocket transport (default is stdio).
--ws-port PORTPort for the WS bind (default 8765). Implies --ws.
--ws-token TShared bearer token for WS auth.
--device-authUse the device-registry for WS auth. Mutually exclusive with --ws-token.
--no-redactDisable outbound redaction for trusted local-only setups.
--statusPrint bridge engine status and exit.

lime remote

Drive Lime over a Cloudflare tunnel. See Remote control.

SubcommandFlags
start--persistent NAME, --url URL (require each other), --no-auto-install.
pair--label LABEL (required). Mints a one-time device token.
devices, listList registered devices.
revoke DEVICE_IDRevoke a device.

Direct slash invocation

Slash commands accepted on the CLI must come from a lime --resume form. Bare lime /<command> works for a small handful that are non-interactive (/help, /agents, /command, /skills); the rest will print a clear error pointing you at lime --resume.

Exit codes

CodeMeaning
0Success.
1Argument parse error or unrecoverable runtime error.
2Provider authentication failure.
3Permission denied (in dontAsk mode with a deny rule).
130Interrupted (Ctrl-C).