Operate your own Linux servers from your LLM. Requires the SentinelX agent installed per host.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Inspect callable tools, capabilities, and parameters exposed to AI agents by SentinelX.
sentinel_execRun an allowlisted shell command
sentinel_script_runRun a one-off bash or python3 script
sentinel_editStructured file edit (replace, regex, replace-block, write, append, prepend)
sentinel_moveMove/rename a file or directory
sentinel_copyCopy a file or directory
sentinel_deleteDelete a file or directory
Operate your Linux servers from Claude.ai or ChatGPT β safely. SentinelX gives your LLM an allowlisted, auditable shell: it can only run commands you've explicitly permitted, filesystem access is gated by a per-path allowlist, and every action is recorded. No inbound ports β just a single outbound WebSocket.
The security model is the point. Handing an LLM unrestricted shell on a server you care about is the thing SentinelX is designed to avoid: the allowlist is the real trust boundary, so the agent can't run β or invent β anything you didn't allow. This is the agent you install on the host; structured file edits and service management come with it.
Install (most people start here):
SentinelX is also listed in the ChatGPT app directory β ChatGPT users can connect it in one click, no custom MCP URL required.
This repo is also the agent's source β read on if you want to audit or contribute.
The agent is the box on the right. It opens one outbound WebSocket to the hub at install time (after enrollment) and stays connected. No inbound ports, no port-forwarding, no reverse tunnel.
| Component | Where | What it does |
|---|---|---|
sentinelx-cloud-core (this repo) | /opt/sentinelx-cloud-core on your host | Receives MCP tool calls from the hub, executes them locally, returns output |
| Hub | mcp.sentinelx.app (operated by Pensa) | Auth, multi-host routing, MCP transport |
| Config | /etc/sentinelx/config.yaml | Allowlist: which commands, services, and paths the agent will accept |
| Identity | /etc/sentinelx/identity.json | The agent's enrollment JWT, used to authenticate the WebSocket handshake |
Supported platforms: any modern Linux distribution with systemd
(tested on Ubuntu 22.04 / 24.04 and Debian 12). The agent also runs
unmodified inside WSL2 on Windows β useful for developers who
want SentinelX to manage their WSL environment alongside any other
Linux hosts.
The agent exposes its host's operations as MCP tools to your LLM via the hub:
| Tool | What it does |
|---|---|
sentinel_exec | Run an allowlisted shell command |
sentinel_script_run | Run a one-off bash or python3 script |
sentinel_edit | Structured file edit (replace, regex, replace-block, write, append, prepend) |
sentinel_edit_upload_* | Three-step upload for large file edits |
sentinel_move | Move/rename a file or directory |
sentinel_copy | Copy a file or directory |
sentinel_delete | Delete a file or directory |
sentinel_chmod | Change file permissions |
sentinel_chown | Change file owner/group |
sentinel_service | systemctl start/stop/restart/reload/status |
sentinel_restart | Shortcut for sentinel_service with action=restart |
sentinel_upload_file | Single-shot file upload to the host |
sentinel_upload_* | Three-step chunked upload for large files |
sentinel_read | Read a file's contents, with optional line-range slicing |
sentinel_list | Structured directory listing (name, type, size, mtime) |
sentinel_search | Recursive content search with regex and glob filters |
sentinel_capabilities | Returns the host's allowlist + service definitions |
sentinel_help | A short summary of the agent plus counts of allowed commands, services, and playbooks |
sentinel_state | Internal agent state, for debugging |
sentinel_ping | Cheap connectivity check |
sentinel_read, sentinel_list, and sentinel_search are read-only
filesystem primitives. sentinel_edit and the mutating primitives
(sentinel_move, sentinel_copy, sentinel_delete, sentinel_chmod,
sentinel_chown) write. All of them give the LLM structured access to
the filesystem without shelling out to cat/ls/mv/rm through exec,
and all of them are gated by the same path allowlist (file_ops in the
config, see below), not the command allowlist. Each path in that allowlist
declares an access level: r (read-only ops) or rw (read-only ops plus
the writing ops). Destructive operations that overwrite or remove an existing
target make a timestamped backup first.
The hub additionally exposes a handful of hub-side integrations (Cloudflare DNS, Resend email, Telegram) as MCP tools your LLM can use alongside the agent's tools β those live on the hub, not in this repo. See the integrations table on sentinelx.app.
/etc/sentinelx/config.yaml)A starter config is generated at install time. Editable. Reloaded when the service restarts. Schema:
The agent only runs commands that prefix-match allowed_commands. So
allowing git lets the LLM run git status, git log, etc.; allowing
ls is enough to cover ls -lah /var/log. Out of the box the config is
restrictive β see config.example.yaml for the full starter list with
sensible categories.
There are two independent allowlists, and they protect different ops:
allowed_commands gates exec (and the commands inside script_run).file_ops.paths gates every filesystem primitive β the read-only ones
(sentinel_read, sentinel_list, sentinel_search) on any r or rw
entry, and the writing ones (sentinel_edit, sentinel_move,
sentinel_copy, sentinel_delete, sentinel_chmod, sentinel_chown)
only on rw entries.So a directory listed as r lets the LLM inspect it but not modify it; a
directory listed as rw allows both. A directory in neither is invisible to
all the filesystem primitives (the LLM would have to fall back to exec,
which is governed by allowed_commands instead).
One deliberate exception: sentinel_edit with sudo=true is not gated
by file_ops.paths. The trust boundary for sudo'd edits is the operator's
sudoers policy, not the path allowlist β this is what lets the
add_allowed_command playbook edit the root-owned config. Path
canonicalization still runs (no traversal/symlink bypass); only the
rw-membership check is waived for the sudo path. This carve-out and its
residual risk are documented in THREAT_MODEL.md
(Β§4.2.1).
identity.json is signed by the hub at enrollment.
Compromising one host doesn't grant access to others.config.yaml returns
command_not_allowed. The agent won't synthesize new commands. This is
the actual security boundary β not the unix user, not sudo policy.
When a command is rejected, the agent returns a classified error
(multi-line input, bash keyword, shell pipeline, or simply not in the
allowlist) that points the LLM at the right tool instead of guessing.file_ops.paths. Read-only ops (sentinel_read,
sentinel_list, sentinel_search) work on r and rw entries; writing
ops (sentinel_edit, sentinel_move, sentinel_copy, sentinel_delete,
sentinel_chmod, sentinel_chown) require an rw entry. Paths are
canonicalized β symlinks resolved, .. collapsed β before the prefix
check, so neither path traversal nor a symlink pointing outside the
allowlist can escape it. Empty allowlist = the primitives are disabled.
Writing ops that overwrite or delete an existing target back it up first
(timestamped .bak). sentinel_edit with sudo=true is a documented
exception to the rw check β see THREAT_MODEL.md Β§4.2.1.sentinelx,
not as root. By default the installer grants sentinelx passwordless sudo
so it can manage services and edit system files β but it can still only
invoke what's in your allowlist. To run with no sudo, set
SENTINELX_SKIP_SUDO=1 during install.file_url. When upload_file is called with a URL, the
agent validates the hostname against security.trusted_fetch_hosts,
resolves it to an IP, and rejects loopback / RFC1918 / link-local addresses
(so an attacker can't pivot to cloud metadata services or LAN-internal
hosts). Redirects are disabled, https only, default timeout 15s. The
allowlist defaults to empty β file_url is effectively disabled until
the operator opts into specific hosts.target_path arguments are
resolved under upload_base via safe_path_under(); .. and absolute
paths that escape are rejected up front.For a deeper view, see THREAT_MODEL.md (assets,
adversaries, trust boundaries, per-threat mitigations) and
SECURITY.md (vulnerability reporting + disclosure
policy).
To run the agent against a hub other than the production one:
The actual file mutation for sentinel_edit is done by a small stdlib-only
module vendored at src/sentinelx_core/vendored/pensa_safe_edit.py. It is
called in-process via its Python API (not shelled out), so there is no
shell=True anywhere in the edit path. It does its work via temp files +
atomic rename, makes a timestamped backup before mutating, preserves file
metadata, and can run an optional pre-commit validator
(json/yaml/toml/python/sh/nginx/systemd presets) β if validation fails the
original file is left untouched. It is still also registered as a pip
console-script entry point for standalone/manual use.
sentinelx-cloud-installer β the bash + python installersentinelx-cloud-protocol β wire format specApache License 2.0 β see LICENSE.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sentinelx)<a href="https://allmcps.com/mcp/sentinelx"><img src="https://allmcps.com/api/badge/sentinelx?style=directory" alt="SentinelX on AllMCPs" /></a>