Skip to content
LoopCodeDocs

Reference

CLI reference

Every loopcode command, subcommand and flag — interactive sessions, headless runs, MCP, plugins, GitHub, access tokens, your plan and maintenance.

Sessions

CommandDoes
loopcodeStart a conversation in the current folder
loopcode "<prompt>"Start one with that request already sent
loopcode -cContinue the most recent conversation here
loopcode -r <id>Continue an earlier conversation (an id prefix is enough)
loopcode -p "<prompt>"Run one prompt without a screen; the answer goes to stdout. See Headless mode
loopcode -p "<prompt>" --jsonThe same, printing every run event as a JSON line
loopcode sessionsList the conversations in this folder

Options

FlagMeaning
-m, --model <id>The model to use. See Models and effort
--mode <mode>auto (the default: a reviewer checks risky commands), acceptEdits, default or plan. See Permissions
--permission-mode <mode>The same as --mode
--effort <level>low, medium (the default), high, extra or max
-C, --workspace <dir>Run in another folder
-w, --worktree [name]Work in a new git worktree on its own branch (.loopcode/worktrees/<name>); on exit, keep it, merge it, or remove it
--state <dir>Where conversations and your sign-in are kept (default ~/.loopcode/cli)
-c, --continueContinue the most recent conversation in this folder
-r, --resume <id>Continue a particular conversation
-y, --yesHeadless: approve every permission the run asks for (default: deny)
-q, --quietHeadless: no tool activity on stderr
--output-format <f>Headless: text (default), json (one result object) or stream-json (every event)
--jsonThe same as --output-format stream-json
--max-turns <n>Headless: stop after this many model calls
--append-system-prompt <text>Headless: extra instructions for this run
--dangerously-skip-permissionsNothing asks before acting. Only for a disposable sandbox or container
-v, --versionPrint the version
-h, --helpPrint the help

Your plan and account

CommandDoes
loopcode loginSign in: approve the code in your browser, no token to paste
loopcode logoutSign out on this machine
loopcode usageYour plan, and how much of its usage windows is used
loopcode upgrade [pro|max]Pay for Pro or Max in the browser; the terminal follows when it clears. renew and billing work too
loopcode token create [--label <name>]Create an access token for CI, used as LOOPCODE_TOKEN. Shown once
loopcode token listYour access tokens and when each was last used
loopcode token revoke <id>Switch a token off
loopcode feedback [message]Write to the LoopCode team; opens a draft in your mail app

MCP servers

CommandDoes
loopcode mcp catalogThe directory of ready-made servers
loopcode mcp add <directory-id>Add one from the directory; OAuth ones open the browser to sign in
loopcode mcp add <name> -- <command> [args…]A local server that talks over stdio
loopcode mcp add --transport http <name> <url>A remote server (streamable HTTP; sse also works)
loopcode mcp add-json <name> '<json>'A server written as JSON
loopcode mcp listEvery server, its state and its tools
loopcode mcp get <name>One server's configuration and status
loopcode mcp remove <name>Remove it
loopcode mcp login <name>Sign in to a remote server in the browser
loopcode mcp logout <name>Forget that sign-in
loopcode importBring in the MCP servers you set up for Claude Code or Codex

mcp add options: -s, --scope project|user; -e, --env KEY=value (repeatable); -H, --header "Name: value" (repeatable); -t, --transport http|sse. See MCP servers.

Plugins

CommandDoes
loopcode plugin listInstalled plugins, from LoopCode and from Claude Code
loopcode plugin search [words]What the marketplaces offer
loopcode plugin install <name>[@market]Install one
loopcode plugin uninstall <name>Remove one installed here
loopcode plugin enable|disable <name>Turn one on or off for LoopCode
loopcode plugin marketplace add <source>Add a marketplace: GitHub owner/repo, a git URL, or a folder
loopcode plugin marketplace listYour marketplaces

GitHub

CommandDoes
loopcode github install [--force]Set this repository up: the LOOPCODE_TOKEN secret and .github/workflows/loopcode.yml
loopcode github runWhat that workflow runs: reads the GitHub event and acts on it

See GitHub reviews and fixes.

Maintenance

CommandDoes
loopcode updateUpdate now. Installed copies also update themselves in the background (LOOPCODE_NO_AUTOUPDATE=1 turns that off)
loopcode doctorCheck this install, your sign-in, the connection and the tools; says what to fix
loopcode app installInstall the desktop app on macOS or Windows, checked before it goes in
loopcode completion bash|zsh|fishShell completion for loopcode's commands and options
loopcode auto-review defaultsThe policy auto-review checks commands against, and how to add to it