A team of proactive AI assistants that can work together behind the scenes to help you get mundane tasks done so you can focus on the fun stuff.
pip install local-operator==0.101.27 Copy PIP instructions
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 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.
One line installs it — no Python needed beforehand (the installer uses uv, which brings its own Python 3.12+). It announces each step with an estimate and finishes in about 20–30 seconds on a clean machine:
# macOS / Linux curl -LsSf https://raw.githubusercontent.com/damianvtran/local-operator/main/scripts/install.sh | sh # Windows (PowerShell) powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/damianvtran/local-operator/main/scripts/install.ps1 | iex" Then start it and sign in:
lop # opens the setup screen /login radient # recommended: one browser sign-in, or create an account there Radient is the recommended first sign-in: no existing AI subscription or API key needed, many models behind one account, and it is also what phone access signs in through. Everything else works too — /login lists every provider, grouped as Use a subscription (ChatGPT, Claude, SuperGrok, Kimi, Z.AI), Use an API key (OpenAI, Anthropic, xAI, Google, DeepSeek, OpenRouter, Mistral, Qwen), and Run models on this computer (LM Studio, Ollama, vLLM, llama.cpp). The same list is lop login in a shell.
After you sign in, Aida — your chief of staff in Local Operator — opens and says hello: she asks your name (your Radient account already tells her), how you want to use AI ("don't know yet" is a fine answer), explains what Local Operator can do, and helps you set up your first agents and teams.
Prefer a package manager? uv tool install local-operator or pipx install local-operator do the same thing. Plain pip install local-operator needs Python 3.12+: on an older Python pip reports "from versions: none", and on Debian/Ubuntu/Homebrew Pythons it refuses with externally-managed-environment — use the installer or uv/pipx instead.
lop is the short alias the install provides alongside local-operator; the rest of this page uses it. lop login also sets that provider as your default hosting and picks a default model when none is configured, so the very next lop just works. A headless or piped run with nothing configured 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 main view of the Local Operator TUI: the splash, the keybinding hints, and the composer where you start your 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 🪟 Desktop App (local-operator-ui) The terminal stays the core surface, and the rest of this page describes it. The desktop app is the second way in: Local Operator UI is a desktop application for macOS, Windows, and Linux that drives the same sessions, teams, schedules, and configuration, and adds the surfaces a terminal cannot draw.
The desktop app on the Invoices workspace: the rail with its chats, agents, teams, and mesh; the transcript's tool receipts and streamed write-up; two subagents running above the shared to-do list; and the composer holding a draft. Fixture-driven like the mesh figures below — the real interface over the app's own fixtures, not a live session.
A conversation where images are part of the turn: a chart pasted into the session, and the bar chart the agent plotted and showed inline above its write-up.
Easiest install — the desktop build. Download the installer for your platform from the downloads page (macOS, Windows, and Linux, with the system requirements listed there). The app bundles its own backend and installs it on first run, and uses an existing Local Operator install when it finds one, so a separate lop install is optional.
Or install from a terminal (Node.js 22.13.1 or newer):
npx local-operator-ui # download and run in one command npm install -g local-operator-ui # or install it globally local-operator-ui # ...then start it by name Source, issues, and release notes live at damianvtran/local-operator-ui.
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).
Two workers mid-run in the run pane — one drafting, one auditing — each with its role, elapsed time, context use, and spend, above the to-do list they share.
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, scout, ux-reviewer, tui-designer, and copy-reviewer 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: ), so a team becomes an org of teams; /team chart draws it as an org chart. Nesting is live: task(agent="team: ") starts that sub-team's manager, with its own roster and briefs. lop teams list is empty until you create one.
A team in the desktop app: the roster — manager plus members and counts — and its two briefs, how the group works together and what it ships.
Sending a request to a team is one line: /team 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.
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 " " (pid N, ) 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.
lop network pairs your machines into a mesh: a group of devices that trust each other by a shared secret, each with a keypair of its own. Pair once, and the sessions running on those devices become one list you can read and act on from any of them — the desktop you work at, the laptop upstairs, the small box in the cupboard. Another device's sessions appear in the sidebar under their own heading, marked ⇄, and you can start, list, warm or stop a session on a peer without leaving the machine you are sitting at.
The mesh is peer-to-peer: your devices dial each other directly, with no service in the middle, and the relay that coordinates them runs on your own machine (under a LaunchAgent on macOS). The trust boundary is the network itself — a device you paired — and pairing is a single-use token plus a code two people compare on two screens.
A device in a mesh: another machine's running sessions carry the ⇄ mark and group under it, beside this device's own pinned and active sessions. Captured from a real two-device mesh — the rows come from the peer's own listing, over a live link, not from a fixture.
/network: this device, the networks it is in, which peers answer, and whether the relay is running.
Getting started. On the device that should own the network:
lop network init devmesh # create the network, mint this device's identity, start the relay lop network invite --role drive # a single-use token, written to a file, never printed into a pipe It prints where the token went; hand that file to the other device out of band and, there:
lop network join @/path/to/token # both devices show a code; a person compares them, then confirms lop network status # installed, identity, relay, and this device's links lop network ls # devmesh n_2bf6b70bd36b1cca228daa9f epoch 1 admin 1 member(s) active invite --print reads the token straight off a terminal when you would rather copy it than move a file. Roles are read, drive and admin; a token can be bound to one device and given a shorter life. The pairing did work when lop network peers names the other machine — it is the live answer, not the stored one — and lop network doctor is what to run when a device that should be there is missing, since it reports reachability, epochs and identity per link. The full walk-through — including what to do when a device is unreachable, and the incident verbs (panic, disconnect) — is in the packaged network guide.
From inside a session. The mesh is a slash-command family, so you never leave the composer:
/network this device's networks, peers and relay state, as a screen /network peers which devices answer right now /network sessions --all-peers what other devices are running: list, engage, stop /network approvals onboarding cards: list, show, approve, deny /network status relay health and the log path /network log the recent mesh event trail The pairing verbs are here too — /network new creates the network and /network invite mints the token — and on a device that has never paired, /network on its own opens a screen whose empty state names the whole path in order: create, invite, join. The joining half is the one step a TUI cannot host. Pairing shows a code on each device for a person to check across, so it runs in a terminal, and /network join typed into the composer says exactly that instead of half-starting a pairing that cannot finish.
Running a session on another device. /new remote creates the session on the peer, with a trailing sentence as its first prompt:
/new remote radiant-m4 rebase the auth branch and run the test suite
/new lists the devices you paired: the row carries the whole remote argument, so the first Enter fills a command that runs, and the composer preview always shows exactly what will be sent. The splash's version line is the build this frame was captured from — a development worktree — and not the version of the release this page documents.
The session is minted, spawned and admitted by that device, and the receipt in your transcript names it. /network sessions --peer radiant-m4 then lists what that peer is holding, and --engage warms one or --stop ends it — so a session started this way is visible and controllable from the machine you are sitting at, without a second terminal. The same act is one command from a shell, which is how a script or another agent asks:
lop network sessions --peer radiant-m4 --create --name "auth rebase" \ --prompt "rebase the auth branch and run the test suite" The --prompt is that session's first turn, run there as --send would run it; the receipt says what became of it — completed, failed (with the cause the turn ended on), or still running. The owner waits up to 45 s for that turn, less any time spent starting its runtime; a slower one reads still running on after N s with the --peek that shows its reply once it arrives. Only an owner older than this command, which cannot settle a turn at all, gets a receipt saying it cannot see the end. A create with no --prompt starts no turn at all: it mints the session, warms its runtime in the background and says so.
Whichever front end starts it, the session is the peer's: it appears in that device's own lop sessions, it shows up here under the ⇄ heading for that device, and piloting it is what piloting a local session is — read the transcript, send a turn, watch it work.
Moving a session between devices. Work that has outgrown the machine it started on, or work you want back in front of you, moves with its id and its transcript:
lop sessions move 9f3ac1e0b7d2 --to build-box # hand it to the peer; the copy here is retired lop sessions move 9f3ac1e0b7d2 --to local # bring a remote one home to this machine lop sessions move 9f3ac1e0b7d2 --to build-box --keep # copy it and leave the original running — a new id, marked as a fork The device that will hold the conversation is the one that issues the move, so --to is this machine asking the peer to pull and --to local is this machine pulling; there is no push verb. A session with a turn in flight is refused rather than interrupted, and --wait re-checks a busy one every five seconds; --queue instead records the move to run by itself at the conversation's next safe point (lop sessions move --cancel-queued calls it off before it starts). Inside the TUI the same act is /move --to [--keep] [--queue]. lop sessions sync keeps this machine's copy of a conversation a peer owns up to date without opening it, and lop sessions move --to local --from-replica recovers that copy as a new session for when the device that held it is gone.
Recalling a conversation from a peer, and the --keep distinction in a single dialog: the recall deletes the copy on the device the conversation leaves — the subtitle names it, cloud-node-1 — while the other choice copies it and leaves the original running. The tab behind the dialog sits under a scrim (measured: about 40% of its brightness), so the choice is the only live thing on screen. Fixture-driven like the canvas below — the real page over local-operator-ui's own fixtures, not a live mesh.
Credentials are brokered, not copied. lop network credential share --with lets a peer borrow a login this device holds, for a bounded grant (network.credentials.grant_ttl_s, fifteen minutes by default), and lop network credentials shows who owns what and what this device borrows. A refresh belongs to the device that owns the credential — it lends a short-lived access token and never its refresh token, which is why a token is never refreshed on a device that does not own it. kimi is the one provider that can never be lent: its grants are signed with the fingerprint of the device that made them.
The desktop app has its own view of it. local-operator-ui mounts a Mesh tab beside the sessions it lists: the networks this device is paired with, the devices in each, and what each of them is holding. The tab appears once this device is in a mesh — a device in none shows no Mesh row at all, so pairing comes first.
The mesh in the desktop app: the networks this device is paired with, the devices in each, and what each of them is holding. It is also where a move is made by hand — a conversation is dragged from one device's node onto another's, which a still cannot show, and the dialog above is what that drag asks before it commits. From local-operator-ui's committed Mesh-tab evidence set — the real page over that repository's own fixtures, so the shapes are the backend's and the values are not a live mesh.
Nothing above documents a command that does not run today.
The design set behind all of it is in docs/design/mesh-network.md — the spine, with its requirements and, for each one, the document that owns it — alongside mesh-transport-identity.md, mesh-session-mobility.md, mesh-credentials.md, mesh-incident-response.md, mesh-compute-pool.md and mesh-ui.md.
The Schedules page: the recurring wakes a workspace runs, and the desktop app's reminder that they fire whether or not the window is open.
Sign in with the accounts you already have. lop login lists every login-capable provider; the ids and plan requirements:
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 eligible siblings using cached quota evidence. A compatible, expiring lease from a successful request keeps a warm account preferred; after expiry the policy reselects even in the same conversation. This is a local routing hint, not a guaranteed provider cache hit.
The packaged failover guide explains the routing in full, including how to change the order.
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:
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).
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:
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.
Coming back later is /resume, a picker over your recent sessions, each with its title and age:
/help shows the full table in-app. The highlights:
/reload and /update can replace the terminal while its detached session runtime keeps working. The new terminal reattaches to the same saved conversation, including streamed output and unanswered approval or ask prompts. The runtime adopts installed code only when all work is safely idle: active turns, tools, compaction, gates, loops, child agents, background jobs, and imminent wakes defer that refresh. Reloading an unchanged build does not restart the runtime. Local in-process work and terminal-owned ! shell commands must finish first. A failed update leaves the current terminal and runtime running.
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.
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 --model flags keep working, and API keys can be stored with lop credential update (a masked prompt); the lop secret store, and the /credential hand-over that keeps a secret out of the prompt text, are covered in Credentials and secrets.
The agent's built-in tools, each with its own card in the transcript:
Search works out of the box. The chain walks free legs first and metered legs last: the free providers you list, then the credential-free providers this install can reach, then the best-effort ones, then anything that would spend money or a model turn — including a paid provider you listed, which is tried first among the paid legs and never before a free one.
lop search list lop search test "Python 3.13 release notes" lop search enable perplexity # clears an exclusion lop search disable brave # excludes it from every search lop search order duckduckgo tavily # the priority prefix: free legs first, paid ids run after them lop search setup brave --api-key lop search setup tavily --oauth # official Tavily MCP server lop search setup searxng --endpoint https://search.example.com web_search.providers is a priority prefix, not an allowlist, and its authority is over order within a band: a named free provider joins the free pool where you put it — and with the default round_robin that pool is rotated, so "where you put it" is its position in the pool rather than a promise it is tried first on every call (search balance ordered is the strict version). Every other usable provider joins automatically behind the ones you named. web_search.excluded_providers is the only way to say never — an id there is skipped in the prefix and in the automatic bands. A provider that becomes usable mid-session (a DeepSeek login, an Exa key) joins its band on the next search with no further configuration; lop search list states each provider's state, so the chain is never a guess.
Listing a provider whose transport would spend — a key, or a model turn — does not put it first. It moves it to the head of the paid band, so every free leg is still tried before it: a paid provider listed ahead of a free one is tried first among the paid legs, and lop search list names it as paid rather than as a plain enabled. That keeps the free-before-paid rule absolute, and search list's chain: line shows the resulting order.
round_robin spreads the first attempt across the whole free pool — the listed free providers in their listed order, then the credential-free providers that joined automatically — and never across a band boundary, so nothing that spends can be rotated (or listed) ahead of a free leg.
The same controls are available in-app via /search.
Drop a SKILL.md (with optional reference files) into ~/.local-operator/skills/ / and the agent indexes it semantically. Only the skills relevant to the current turn are surfaced, and their bodies load on demand via skill:// reads, so your context isn't taxed by knowledge you aren't using. /skills lists what's loaded.
Skills can also live in grouped libraries: ~/.local-operator/skills/ / /SKILL.md is discovered too (up to 3 levels below a skills root by default; set LOCAL_OPERATOR_SKILL_MAX_DEPTH to 1-5 to change it, 1 = flat only). A directory that holds a SKILL.md is a skill boundary and is never searched further, so a skill's own references/ or scripts/ folders never register as skills.
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".
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 sessions for scripts, saved teams and goal loops:
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 lop exec "review the change" --team release --background lop exec --goal "Finish the checklist" --loop 3 lop exec --status JOB_ID # durable outcome and session ID lop --resume SESSION_ID # live TUI attachment or cold resume Foreground exit code 0 means success, so lop exec composes in a pipeline. Background launch prints a readiness receipt; use --status for the eventual outcome. Saved teams, reusable profiles, goals and conversation names persist with the ordinary session. Non-TTY approvals still deny unless explicitly changed; --control opts into supervisor gates, not automatic approval. See the full exec guide for option combinations, stdin, resume precedence, loop counting, approvals and lifecycle semantics.
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.
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).
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's and the runtimes' logs 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.
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.
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.
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 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.
The default install includes the TUI, the server, MCP and the other features most people use; a few heavier or niche ones live behind extras:
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 lives at ~/.local-operator/config.yml:
lop config create # scaffold it lop config list # every option, with descriptions lop config edit lop config open # open it in your editor lop config instructions # which instruction files a session assembles, in order Commonly set values: hosting, model_name and model_effort (skip the CLI flags; model_effort sets the reasoning level new conversations start at, and a rung the chosen model lacks clamps to its nearest), 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.
Five different things get called "credentials" here, and they behave differently. Provider API keys are the keys lop itself reads: they live in ~/.local-operator/credentials.env as plaintext, and you set them once through a masked prompt. Provider logins are the OAuth tokens lop login gets, stored in ~/.local-operator/auth.db, where they refresh themselves. The QwenCloud console ticket is one login you keep by hand (below). Session credentials are what a secret handed over through the /credential capture becomes: held in memory for that session, injected into every bash child's environment so a command can use them, and never readable by the model. Ordinary variables are the named values a session carries for the agent, shared through the list_variables and read_variable tools; they are not secret at all, and they are filtered against a list of names that must never be passed on. The encrypted long-term store (~/.local-operator/secrets/) is where a secret goes when it has to outlive the session, and it is the main subject of this section.
lop credential stores provider API keys; lop secret stores every other secret you save yourself, the QwenCloud ticket included.
lop credential update OPENROUTER_API_KEY # provider key, masked prompt lop credential delete OPENROUTER_API_KEY What the lop secret store is, and is not. Secrets are encrypted with AES-256-GCM under names the store keeps only as a keyed hash, so the store's own directory holds no readable .env, no greppable API_KEY=, and not even the secret names. That is a statement about the store alone: the provider keys above are still a plaintext file.
In the default mode the master key is a file beside the store, so anyone who copies that directory can decrypt it. Against an attacker who reads the key file itself, that is the same bar as a plaintext .env. lop secret harden moves the store to passphrase mode, where the only key on disk is a passphrase-wrapped copy and the unwrapped master key lives in the memory of a running broker; it is not the passphrase that stays in memory, and reading that key from another process raises a macOS authorization prompt. Run lop secret unlock once after each boot to put the key back in the broker.
What the store is not is a vault: lop is on your PATH, so anything running as you that is willing to run lop can read every secret exactly as the agent does, and a value an agent retrieves is in that session's memory for the turn. lop secret status reports the mode, and the risk that comes with it when the command can open the store: the key file itself in the default mode, the unlocked broker's memory in passphrase mode. When it cannot open the store it prints the reason and the command that fixes it, and no note. Neither mode is a vault, and the limit above holds in both. The store raises the cost of stealing these credentials a long way. It is not a guarantee.
One provider login you keep by hand is the QwenCloud console ticket: a browser session cookie you capture and store yourself, expiring roughly weekly. Its value goes into the encrypted lop secret store rather than into auth.db, which keeps only the ticket's metadata: its name, when it was captured, and its length. The QwenCloud guide covers it, including lop qwencloud-ticket migrate for a ticket stored by an older build.
The lop secret commands are the main way in. Values are read from stdin, never from the command line, where any process running as you can read them:
printf %s "$TOKEN" | lop secret set GITHUB_TOKEN --description "CI token" lop secret list # names and descriptions, never values lop secret get GITHUB_TOKEN # value to stdout, no trailing newline lop secret rm GITHUB_TOKEN Use a stored secret in the command that needs it:
curl -H "Authorization: Bearer $(lop secret get GITHUB_TOKEN)" https://api.github.com/user The value reaches curl inside the child process; the model sees only the command text it wrote, and the value never enters the transcript. Neither you nor the agent should ever echo a secret, print a variable holding one, write one to a file you do not immediately delete, or paste one into a commit or a message, because each of those puts it somewhere it outlives the command.
From the agent's side, the secret tool takes op: store|retrieve|list|describe|update|delete. retrieve deliberately returns a receipt naming the secret and how to reach it, never the value: in bash that is $(lop secret get NAME), and in the eval kernel it is secrets["NAME"], which hands the real string to the worker process rather than to the transcript. Agent-facing guidance lives in local_operator/guides/credentials/GUIDE.md.
Type /credential and a space, then type the secret, or paste it so your terminal delivers it as text, and it is captured as a credential chip. Typing is masked and captured. So is a paste your terminal delivers as text: Cmd+V on macOS, or your terminal's own Paste command elsewhere. The composer's own paste key, Ctrl+V on macOS, is not captured: it reads the clipboard directly and inserts the value as ordinary text, so a secret must not be pasted that way. The value goes to this session's credential store, the line carries only the chip, and you keep typing to say what the secret is for: that description, not the secret, is what the agent reads.
A key handed over with /credential goes to this session's credential store: the composer keeps a chip in its place, and your description is what the agent reads.
Without the /credential token, a paste is not captured. What opens the capture is the /credential token, not what the text looks like: paste a key into a composer that has not been armed and it is inserted exactly as typed, into the draft, into the prompt and on to the provider. This gesture is a hand-over, not a safety net.
Typing into the capture is masked as well. With the token entered, the characters are held out of the draft and painted as dots, and Enter turns them into the same chip. Esc cancels the capture and puts the characters back in the line as plain text. Bare /credential lists what this session holds, and /credential --persist also saves a session credential to the long-term store.
A hand-typed secret is masked as you type: Enter turns it into a chip, Esc cancels the capture and puts your text back in the line.
bash and the eval kernel are real child processes, and both take their environment from the session's shell_environment policy:
What the strict mode does and does not close. It closes the inherited copy: the provider key lop was started with is no longer handed to the child, and the child's own environment becomes a decision this program makes rather than an accident of how it was launched. It does not make the key unreadable. A command the model writes runs as the same user as lop, so it can read the parent process's environment in one line — ps eww -p $PPID on macOS, cat /proc/$PPID/environ on Linux. Read allowlist as "the commands my agent runs no longer carry the credential", not as "the credential cannot be recovered from a command". Closing that second half means not holding the provider key in the process environment at all (or running the child as another user), which is a separate change.
The mode is resolved once per session. config.yml lives in a directory the agent's own shell can write, as the same user, so a policy re-read per command is one the model could turn off between two commands. An edit here applies at the next launch, and the settings page marks the section accordingly. The consequence to know: if a run can rewrite its own config before its first command, treat the strict mode as a mitigation rather than a guarantee.
The bash child keeps the harness's own additions in either mode: the non-interactive defaults (pagers off, CI=1, LOCAL_OPERATOR_AGENT_SHELL=1, TERM=dumb) and any credential the session store injected for the agent to use. The eval worker is never handed those: it gets its own protocol channel instead, so lop gives a cell no CI and no session credential in either mode. It does still see whatever the harness was launched with when the mode is inherit (a CI=1 the launching environment exported included) — the difference is the injection, which is a bash-only addition. Any subprocess the cell spawns follows the same policy. In either mode shell_environment.exclude removes names outright — including those injections, so it is the way to deny a variable rather than merely not grant it. It governs these two children only: MCP servers (already limited to the SDK's safe set plus their own configured env) and lop's own processes are unaffected. A name in inherit or exclude that matches nothing is a no-op and is reported — a denial at WARNING, a grant at debug — so a typo cannot pass for a control.
values: shell_environment: mode: allowlist # strict; the default is `inherit` inherit: [LANG, LOCAL_OPERATOR_CONFIG_DIR] # names the strict mode keeps exclude: [GH_TOKEN] # never passed on, in either mode Set it per deployment, not globally: the interactive session you are sitting at wants inherit, a server-owned run wants allowlist. Why the strict mode exists: lop reads its provider API key from its own environment before the copy in credentials.env, and falls back to that file only when the environment does not supply a value for the key. The file is not consulted for every provider: a request reads Anthropic's key from the environment or a stored login, and never from credentials.env. An inherited copy is the copy a request uses when the provider has no stored login, and it is a spend credential in the hands of any command the model writes. A run whose whole job is fetching attacker-influenceable pages is exactly the run that must not have one. mode unset (or blank) is inherit; an unrecognised value (strict, allow-list) resolves to allowlist and warns by name, so a typo cannot silently disarm a hardened run. Every name here is a variable NAME, never a value.
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= lop config instructions reports which files a session actually assembles, in order, with the size each contributed and whether it was collapsed as a duplicate — paths and sizes only, never the contents.
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. Inside a git repository under your home directory, the walk continues past the repository root to the folder just below home, so a folder that groups several repos can carry their shared guidance; the guidance file in home itself is not included. A repository under a dot-named folder such as ~/.codex, or itself dot-named, still stops at its own root.
lop credential update RADIENT_API_KEY lop agents push --name "My Agent" lop agents pull --id " " # no key needed to pull Organization sharing: share agents and teams privately inside a Radient organization. These commands act as the signed-in person, so sign in first; --org names the organization (pass the tenant_id the picker prints): lop login radient lop teams push --org lop teams pull --org lop agents push --name "My Agent" --org lop agents pull --id " " --org Without --org every command behaves exactly as before (the public registry path), and lop teams push without it lists your organizations and asks for the flag rather than guessing one. Organization calls carry your signed-in account's token, so they address the Radient cloud API only -- to point them at a local or QA hub deliberately, opt in per shell with RADIENT_ORG_ALLOW_NONCANONICAL_BASE=1.
👉 The example notebooks show real tasks completed with Local Operator, saved from live sessions:
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.
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.
Inspiration drawn from these projects informed our own independent implementation; any mistakes here are our own.
Core contributor: Damian Tran .
Both files in this release have provenance metadata.
server mcp images tokenizer lsp fetch audio all dev
local agent execution operator agent-to-agent agentic local-first ai proactive
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




