Skip to main content
Local Operator logo

Local Operator

An open-source AI agent hub: build organizations of collaborating agents that run on your own machine, around the clock

Roles, teams, and cross-agent messaging on top of a fast terminal UI, using every AI subscription you already pay for


A manager session with three concurrent workers in the subagent dock, each showing elapsed time, context usage, and cost, above a shared todo list

A manager session with three workers running in the background (each with its own role, budget, and progress) while the shared plan updates.


Local Operator is a harness for organizations of agents: the runtime that hosts, supervises, and connects them. A single session plans its own work, runs tools, browses, and remembers what it did. Give it a team and it becomes a manager that delegates to tool-restricted workers, messages sibling sessions in other repos, schedules its own follow-ups, and picks those follow-ups back up after you close the terminal. Everything runs on your machine, asks before it writes or executes, and is MIT licensed. It draws on every ChatGPT, Claude, Kimi, Grok, Z.AI, and Qwen login you already have, pooled, load-balanced, and used with the prompt cache in mind.

📚 Table of Contents

✨ Why Local Operator

  • Agent organizations with enforced roles. Roles are capability boundaries (a reviewer loses the tools to edit what it reviews), specialists carry their own standing instructions, and a team is a saved roster (a manager plus members) with two short briefs: how the group works together and what product it owns. Reuse the same roster on a different product by swapping one brief. Nested teams show in the chart today; a manager delegating into a nested team's manager is coming.
  • Agents that talk to each other. A manager peeks at, questions, steers, pauses, and resumes its workers through hub; independent sessions in different repos message each other with send, choosing whether to leave a note, wake an idle peer, or redirect one mid-turn. Loopback only, your OS account only.
  • Always on. Wakes persist and fire on schedule even after the terminal is closed; long commands and subagents run as background jobs whose results auto-deliver when the session is idle; lop exec --background detaches a whole task; a paused worker resumes after a process restart; the mobile daemon keeps every session reachable from your phone.
  • Every subscription you already pay for. Sign in to ChatGPT, Claude, Kimi, Grok, Z.AI, and Qwen with the accounts you already have. Have two Claude or ChatGPT accounts? They're pooled: new sessions start on the one with the most quota left, a rate-limit moves the request to the other, and only when both are exhausted does it fall back to the next model you've listed.
  • Cheaper long sessions. The prompt is laid out so your provider's prompt cache keeps hitting turn after turn: stale tool output is cleared without invalidating the cache, large contexts automatically get the longer Anthropic cache window, skills and MCP tools load only when used, and agents wait for events instead of polling. The result: a long session doesn't re-pay for its history every few minutes.
  • Approval-gated by default. Reads run; writes and shell commands show the exact command and ask. Opting out is an explicit act: /approvals auto or --yolo. Every tool call leaves a visible receipt in the transcript.
  • Reach beyond the terminal. Watch and steer sessions from your phone, and drive the Chromium browser you already use, with your real logins, through the published browser extension.

🚀 Quickstart

Bring Python 3.12+ and one of: a provider login (see the subscription table for the ids), an API key, or a local model server.

pip install local-operator     # pipx install local-operator on systems whose Python is externally managed (Debian/Ubuntu, Homebrew)
lop login anthropic            # opens your browser; paste the code back if asked. `lop login` lists providers
lop                            # start it, then type what you want done

lop is the short alias the install provides alongside local-operator; the rest of this page uses it. lop login <provider> also sets that provider as your default hosting and picks a default model when none is configured, so the very next lop just works. Skip the login and an interactive lop opens in a setup state and walks you through /login; a headless or piped run prints the exact commands to configure hosting, model, and a key instead.

Inside, esc stops the agent, /help lists commands, /exit quits. Try something like summarize this repo and list what's untested. lop update upgrades the install from PyPI and restarts the mobile daemon when the LaunchAgent is installed.

The Local Operator welcome screen with rotating tips and the composer ready for a first prompt

Prefer a local model? A 7–14B model needs roughly 10–16 GB of RAM or VRAM. Start LM Studio, load a chat model, and enable its server in the Developer tab; then /login lmstudio inside Local Operator picks the endpoint and model. /login also offers Ollama, vLLM, llama.cpp, and a generic OpenAI-compatible server. See the local-provider guide. The CLI form still works for a model installed in Ollama:

lop --hosting ollama --model qwen2.5:14b

🏢 Agent Organizations

Three layers: subagents are the parallel workers, roles decide what each one is allowed to touch, and a team is a saved roster you can point at a different product.

Subagents. Ask for parallel work and the agent fans it out into concurrent background workers, then keeps working while they run. The subagent dock shows each worker's status, spend, and progress live, and you can open any of them to read its transcript and plan (the reader's keys and limits are in docs/subagent-reader.md).

Roles are capability boundaries. A subagent launched as reviewer carries vetted review guidance and loses the tools to edit code. It can read and run tests, but it has no way to alter what it reviews. A restricted role cannot enable new MCP tools either, and the restriction is inherited by everything it delegates to, at any depth. Packaged starters for reviewer, coder, architect, manager, designer, and scout ship in the package: task(agent=…) and /team use them even on a fresh install, and agent install copies one into your registry so you can edit it. lop agents list shows what's installed, so a fresh install prints "No agents found." You can also author your own agent profiles: reusable roles and named specialists with their own instruction sets, matched to tasks by semantic routing. When a profile gives bad guidance, you fix the profile once instead of every prompt that uses it.

Teams. A saved roster (a manager plus members with counts) layered with two briefs the individual agents never hard-code: a collaboration brief (how this group works together, who blocks a release) and a project brief (what product this instance owns). Swap the project brief and the same roster staffs a different product. A roster slot can name another team (team:<name>), so a team becomes an org of teams; /team chart <name> draws it as an org chart (nested teams show as (declared) until a manager can actually delegate into them). lop teams list is empty until you create one.

The /team picker listing a saved team

Sending a real request to a team: /team lopdev Can you implement a mobile relay functionality in lop using tailwind, shadcn

Sending a request to a team is one line: /team <name> <request> makes the current agent that roster's manager, which breaks the work down and puts the right roles on it. Agents and teams can also be managed from the CLI:

lop agents create "My Agent"
lop agents list
lop teams list
lop teams show lopdev

🔁 Cross-Agent Communication

Two shapes of conversation, one machine, no cloud in the middle.

Down the tree. Every worker a session spawns is addressable through hub: peek reads the last few steps of its transcript without spending its attention, ask poses a question and waits for the answer, send drops a note, steer changes its course, pause stops it while keeping it resumable, cancel ends it, and resume relaunches a stopped, paused, or settled child against its own transcript, including after the parent process has restarted.

Across sessions. Two lop sessions you started yourself, in different repos, with no parent between them and no shared context, can message each other directly. One can tell another to hold off on a deploy, hand over a finished branch, or claim a shared resource, without you relaying it between terminals.

A lop session receiving an inbound peer message card from another session named 'Audit custom fields on profiles E2E' (pid 50793), which announces it is taking the user-dashboard QA and prod deploy slot for MR !1356 and asks the receiver to object now if it has an in-flight QA validation; below it the receiving session's own send tool card replies 'No objection — go ahead', followed by its wait, bash, and hub peek receipts

Two independent sessions negotiating a shared deploy slot. One claims it and asks for objections; the other checks its own in-flight work and clears it. No human in the loop.

lop sessions is the directory of every session on the machine: state, pid, kind, conversation, model, memory footprint, uptime, and heartbeat age (--json adds cwd and session_id). From a shell you use lop send; from inside a session the agent uses its own send tool, which lands as an auditable card in its transcript. Both share the same three delivery modes and differ only in the default: the CLI drops to the mailbox unless you ask otherwise, while an agent's send wakes an idle peer. --wake starts a turn if the target is idle; --now injects mid-turn to redirect a session that is actively working. A running bash, eval, or MCP call is never cut short, and a session parked in wait returns early to read the message.

lop sessions
lop send "release cutter" "gates are green, ready for review"
lop send "release cutter" --wake "the deploy finished; verify prod"
lop send "ingest refactor" --now "hold off, the schema changed"
lop send --pid 12345 "gates are green, ready for review"   # address by exact pid
git log -1 --stat | lop send "release cutter"      # body from stdin

Every delivery leaves a receipt on both ends: the target sees an inbound ↔ peer message from "<conversation>" (pid N, <model>) card, and the sender gets back how the message landed. Targeting is a case-insensitive substring over conversation name, session id, and cwd basename, and it refuses to guess: an ambiguous match lists the candidates and exits non-zero rather than delivering to the wrong session. The trust boundary is your OS account: every session publishes a 0600 discovery record under a 0700 directory and answers on an authenticated loopback server, so there is no remote or cross-user path. The full targeting and refusal rules, the receipt strings, and the limits (256 KB bodies; headless exec sessions may not receive) are in the packaged peer-messaging guide.

🌙 Always On

Work keeps moving after you walk away.

  • Scheduled wakes that survive a closed terminal. The agent's wake tool schedules a future turn ("check the build again in 30 minutes"). Schedules persist with the session. On macOS a small wake supervisor (installed on demand as a LaunchAgent the first time a wake is scheduled) starts a runtime for whichever session's wake is due, so a wake fires even if you closed the terminal that scheduled it (a session that is still open fires its own). On Linux and Windows there is no supervisor: a wake fires the next time that session is running. If a wake fires unattended and a tool needs approval, the turn stalls at the prompt until you answer from the phone or /resume; /approvals auto or --yolo opts into unattended execution. A session that was asleep past a due time fires the wake late and reports how many occurrences it skipped, rather than replaying six hourly checks at once. lop wake status and lop wake list show what is installed and what fires next.
  • Background jobs that report back on their own. task always runs in the background and bash can (background=true); a long command interrupted by a steer detaches instead of dying; and every settled job auto-delivers its result when the session is idle. jobs peeks at new output since your last look.
  • lop exec --background detaches a whole task with a log file and exits immediately.
  • Waiting without polling. wait blocks up to 60 minutes and returns the moment a job settles, a message arrives (a peer's send, a wake, a subagent's hub note), or you steer. One sized wait replaces a chain of short polls that each re-send the whole context.
  • Resume after a restart. Transcripts persist and /resume picks a session back up; a paused or settled subagent can be resumed with hub op='resume' after the parent process has restarted.
  • A daemon that keeps sessions reachable. lop mobile install runs a supervised session daemon (LaunchAgent on macOS; on Linux and Windows the daemon is portable and foreground-runnable, with no installer yet); every interactive session registers with it, and you watch, steer, and start sessions from your phone. See Phone Access. lop update restarts the daemon when the LaunchAgent is installed.

💳 Subscriptions

Sign in with the accounts you already have. lop login lists every login-capable provider; the ids and plan requirements:

You pay for Type Plan needed
ChatGPT lop login openai (openai-device on a headless box) ChatGPT Plus/Pro
Claude lop login anthropic Claude Pro/Max
Kimi lop login kimi Kimi (Moonshot)
Grok lop login xai-oauth (xai = API key) Grok OAuth
Z.AI / GLM lop login zai-oauth (zai = API key) GLM Coding Plan
Qwen lop login alibaba-token-plan-oauth QwenCloud Token Plan

OpenAI, Anthropic, Z.AI, and Qwen logins are keyed by account identity, so a second login adds to the pool; Kimi holds one account (xAI identity is best-effort). API keys and local servers sit alongside.

What this means for you. With one account per provider, Local Operator uses that account's plan quota (no API bill) and, when it is rate-limited, falls back to the next model you listed. With two or more accounts on the same provider, it spreads your sessions across them so you hit the 5-hour/weekly limits later, and it deliberately does not hop accounts to balance load mid-conversation, because each provider caches your conversation per account and a hop would re-pay to rebuild it.

  • Accounts on one provider form a rotation pool. New sessions start on the account with the most remaining quota, and concurrent sessions fan out across those accounts instead of herding onto one.
  • Failover follows a fixed order. On a quota, auth, or 5xx failure the request rotates to a sibling account first. Only when the pool is spent does it walk your model fallback chain (retry.fallbackChains in config.yml), backing off between attempts. /failovers prints the cascade and marks which account is serving right now.
  • Cache-aware stickiness. A session prefers the account it started on, because the provider's prompt cache is per account and moving would rewrite the whole conversation prefix at cache-write price. With the default config a quota, auth, or 5xx failure still rotates to a sibling; with retry.usageAwareFallback: true a low account is never an eviction; only a depleted one moves a running session.
  • Opt-in proactive switching. retry.usageAwareFallback spends one lightweight quota request per user message to leave a provider before it fails, with retry.usageReservePercent (default 10) as the headroom floor.
  • Everything is visible in-app. /usage shows each provider's quota windows and account spend; /accounts lists every stored credential; /session reports the current session's cost, cache, and request diagnostics.

The /usage panel showing per-provider quota windows and account spend

The packaged failover guide explains the routing in full, including how to change the order.

🧮 Built for Token and Cache Efficiency

Long-running agents spend most of their tokens re-sending context, so the harness treats the provider prompt cache as a resource to be managed:

  • A stable prefix. The tools array is built in a deterministic order and rides in the same cache prefix as the system prompt, so the provider can reuse it turn after turn. Most extra capabilities live behind gated tools, skills, or MCP instead of sitting in every prompt.
  • Cache-aware pruning. Superseded tool outputs (an older read of a file that was read again, a zero-match search) are blanked in place without forcing a cache rewrite. Once a session has idled past the cache TTL, the cache is provably cold and everything eligible flushes at once.
  • Automatic 1-hour cache TTL. At or above 150k context tokens, Anthropic requests switch from the 5-minute to the 1-hour cache window; tunable via providers.anthropic.cache_ttl_1h_min_context_tokens (0 disables it).
  • Compaction before overflow. Context compacts itself before the window fills; /compact runs it on demand and /context reports what is occupying the prefix right now.
  • Lazy everything else. Skills are indexed semantically and their bodies load only when read; MCP servers advertise a bounded summary and individual tool schemas enter the context only when enabled; wait returns on job settle or message arrival so a long job costs one round trip, not twelve.

🖥️ A Tour of the Terminal UI (TUI)

The TUI is a full-screen Textual app, not a REPL. Everything the agent does shows up as a card or a one-line receipt: tool cards expand (enter/space) to show the full command and output, and the status line tracks the current step, token usage, and cost. Inside a terminal multiplexer (tmux, wezterm, cmux, and others), lop publishes a per-pane crash-restore binding (multiplexer-resume.md) and, in a Herdr Agents panel, reports whether it is idle, working, or blocked (herdr-agents.md).

Local Operator TUI running a real task: streamed response, an expanded tool card showing a command and its output, and a live status line

One session mid-task: streamed responses, expandable tool cards, and one-line receipts for everything the agent does.

When a tool call needs your sign-off, the approval prompt shows exactly what is about to run before anything touches your system:

An approval prompt showing the exact shell command awaiting user confirmation

Switching models goes through a picker rather than a config file. /model lists every model your signed-in providers offer, with fuzzy filtering. ChatGPT OAuth uses the account's supported maximum context by default while keeping the provider default visible; context limits and the opt-out explain how without changing your compaction settings.

The /model picker with a fuzzy filter applied, showing context length and pricing per model

Coming back later is /resume, a picker over your recent sessions, each with its title and age:

The /resume session picker listing recent conversations with titles, ages, and short ids

Slash commands

/help shows the full table in-app. The highlights:

Command What it does
/model Switch model for this session; /model default saves the current one for new ones, /model saved reverts to it (/settings edits the boot default too)
/effort Show or set reasoning effort (shift+tab cycles)
/fast Toggle fast mode where the provider sells one: the same answer sooner, at premium pricing
/approvals Set whether tools ask first (ask/auto; add default to keep it)
/resume Pick a past conversation and continue it
/new, /clear, /reload Fresh conversation · wipe the screen · relaunch this conversation on the current install
/update Install the latest version from PyPI and relaunch
/goal, /loop Set an objective, then iterate autonomously toward it
/btw Ask a side question off the record; it never joins the conversation
/compact Compact the context now (it also happens automatically)
/usage, /context Provider quota and account spend · what's occupying the context window
/session Current-session recorded usage, combined cost, cache, and request diagnostics
/failovers The model cascade for this session, and which account is serving
/provider, /login, /logout, /accounts, /credential Manage providers and stored credentials
/search Configure web-search providers and load balancing
/team Launch a saved team: /team <name> <request>; /team chart <name> draws its org chart
/skills, /mcp List loaded skills · MCP servers
/theme, /rename Pick from 20+ built-in themes (arrows preview live) · rename the session

Keys worth knowing

  • $<skill>: run a named skill on the rest of the line ($research the payments rewrite); $ alone opens the picker.
  • Type while the agent works: your message is delivered at the next step as steering, no need to wait.
  • esc — stop the agent without ending the session.
  • ctrl+b or /sidebar — show or hide active and recent conversations in the same TUI. cmd+b is also accepted when the terminal forwards the Super modifier. /settingsSession sidebar and Sidebar position control visibility and left/right placement; the defaults are hidden and left. f9 or /sidebar focus opens and focuses the list without changing your draft. Arrow keys choose a row, Enter opens it, and Escape returns to the previous input surface. F9 also returns focus without hiding a pinned list. ctrl+shift+↑ / ctrl+shift+↓ switch straight to the previous/next conversation in the list's order without opening it, wrapping at the ends; the caret and your unsent draft stay where they were. On narrow terminals, selecting a conversation dismisses the overlay drawer.
  • f8 — open an aside (side question) without losing what you were typing; ctrl+f promotes the aside into the conversation.
  • shift+tab: cycle reasoning effort.
  • ctrl+l: clear the transcript (history is untouched).
  • ctrl+t / ctrl+g: expand the todo list · cycle the subagent panel.
  • option+← / option+→ (ctrl+← / ctrl+→ on Linux and Windows): move the caret a word at a time in the composer; add shift to select by word. Works the same in shell (!) mode and with a command list open, and option+↑ / option+↓ behave as plain / . On macOS this works whichever option-key mode your terminal is set to. The default, "Use Option as Meta", and "Esc+" all behave the same, so there is nothing to configure.

🔌 Providers

Every provider below runs on the same harness and the same model picker. OAuth providers sign in through the browser and use your existing subscription; API-key providers prompt once and store the key locally. Local servers can be configured in the app with /login, including endpoints and optional masked API tokens. See Local and self-hosted providers for setup, metadata overrides, desktop-app support, and server-specific limitations.

Provider Access
OpenAI / ChatGPT openai / openai-device, or OPENAI_API_KEY
Anthropic / Claude anthropic, or ANTHROPIC_API_KEY
Kimi (Moonshot) kimi, or KIMI_API_KEY
xAI / Grok xai-oauth, or xai / XAI_API_KEY
Z.AI (GLM) zai-oauth, or zai / ZAI_API_KEY
Qwen (Alibaba) alibaba-token-plan-oauth, or API key
Google Gemini GOOGLE_AI_STUDIO_API_KEY
DeepSeek DEEPSEEK_API_KEY
Mistral MISTRAL_API_KEY
OpenRouter OPENROUTER_API_KEY: one key, many models
Radient RADIENT_API_KEY: automatic per-step model selection
LM Studio, Ollama, vLLM, llama.cpp User-operated server; optional token
OpenAI-compatible Explicit server URL; optional token; MLX/LocalAI/proxy escape hatch
lop login              # list login-capable providers
lop login openai       # OAuth flow; for OpenAI/Anthropic/Z.AI/Qwen, repeat to add a second account
lop login-status       # what's signed in
lop logout kimi

Legacy --hosting <name> --model <name> flags keep working, and API keys can be stored with lop credential update <KEY_NAME> (a masked prompt).

🧰 What the Agent Can Do

The agent's built-in tools, each with its own card in the transcript:

  • Run things: bash (shell commands), eval (a persistent Python kernel: variables survive across calls).
  • Work with files: read, write, edit (surgical search/replace), glob, grep, plus lsp for Jedi-backed Python code intelligence.
  • Reach the web: load-balanced web_search across seven providers, web_fetch for reading pages headlessly, and a browser tool for pages that need rendering, a login, or interaction.
  • Stay organized: a visible todo list for multi-step work, ask to put real decisions back to you as a picker instead of a wall of text.
  • Run an organization: task spawns subagents, hub talks to them, jobs/wait manage background work, send reaches other sessions, agent and team author profiles and rosters, and wake schedules future follow-ups.

🔎 Web search

Search works out of the box. DuckDuckGo and Tavily's keyless endpoint are enabled by default, and requests rotate across providers with automatic fallback when one is rate-limited or down:

lop search list
lop search test "Python 3.13 release notes"
lop search enable perplexity
lop search setup brave --api-key
lop search setup tavily --oauth      # official Tavily MCP server
lop search setup searxng --endpoint https://search.example.com
Provider Access Default
DuckDuckGo Credential-free Enabled
Tavily Keyless, TAVILY_API_KEY, or OAuth MCP Enabled
Perplexity Anonymous or PERPLEXITY_API_KEY Disabled
Brave BRAVE_API_KEY Disabled
Exa EXA_API_KEY Disabled
SerpApi SERPAPI_API_KEY Disabled
SearXNG Self-hosted endpoint URL Disabled

The same controls are available in-app via /search.

🧠 Skills and guides

Drop a SKILL.md (with optional reference files) into ~/.local-operator/skills/<name>/ and the agent indexes it semantically. Only the skills relevant to the current turn are surfaced, and their bodies load on demand via skill://<name> reads, so your context isn't taxed by knowledge you aren't using. /skills lists what's loaded.

You can also invoke one by name instead of leaving the choice to the router: type $ in the composer to pick from your skills, then write the request: $research compare these two API designs loads that skill and sends it with your message. A skill marked hide: true is excluded from automatic routing and is reachable this way only, which makes $ the home for "never pick this on your own, but run it when I say so".

🔗 MCP servers

Local Operator speaks MCP over the official SDK, with lazy tool loading: servers advertise a bounded summary, and individual tool schemas enter the context only when the agent actually enables them.

lop mcp add linear --url https://mcp.linear.app/mcp --oauth
lop mcp login linear     # complete the OAuth flow
lop mcp list

Server configs are discovered from the project (.local-operator/mcp.json, .mcp.json), your home directory, and best-effort imports of Claude Code, Cursor, VS Code, and Codex CLI configs, so servers you already configured elsewhere are available without re-declaring them. See docs/mcp.md for the trust model before enabling project-supplied servers.

⚙️ Headless & Server Modes

One-shot execution for scripts and automation:

lop exec "summarize the failures in ./test.log"
lop exec "long migration" --background   # detach with a log file
lop exec "audit deps" --json             # one JSON line per event

Exit code 0 on success, so lop exec composes in a pipeline.

Server mode exposes the agent as a FastAPI service (used by the optional desktop UI):

pip install "local-operator[server]"
lop serve                 # http://127.0.0.1:1111, docs at /docs

The legacy HTTP API has no authentication and defaults to loopback. Keep it away from untrusted clients; an explicit --host can widen the bind only when you provide access controls in front. This is separate from the authenticated mobile relay. See API filesystem boundaries for fresh-ID profile imports, workspace-confined edit reads and live editor buffers.

📱 Phone Access (Mobile Relay)

lop mobile turns the machine you run agents on into a phone-facing control plane for every lop session on it. A single supervised session daemon owns the web surface, and every interactive TUI session registers with it automatically over an authenticated loopback socket. From your phone you can watch transcripts stream, steer a running turn, switch model and effort, run slash commands, drill into subagents, and start brand-new sessions. Sessions you start from the phone also answer their own approval and ask prompts there; for a terminal session those prompts are still answered at the terminal (the phone shows that it is waiting).

The Local Operator mobile relay open on a phone: a live session transcript with streamed assistant text, one-line tool cards with state glyphs and durations, a tasks counter, and the mobile composer with steer, stop, and send controls

A live lop session driven from a phone: the same transcript, tool cards, and composer as the TUI.

You can ask Local Operator to set this up for you. Tell the agent something like "set up phone access" and it will walk through the install, confirm the health check and the closed auth gate, and get you the portal password through a channel you choose (or leave it in the Keychain for you to retrieve). If you would rather do it by hand:

lop mobile install      # generate/keep the portal password, install the daemon, verify health
lop mobile status       # install state, health probe, and registered sessions
lop mobile password     # show or rotate the portal password
lop mobile logs -f      # follow the daemon log

Once the daemon is up, every interactive lop you start publishes itself and shows up in the phone list live. No extra flag per session.

Additional setup is required for remote access

The daemon binds loopback only (127.0.0.1:4098) and never a wider address. That keeps it private by construction, so reaching it from your phone over the internet needs a secure path you put in front of it, together with an identity proxy so only you can open it.

The recommended method is a Cloudflare Tunnel with Cloudflare Access in front: the tunnel gives the daemon a public hostname without opening a port on your machine, and Access enforces sign-in before any request reaches loopback. A WireGuard-based mesh such as Tailscale is a good alternative if you would rather keep everything on a private network. Either way, do not change the bind address to expose the daemon directly; put the tunnel and the identity proxy in front of the loopback listener instead.

The portal itself is protected by a single password (Keychain-backed on macOS, or LOP_MOBILE_PASSWORD for containers), and session cookies are derived from it, so rotating the password invalidates every logged-in phone.

🌐 Drive Your Own Browser (Browser Extension)

The browser tool can drive a cmux panel, a macOS terminal built for running agents side by side. On any Chromium browser (Chrome, Edge, Arc, Brave) the free Local Operator browser extension gives the agent the same capability against the browser you already use, with your real logins, entirely on your machine. A small loopback bridge daemon connects the extension to your lop sessions; nothing leaves your computer, and the agent can only open sites you approve.

You can ask Local Operator to set this up for you, or do it by hand:

lop browser install     # install and start the loopback bridge daemon
lop browser status      # daemon health, whether a browser is attached, pairing state
lop browser pair        # print the 6-digit code to type into the extension popup

Then install the extension from the Chrome Web Store (or build it from extension/ in this repo with pnpm -C extension build and load extension/dist unpacked at chrome://extensions with Developer mode on), click its toolbar icon, and enter the pairing code. Once paired, browser tool calls drive a dedicated tab in your real browser. The first time the agent wants a new site, the published store build (v0.1.7) asks Allow once, Always allow, or Deny; you stay in control of which sites it can reach, and can revoke the whole browser any time from the extension's Settings or with lop browser pair --reset.

The bridge daemon binds loopback only and is pinned to your extension by the pairing code; a compromised page cannot reach it, and a revoke drops any live connection within seconds. Each store release is recorded in docs/store/release-record.md.

📦 Installation Options

The default install is deliberately small. Optional features live behind extras:

Extra Adds
server The HTTP API server (lop serve) and background scheduler
mcp Model Context Protocol client support
images HEIC/HEIF image attachment decoding
tokenizer Exact BPE token counting (estimated otherwise)
fetch Markdownify renderer for web_fetch
lsp Jedi-backed symbol-aware Python navigation for the lsp tool
all Everything above except lsp
pip install "local-operator[all]"    # quote it, or your shell globs the brackets

If you hit a feature whose extra is missing, the agent tells you which one to install instead of failing with an import error.

Nix: nix develop drops you into a reproducible dev shell via the provided flake.nix.

Docker: docker compose up -d with the provided compose file.

🔧 Configuration & Credentials

Configuration lives at ~/.local-operator/config.yml:

lop config create      # scaffold it
lop config list        # every option, with descriptions
lop config edit <key> <value>
lop config open        # open it in your editor

Commonly set values: hosting and model_name (skip the CLI flags), conversation_length / detail_length (history kept verbatim vs summarized), tui.theme (any registered theme name, easier to set with /theme, which previews live), and retry.fallbackChains (the model cascade). See Subscriptions. bash.shell picks the interpreter the bash tool spawns: unset, it runs the first bash on PATH (Homebrew bash 5 when installed, else the system one) and falls back to /bin/sh only on a host with no bash, so process substitution and other bash syntax work as the tool's name promises. Every option is browsable in /settings.

Standing instructions

Your machine-wide preferences — output style, commit conventions, safety rules — live in ~/.local-operator/system_prompt.md, editable from Settings → Instructions, PATCH /v1/config/system-prompt, or your editor. They ride every session and every subagent.

If you also run Claude Code, Codex, opencode or droid, Local Operator reads ~/.agents/AGENTS.md too — the tool-neutral file those ecosystems have converged on, in the directory Local Operator already scans for skills. It is read-only (system_prompt.md stays the only file Local Operator writes), it is placed before your own instructions so those win on conflict, and content identical to system_prompt.md is dropped rather than sent twice.

# read a different set of shared files instead (colon-separated)
export LOCAL_OPERATOR_ECOSYSTEM_INSTRUCTIONS=~/.config/AGENTS.md:~/team/AGENTS.md
# or turn the import off entirely
export LOCAL_OPERATOR_ECOSYSTEM_INSTRUCTIONS=

Project-level AGENTS.md / CLAUDE.md files are discovered separately by walking up from your working directory, and can be disabled with LOCAL_OPERATOR_CONTEXT_FILES=0.

Credentials are stored in ~/.local-operator/credentials.env and never echoed:

lop credential update TAVILY_API_KEY
lop credential delete TAVILY_API_KEY

OAuth tokens from lop login are stored separately and refresh themselves.

🌟 Radient: automatic model selection and agent sharing

Radient adds two optional capabilities:

  • Automatic model selection: lop --hosting radient picks the best model per step to balance quality and cost, no --model needed.
  • Agent sharing: push your agents to Radient's public registry, pull agents others published:
lop credential update RADIENT_API_KEY
lop agents push --name "My Agent"
lop agents pull --id "<agent_id>"     # no key needed to pull

🔒 Safety Model

  • Approval tiers. Read-only tools run automatically; anything that writes files or executes commands prompts first, showing the exact command. /approvals auto or --yolo disables prompts only when you say so. Scheduling a wake is a write-tier action too: it is the one tool that arms unattended future execution, so it prompts like a mutation. If a wake fires unattended and a tool needs approval, the turn stalls at the prompt until you answer from the phone or /resume; /approvals auto or --yolo is how you opt into unattended execution.
  • Visible receipts. Every tool call leaves a card or one-line receipt in the transcript. There is no invisible action, and a peer message from another session is a distinct inbound card, never disguised as your turn.
  • Roles that cannot escalate. A tool-restricted role keeps read-only reach but cannot enable new MCP tools, and neither can anything it delegates to.
  • Loopback only. Peer messaging, the mobile daemon, and the browser bridge all bind to loopback and authenticate; the trust boundary is your OS account.
  • Local-first options. Run a local model and disable web search (lop search off) and fetch (lop fetch set enabled off) for a setup where no prompt leaves the machine. Web search is on by default.
  • MCP trust model. Project-supplied MCP configs are treated as trusted input and warned about on first connect. See docs/mcp.md for the trust model.
  • Credential hygiene. Keys live in a local credential store, are entered through hidden prompts, and are kept out of transcripts.

📝 Examples

👉 The example notebooks show real tasks completed with Local Operator, saved from live sessions:

👥 Contributing

We welcome contributions! See CONTRIBUTING.md for how to submit bug reports and feature requests, set up a development environment, and open pull requests. docs/ covers the architecture (REWRITE.md), benchmarks, and verification evidence, and AGENTS.md is the working guide for agents changing this codebase.

🙏 Credits and Acknowledgements

Local Operator stands on the shoulders of the broader open-source agent community. Several aspects of this harness's implementation were shaped by studying and drawing inspiration from the projects below. We're grateful to their authors and contributors for building in the open.

  • opencode: created by Dax Raad (thdxr) and the Anomaly (formerly SST) team. Its terminal-native, model-agnostic coding-agent design informed our thinking on the interactive CLI experience and provider-agnostic model handling.
  • oh-my-pi: authored and maintained by Can Bölük (can1357), building on Pi by Mario Zechner (mariozechner). Its approach to agent orchestration and harness ergonomics inspired aspects of our subagent and tooling implementation.

Inspiration drawn from these projects informed our own independent implementation; any mistakes here are our own.

A note on reuse and credit

All of the projects above are MIT licensed, as is Local Operator itself. Under the MIT license you are free to draw inspiration from or reuse code from Local Operator in your own work. Verbatim reuse of the code requires retaining the copyright notice and license text, as the license states. Beyond that legal minimum, we appreciate credit where credit is due: an acknowledgement of the projects and people whose work you build on, in the same spirit as the credits above. It costs little and it keeps open source healthy.

Core contributor: Damian Tran <damian@gominerva.com>.

📜 License

MIT. See LICENSE for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

local_operator-0.51.14.tar.gz (5.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

local_operator-0.51.14-py3-none-any.whl (5.5 MB view details)

Uploaded Python 3

File details

Details for the file local_operator-0.51.14.tar.gz.

File metadata

  • Download URL: local_operator-0.51.14.tar.gz
  • Upload date:
  • Size: 5.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for local_operator-0.51.14.tar.gz
Algorithm Hash digest
SHA256 e36703f6dc3c70c0d1fda641eb02aa0e38cc3e899bd64c063d62ed0ff235b29a
MD5 7ff3ca552204915e8cfbe5f542b55f6b
BLAKE2b-256 da4675d6352ef7b4bc8ed77c12c09045ce2bb264036edcceda8b96c92e659387

See more details on using hashes here.

Provenance

The following attestation bundles were made for local_operator-0.51.14.tar.gz:

Publisher: publish.yml on damianvtran/local-operator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file local_operator-0.51.14-py3-none-any.whl.

File metadata

File hashes

Hashes for local_operator-0.51.14-py3-none-any.whl
Algorithm Hash digest
SHA256 7a196e670eb468d5a98699f08c1fbccdea3c0104e0dc15649a456ff1b04e8fc8
MD5 58037c01d63a8f8d04e45fb14492721e
BLAKE2b-256 2f2c60dc7d3f4c10c77a1b460a5c34fd6f5c706ebab18b1e61806618ad5900bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for local_operator-0.51.14-py3-none-any.whl:

Publisher: publish.yml on damianvtran/local-operator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.52.11

2 files

0.52.10

2 files

0.52.9

2 files

0.52.8

2 files

0.52.7

2 files

0.52.6

2 files

0.52.5

2 files

0.52.4

2 files

0.52.3

2 files

0.52.2

2 files

0.52.1

2 files

0.52.0

2 files

0.51.30

2 files

0.51.29

2 files

0.51.28

2 files

0.51.27

2 files

0.51.26

2 files

0.51.25

2 files

0.51.24

2 files

0.51.23

2 files

0.51.22

2 files

0.51.21

2 files

0.51.20

2 files

0.51.19

2 files

0.51.18

2 files

0.51.17

2 files

0.51.16

2 files

0.51.15

2 files

This release

0.51.14 This release

2 files

0.51.13

2 files

0.51.12

2 files

0.51.11

2 files

0.51.10

2 files

0.51.9

2 files

0.51.8

2 files

0.51.7

2 files

0.51.6

2 files

0.51.5

2 files

0.51.4

2 files

0.51.3

2 files

0.51.2

2 files

0.51.1

2 files

0.51.0

2 files

0.50.4

2 files

0.50.3

2 files

0.50.0

2 files

0.49.9

2 files

0.49.8

2 files

0.49.7

2 files

0.49.6

2 files

0.49.5

2 files

0.49.4

2 files

0.49.3

2 files

0.49.2

2 files

0.49.1

2 files

0.49.0

2 files

0.48.0

2 files

0.47.6

2 files

0.47.5

2 files

0.47.4

2 files

0.47.3

2 files

0.47.2

2 files

0.47.1

2 files

0.47.0

2 files

0.46.26

2 files

0.46.25

2 files

0.46.24

2 files

0.46.23

2 files

0.46.22

2 files

0.46.21

2 files

0.46.19

2 files

0.46.18

2 files

0.46.17

2 files

0.46.14

2 files

0.46.13

2 files

0.46.12

2 files

0.46.11

2 files

0.46.10

2 files

0.46.9

2 files

0.46.8

2 files

0.46.7

2 files

0.46.6

2 files

0.46.4

2 files

0.46.1

2 files

0.46.0

2 files

0.45.7

2 files

0.45.6

2 files

0.45.5

2 files

0.45.4

2 files

0.45.3

2 files

0.45.2

2 files

0.45.1

2 files

0.44.71

2 files

0.44.70

2 files

0.44.69

2 files

0.44.68

2 files

0.44.67

2 files

0.44.66

2 files

0.44.65

2 files

0.44.64

2 files

0.44.63

2 files

0.44.62

2 files

0.44.61

2 files

0.44.60

2 files

0.44.59

2 files

0.44.58

2 files

0.44.56

2 files

0.44.55

2 files

0.44.54

2 files

0.44.53

2 files

0.44.52

2 files

0.44.51

2 files

0.44.50

2 files

0.44.49

2 files

0.44.48

2 files

0.44.47

2 files

0.44.46

2 files

0.44.45

2 files

0.44.44

2 files

0.44.43

2 files

0.44.42

2 files

0.44.41

2 files

0.44.40

2 files

0.44.39

2 files

0.44.38

2 files

0.44.37

2 files

0.44.36

2 files

0.44.32

2 files

0.44.31

2 files

0.44.30

2 files

0.44.29

2 files

0.44.28

2 files

0.44.27

2 files

0.44.26

2 files

0.44.25

2 files

0.44.24

2 files

0.44.23

2 files

0.44.22

2 files

0.44.21

2 files

0.44.20

2 files

0.44.19

2 files

0.44.18

2 files

0.44.17

2 files

0.44.16

2 files

0.44.15

2 files

0.44.14

2 files

0.44.13

2 files

0.44.12

2 files

0.44.11

2 files

0.44.10

2 files

0.44.9

2 files

0.44.8

2 files

0.44.7

2 files

0.44.6

2 files

0.44.5

2 files

0.44.4

2 files

0.44.3

2 files

0.44.2

2 files

0.44.1

2 files

0.44.0

2 files

0.43.18

2 files

0.43.17

2 files

0.43.16

2 files

0.43.15

2 files

0.43.14

2 files

0.43.13

2 files

0.43.12

2 files

0.43.11

2 files

0.43.10

2 files

0.43.9

2 files

0.43.8

2 files

0.43.7

2 files

0.43.6

2 files

0.43.5

2 files

0.43.4

2 files

0.43.3

2 files

0.43.2

2 files

0.43.0

2 files

0.42.20

2 files

0.42.19

2 files

0.42.18

2 files

0.42.17

2 files

0.42.16

2 files

0.42.15

2 files

0.42.14

2 files

0.42.13

2 files

0.42.12

2 files

0.42.11

2 files

0.42.10

2 files

0.42.9

2 files

0.42.8

2 files

0.42.7

2 files

0.42.6

2 files

0.42.5

2 files

0.42.4

2 files

0.42.3

2 files

0.42.2

2 files

0.42.1

2 files

0.42.0

2 files

0.41.10

2 files

0.41.9

2 files

0.41.8

2 files

0.41.7

2 files

0.41.6

2 files

0.41.5

2 files

0.41.4

2 files

0.41.3

2 files

0.41.2

2 files

0.41.0

2 files

0.40.0

2 files

0.39.0

2 files

0.38.1

2 files

0.38.0

2 files

0.37.0

2 files

0.36.0

2 files

0.35.1

2 files

0.35.0

2 files

0.34.0

2 files

0.33.2

2 files

0.33.1

2 files

0.33.0

2 files

0.32.1

2 files

0.32.0

2 files

0.31.1

2 files

0.31.0

2 files

0.30.0

2 files

0.29.0

2 files

0.28.1

2 files

0.28.0

2 files

0.27.3

2 files

0.27.2

2 files

0.27.1

2 files

0.27.0

2 files

0.26.0

2 files

0.25.4

2 files

0.25.3

2 files

0.25.2

2 files

0.25.1

2 files

0.25.0

2 files

0.24.7

2 files

0.24.6

2 files

0.24.5

2 files

0.24.4

2 files

0.24.3

2 files

0.24.2

2 files

0.24.1

2 files

0.24.0

2 files

0.23.1

2 files

0.23.0

2 files

0.22.0

2 files

0.21.0

2 files

0.20.1

2 files

0.20.0

2 files

0.19.2

2 files

0.19.1

2 files

0.19.0

2 files

0.18.1

2 files

0.18.0

2 files

0.17.5

2 files

0.17.3

2 files

0.17.1

2 files

0.17.0

2 files

0.16.1

2 files

0.16.0

2 files

0.15.10

2 files

0.15.9

2 files

0.15.8

2 files

0.15.7

2 files

0.15.6

2 files

0.15.5

2 files

0.15.4

2 files

0.15.3

2 files

0.15.2

2 files

0.15.1

2 files

0.15.0

2 files

0.14.2

2 files

0.14.1

2 files

0.14.0

2 files

0.13.0

2 files

0.12.1

2 files

0.12.0

2 files

0.11.4

2 files

0.11.3

2 files

0.11.2

2 files

0.11.1

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.5

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.9

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.8

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.18

2 files

0.2.17

2 files

0.2.16

2 files

0.2.15

2 files

0.2.14

2 files

0.2.13

2 files

0.2.12

2 files

0.2.11

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.29

2 files

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page