Codex Local Ops
Provides an optional animation adapter for Blender, enabling animation-related tasks when Blender is installed.
Provides inspection and operations for Docker daemons, containers, and Compose-oriented workflows when Docker is available.
Provides media inspection, conversion, editing, trimming, concat, resizing, extraction, and composition helpers through FFmpeg/ffprobe, including async variants for longer jobs.
Provides Git operations for local development workflows, such as repository inspection and common development commands.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Codex Local Ops check git status and show last 5 commits in the current repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
English | Polski
Codex Local Ops
Codex Local Ops is a local STDIO MCP server that gives Codex controlled access to developer operations on the machine where it is installed. It combines project-scoped file and process operations with platform-aware integrations for SSH, WSL, Docker, browsers, desktop UI automation, media processing, and optional OBS control.
The project is preparing its first public prerelease, v0.1.0-beta.1. Windows
is the primary platform and has been validated in a real interactive Windows
session. Linux and macOS backends are implemented, but their native desktop
validation is still in progress.
Start here — complete Windows + ChatGPT Web setup
Codex Local Ops is installed once per Windows user, not once per repository. After the global runtime is healthy, projects are added as trusted roots.
For normal Codex work:
open the exact project folder
→ describe the taskFor ChatGPT Web through the Full Harness:
@Codex Native2
Project NAME.
→ describe the taskThe Setup Assistant tracks the complete chain:
ChatGPT Web
→ Codex Native2
→ Full Harness
→ Codex
→ codexLocalOps
→ Windows hostCurrent Web setup commands are read-only unless web-verify --confirm ... is
used to record an already completed verification result:
clops setup-assistant web-status
clops setup-assistant web-plan
clops setup-assistant web-repair
clops setup-assistant web-verifySee ChatGPT Web setup and Setup Assistant for the full flow.
Related MCP server: lnwjud
Platform status
Platform | Status | Scope |
Windows | Supported / validated | Primary target. Core MCP, async jobs, browser, FFmpeg/media, WSL, Docker, SSH, GUI Manager, native window automation, and screenshots have been validated. Interactive screen-recording smoke remains pending. |
Linux | Implemented / native validation in progress | Core operations and Linux platform backend are implemented. X11 desktop support is available when the required system tools exist; Wayland intentionally reports capability limits for unrestricted global control. CI covers headless/unit/package paths. |
macOS | Implemented / CI and native validation in progress | Platform backend, window enumeration/actions, screenshots, and system integration paths are implemented. GitHub-hosted macOS CI covers non-interactive validation. A physical interactive Mac has not yet been used for final native desktop validation. |
Main capabilities
Local system information, health checks, files, processes, and controlled shell execution.
Trusted project roots and explicit execution/control permission profiles.
Persisted async jobs for commands that should not block one MCP request.
SSH agent inspection, imported SSH host profiles, and per-host permission levels.
WSL discovery and execution on Windows.
Docker and Compose-oriented inspection/operations.
Git operations used by local development workflows.
Playwright-based browser automation, screenshots, downloads, console/network diagnostics, and recording support.
Native desktop window inventory/control and screenshots when the platform backend allows it.
FFmpeg/ffprobe inspection and media conversion/editing helpers, including async variants for longer work.
Optional OBS WebSocket scene/source/recording/streaming/status tools.
Optional animation adapters for installed tools such as Remotion, Manim, or Blender.
Optional capabilities fail explicitly with structured CAPABILITY_UNAVAILABLE
results when their dependency, desktop session, permission, or external service
is missing.
Architecture overview
Codex / MCP client
|
| STDIO
v
codex_local_ops.server
|
+-- config + trusted roots + permission checks
+-- audit/redaction + bounded process execution
+-- async session-job store
|
+-- cross-platform operations
| files / shell / Git / SSH / Docker
|
+-- platform backend
| Windows / Linux / macOS
|
+-- optional adapters
browser / desktop / media / OBS / animationThe MCP server is local. Long-running commands can be detached into persisted session jobs so Web/bridge clients can start work quickly and poll it with short requests.
Security model
Codex Local Ops is an operations bridge, not an operating-system sandbox. The security model narrows what the bridge accepts and makes higher-impact behavior explicit.
Trusted roots
Project file operations are scoped to configured trusted roots. Path checks
resolve paths and reject traversal or symlink escapes outside the allowed
project roots. Configure trusted roots during First Run with clops manager or
clops wizard.
Permission profiles
Local execution uses permissions.local_profile:
SAFEfor the most restricted local workflow.DEVELOPERfor normal development operations.FULLfor intentionally broad local execution.
Browser/desktop input has a separate computer_control.mode: OFF, SAFE,
INTERACTIVE, or FULL.
SSH host profiles use READ_ONLY, OPERATIONS, or FULL. The operations
profile is limited to bounded operational commands; the broadest SSH behavior
also depends on expert-mode policy.
Git and GitHub boundary
Git/GitHub integration intentionally has two levels. MCP exposes inspection
only: git_status, git_diff, git_log, git_branch_list,
git_remote_list, github_auth_status, github_repo_view,
github_workflow_list, github_workflow_runs, github_workflow_run_view,
github_release_list, github_release_view, github_pr_list, and
github_pr_view.
Repository and GitHub writes are user-initiated local CLI operations. Examples:
clops git status --path <repo>
clops git commit --path <repo> -m "message" --add <pathspec>
clops git push --path <repo> --remote origin [--branch <branch>] [--async]
clops git publish --path <repo> --remote origin [--branch <branch>]
clops github auth-status
clops github workflow-status --path <repo>
clops github release-create --path <repo> --tag <existing-tag>Local write commands are restricted to trusted repositories, require the local
write permission profile (DEVELOPER/FULL, or the existing expert-mode
override), and are audited with secret redaction. The narrow push API does not
accept force push/refspecs. GitHub child processes remove GH_TOKEN and
GITHUB_TOKEN from their child environment so host gh auth credentials can
be used without changing the user's global environment or exposing tokens in
normal output. This split is a deliberate security boundary, not a missing
feature.
Command output is bounded and common secret patterns are redacted before normal tool exposure. OBS credentials are kept in the configured secret store and are not returned by status calls. Public OBS streaming requires an explicit opt-in in configuration plus confirmation at the call boundary.
See SECURITY.md and docs/troubleshooting.md.
Async jobs
Use async/session jobs for commands that could outlive a normal MCP request:
job_startrun_script_asyncjob_statusjob_outputjob_canceljob_list
job_start and run_script_async return a session_id without waiting for
the child process to finish. Job state and redacted output are persisted, and
registered temporary paths are cleaned after completion or cancellation.
Synchronous process execution has a hard internal budget of 180 seconds, kept
safely below the outer MCP deadline. local_shell_run automatically routes
known long-running commands such as pytest, python/py -m unittest, build
operations, Docker builds, long validation scripts, and FFmpeg transforms into
the persistent async job system. Repeating the same still-running routed command
recovers its existing session_id instead of starting a duplicate process.
If a short synchronous command reaches its effective timeout, Local Ops
terminates that execution's process tree, captures bounded remaining output, and
returns TIMED_OUT rather than holding the MCP request open.
Typical lifecycle:
job_start -> STARTED + session_id
job_status -> RUNNING
job_status -> COMPLETED | FAILED | CANCELLED | FINISHED_EXIT_UNKNOWN
job_output -> bounded stdout/stderrSSH, WSL, and Docker
SSH support can use the operating system's SSH agent and imported host profiles without reading private key material into normal MCP output. Permission policy is applied per configured host.
SSH PERMISSION_DENIED results include structured diagnostics such as
host_profile, policy_mode, command, a safely derived path,
blocking_rule, and the runtime config path. SSH permissions inherit as
READ_ONLY ⊂ OPERATIONS ⊂ FULL: a FULL host can use bounded OPERATIONS
commands without expert mode. Expert mode is required only for commands outside
that bounded policy; FULL does not otherwise grant unrestricted shell access.
On Windows, WSL tools provide distribution discovery, path translation, and controlled command execution in installed distributions.
Docker tools expose daemon/version/container information and bounded operational actions when Docker is available. Docker is optional; unavailable daemons are reported as capability/runtime state instead of breaking unrelated Local Ops features.
Browser automation
Browser automation uses Playwright. Implemented operations include browser lifecycle, tabs/navigation, snapshots and text lookup, click/fill/type/press, select/scroll, uploads/downloads, screenshots, console/network diagnostics, and recording helpers. Browser binaries are an explicit Playwright installation step; see Windows setup and installation.
Desktop automation
Windows desktop automation uses pywinauto; the validated Windows environment
also uses mss, Pillow, and pywin32 support installed with the relevant extras.
Linux supports X11 window operations through system tools such as wmctrl and
xdotool when present. Generic unrestricted global automation is intentionally
reported as unavailable on Wayland where the compositor does not expose it.
macOS uses osascript/System Events for implemented window operations and
screencapture for screenshots. Accessibility, Automation, and Screen
Recording permissions may be required. Final native interactive validation is
still pending.
FFmpeg and media
FFmpeg/ffprobe helpers cover media inspection, conversion, trimming, concat, resize/FPS changes, frame/audio extraction, audio/subtitle composition, and GIF/video conversion. Longer transforms have async variants backed by the same session-job system. FFmpeg itself is a system dependency and is not bundled.
Screen recording support is implemented. The Windows interactive recording smoke is still one of the remaining prerelease validations.
OBS (optional)
OBS integration uses OBS WebSocket and is optional. It includes short-timeout status calls plus scene/source/recording/streaming/stat operations. The project does not require a running OBS instance for its normal test suite. Current Windows validation records OBS as skipped because OBS/WebSocket was not running; that is not treated as a Local Ops failure.
Installation
Python 3.11 or newer is required. The installer deliberately rejects Python interpreters supplied by local-model runtimes and creates a dedicated user-level environment for Codex Local Ops.
Windows — primary path
From the repository root in PowerShell:
.\setup.ps1setup.ps1 creates or reuses the dedicated Local Ops virtual environment,
installs the current source, creates the Local Ops configuration, backs up the
existing Codex config.toml, and registers the codexLocalOps STDIO server.
For the validated Windows desktop/browser feature set, install the optional extras into the same Local Ops venv from the repository root:
$LocalOpsPython = Join-Path $env:USERPROFILE '.codex-local-ops.venv\Scripts\python.exe'
& $LocalOpsPython -m pip install --upgrade ".[desktop,browser,windows]"
& $LocalOpsPython -m playwright install chromiumOBS support is optional:
& $LocalOpsPython -m pip install --upgrade ".[obs]"Then run First Run:
clops manager
# or
clops wizardSee docs/installation.md and docs/windows.md for parameters and validation steps.
Linux and macOS
From the repository root:
./setup.shLinux is secondary and still needs broader native validation. macOS is not yet fully validated on a physical interactive Mac. See docs/linux.md and docs/macos.md before enabling desktop-specific capabilities.
Updating
Update the source checkout, review the changelog, then rerun the platform setup script. The installer updates the package in the existing dedicated environment and refreshes the MCP registration while backing up the Codex configuration.
Windows:
git pull
.\setup.ps1Linux/macOS:
git pull
./setup.shIf you use optional extras, update those extras in the same venv after updating the core package.
Uninstall
Windows:
.\uninstall.ps1The default preserves Local Ops configuration. Use -RemoveConfig only when
you intentionally want to remove it as well.
Linux/macOS:
./uninstall.shPass --remove-config to remove the Local Ops configuration directory too.
Troubleshooting
Failures observed only inside a Web/Native sandbox, such as restricted process launching or desktop capture, do not prove the normal interactive desktop backend is broken. Reproduce desktop issues from a normal user session before changing the installed environment.
Development
Create a Python 3.11+ development environment and install:
python -m pip install -e ".[dev,desktop,browser,obs,windows]"The windows extra is guarded by a platform marker and is harmless on Linux or
macOS. Contributions should preserve structured capability failures for optional
features and must not commit local paths, credentials, browser profiles, logs,
or generated validation artifacts.
See CONTRIBUTING.md.
Testing
Core local validation:
python -m compileall -q src tests scripts
python -m pytest -m "not interactive"
python scripts/mcp_smoke.pyInteractive desktop validation is intentionally separate from headless CI. On
Windows, scripts/validate_interactive_windows.ps1 exercises the real desktop
session and stores ignored local artifacts under artifacts/.
GitHub Actions runs compile, unit tests, STDIO MCP smoke, platform detection,
and package build validation on windows-latest, ubuntu-latest, and
macos-latest. This does not replace real interactive desktop validation.
Versioning and releases
The project uses SemVer for Git tags/releases. The planned first public tag is
v0.1.0-beta.1; its Python package version is 0.1.0b1 (PEP 440). Release
workflows build and validate artifacts only for explicit v* tag pushes and do
not publish packages or create a GitHub Release automatically.
See CHANGELOG.md and docs/release-notes-template.md.
License
Codex Local Ops is released under the MIT License.
Available Tools
146 toolsanimation_backendsD
Inputs: no named parameters.
animation_project_createD
Inputs: path (required), backend (required).
animation_renderD
Inputs: path (required), backend (required), frame, output.
animation_render_asyncD
Inputs: path (required), backend (required), frame, output.
browser_backD
Inputs: no named parameters.
browser_clickD
Inputs: selector (required).
browser_closeD
Inputs: index.
browser_consoleD
Inputs: no named parameters.
browser_download_clickD
Inputs: selector (required), output, timeout_ms.
browser_downloadsD
Inputs: no named parameters.
browser_fillD
Inputs: value (required), selector (required).
browser_findD
Inputs: text (required).
browser_forwardD
Inputs: no named parameters.
browser_get_textD
Inputs: selector.
browser_network_errorsD
Inputs: no named parameters.
browser_openD
Inputs: url.
browser_pressD
Inputs: key (required), selector.
browser_recording_startD
Inputs: headless.
browser_recording_stopD
Inputs: no named parameters.
browser_reloadD
Inputs: no named parameters.
browser_screenshotD
Inputs: output, selector, full_page, image_type.
browser_scrollD
Inputs: x, y.
browser_selectD
Inputs: value (required), selector (required).
browser_snapshotD
Inputs: no named parameters.
browser_startD
Inputs: headless, record_video.
browser_statusD
Inputs: no named parameters.
browser_stopD
Inputs: no named parameters.
browser_tabsD
Inputs: no named parameters.
browser_typeD
Inputs: value (required), selector (required), delay_ms.
browser_uploadD
Inputs: path (required), selector (required).
browser_waitD
Inputs: selector, timeout_ms.
computer_control_mode_setD
Inputs: mode (required).
config_statusD
Inputs: no named parameters.
desktop_clickD
Inputs: x (required), y (required), button.
desktop_control_actionD
Inputs: query (required), action (required), handle (required), value.
desktop_controlsD
Inputs: handle (required).
desktop_find_windowD
Inputs: query (required).
desktop_focus_windowD
Inputs: window_id (required).
desktop_hotkeyD
Inputs: keys (required).
desktop_infoD
Inputs: no named parameters.
desktop_moveD
Inputs: x (required), y (required).
desktop_pressD
Inputs: keys (required).
desktop_screenshotD
Inputs: output.
desktop_scrollD
Inputs: delta (required), x, y.
desktop_typeD
Inputs: text (required).
desktop_window_actionD
Inputs: action (required), handle (required).
desktop_windowsD
Inputs: no named parameters.
docker_compose_downD
Inputs: path (required).
docker_compose_restartD
Inputs: path (required).
docker_compose_upD
Inputs: path (required), detach.
docker_infoD
Inputs: no named parameters.
docker_logsD
Inputs: container (required), tail.
docker_psD
Inputs: all_containers.
first_run_configureD
Inputs: trusted_roots (required), obs_enabled, computer_mode, local_profile, +3 more.
first_run_statusD
Inputs: no named parameters.
gif_to_videoD
Inputs: src (required), output (required).
gif_to_video_asyncD
Inputs: src (required), output (required).
git_diffD
Inputs: path (required), staged.
git_statusD
Inputs: path (required).
health_checkD
Inputs: no named parameters.
job_cancelD
Inputs: session_id (required).
job_listD
Inputs: limit.
job_outputD
Inputs: session_id (required), max_bytes.
job_startD
Inputs: argv (required), cwd, label.
job_statusD
Inputs: session_id (required).
local_list_dirD
Inputs: path (required).
local_read_fileD
Inputs: path (required), max_bytes.
local_shell_infoD
Inputs: no named parameters.
local_shell_runD
Inputs: command (required), cwd, timeout.
local_system_infoD
Inputs: no named parameters.
local_write_fileD
Inputs: path (required), content (required), overwrite.
obs_current_sceneD
Inputs: no named parameters.
obs_password_deleteD
Inputs: no named parameters.
obs_password_setD
Inputs: password (required).
obs_recording_pauseD
Inputs: no named parameters.
obs_recording_resumeD
Inputs: no named parameters.
obs_recording_startD
Inputs: no named parameters.
obs_recording_statusD
Inputs: no named parameters.
obs_recording_stopD
Inputs: no named parameters.
obs_scenesD
Inputs: no named parameters.
obs_secret_infoD
Inputs: no named parameters.
obs_set_sceneD
Inputs: scene (required).
obs_sourcesD
Inputs: scene.
obs_source_visibilityD
Inputs: source (required), visible (required), scene.
obs_statsD
Inputs: no named parameters.
obs_statusD
Inputs: no named parameters.
obs_streaming_startD
Inputs: confirm_public_streaming.
obs_streaming_statusD
Inputs: no named parameters.
obs_streaming_stopD
Inputs: no named parameters.
platform_capabilitiesD
Inputs: no named parameters.
platform_infoD
Inputs: no named parameters.
powershell_runD
Inputs: script (required), cwd, timeout.
project_currentD
Inputs: no named parameters.
project_detectD
Inputs: path (required).
run_scriptD
Inputs: path (required), timeout, arguments.
run_script_asyncD
Inputs: path (required), label, arguments.
screen_recording_startD
Inputs: fps, kind, audio, output, +3 more.
screen_recording_statusD
Inputs: no named parameters.
screen_recording_stopD
Inputs: no named parameters.
service_actionD
Inputs: name (required), action (required).
service_statusD
Inputs: name (required).
ssh_agent_keysD
Inputs: no named parameters.
ssh_agent_statusD
Inputs: no named parameters.
ssh_downloadD
Inputs: host (required), local_path (required), remote_path (required).
ssh_execD
Inputs: host (required), command (required), timeout.
ssh_host_addD
Inputs: user (required), host_id (required), hostname (required), port, +2 more.
ssh_host_removeD
Inputs: host_id (required).
ssh_hostsD
Inputs: no named parameters.
ssh_hosts_importD
Inputs: path, persist.
ssh_testD
Inputs: host (required), timeout.
ssh_uploadD
Inputs: host (required), local_path (required), remote_path (required).
trusted_root_addD
Inputs: path (required).
trusted_root_removeD
Inputs: path (required).
trusted_roots_listD
Inputs: no named parameters.
video_add_audioD
Inputs: audio (required), video (required), output (required).
video_add_audio_asyncD
Inputs: audio (required), video (required), output (required).
video_add_subtitlesD
Inputs: video (required), output (required), subtitles (required).
video_add_subtitles_asyncD
Inputs: video (required), output (required), subtitles (required).
video_add_textD
Inputs: text (required), video (required), output (required), x, +1 more.
video_change_fpsD
Inputs: fps (required), src (required), output (required).
video_change_fps_asyncD
Inputs: fps (required), src (required), output (required).
video_concatD
Inputs: paths (required), output (required).
video_concat_asyncD
Inputs: paths (required), output (required).
video_contact_sheetD
Inputs: video (required), output (required), count, width, +1 more.
video_convertD
Inputs: src (required), output (required).
video_convert_asyncD
Inputs: src (required), output (required).
video_extract_audioD
Inputs: src (required), output (required).
video_extract_audio_asyncD
Inputs: src (required), output (required).
video_extract_frameD
Inputs: src (required), output (required), timestamp (required).
video_extract_frame_asyncD
Inputs: src (required), output (required), timestamp (required).
video_infoD
Inputs: path (required).
video_overlay_imageD
Inputs: image (required), video (required), output (required), x, +1 more.
video_remove_audioD
Inputs: src (required), output (required).
video_remove_audio_asyncD
Inputs: src (required), output (required).
video_resizeD
Inputs: src (required), width (required), height (required), output (required).
video_resize_asyncD
Inputs: src (required), width (required), height (required), output (required).
video_sample_framesD
Inputs: video (required), count.
video_to_gifD
Inputs: src (required), output (required), fps, width.
video_to_gif_asyncD
Inputs: src (required), output (required), fps, width.
video_trimD
Inputs: src (required), start (required), output (required), duration (required).
video_trim_asyncD
Inputs: src (required), start (required), output (required), duration (required).
wsl_execD
Inputs: distro (required), command (required), timeout.
wsl_infoD
Inputs: distro.
wsl_listD
Inputs: no named parameters.
wsl_path_translateD
Inputs: path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 146 tools
Many tool names have overlapping boundaries: platform_info/platform_capabilities/local_system_info, run_script/job_start/local_shell_run, and every video_*_async duplicates the synchronous video_* operation. Even within browser automation, browser_start/open/navigate could be confused. The large set is organized by domain prefixes, but without descriptions an agent cannot reliably pick between near-synonyms.
Most tools follow lowercase_snake_case with domain prefixes (browser_*, video_*, obs_*, ssh_*), which helps navigation. However verb placement is inconsistent: local_shell_run and job_start are object+verb while run_script and health_check are verb+object, and powershell_run breaks the local_shell_* pattern. The naming is readable but uses mixed conventions.
146 tools is far beyond the 16–25 'heavy' range and into extreme-mismatch territory. Even if the server intentionally spans shell, SSH, WSL, browser, desktop, video, OBS, Docker, and jobs, the sheer number creates major navigation and selection overhead. Most agents would be better served by several smaller focused servers.
The surface covers a wide range of local operations—system info, shell, files, SSH/WSL, browser/desktop automation, video editing, OBS, Docker, git, services, and jobs—so it is far from incomplete overall. Still, several subdomains have gaps (file delete/move, git commit/push, docker compose logs), and the lack of descriptions makes lifecycle coverage hard to verify. These gaps are often workaroundable via shell/job tools, so this is a moderate score rather than a failure.
Maintenance
Related MCP Connectors
Use a person's computer after they approve it there: files, Terminal, browser, local MCP.
Use a person's computer after they approve it there: files, Terminal, browser, local MCP.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Hosted MCP memory and agent control plane for durable conversations, jobs, and operations.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to control local Windows development tools by exposing project files, code search, file editing, test execution, Git operations, and resource viewing through a secure MCP interface with permission controls.11Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely access local development capabilities such as files, Git, processes, browser control, Windows automation, WSL, and observability through MCP on Windows and macOS.MIT
- AlicenseAqualityBmaintenanceEnables MCP-compatible AI clients to securely access explicitly authorized local project files and run approved development commands with bounded execution and audit logging.1MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to securely operate on a local workstation through MCP by exposing file, shell, and workspace management tools.10MIT