Surjection user guide
Surjection keeps one store of MCP servers, skills and secret references and writes them into the config files of your AI coding clients (oh-my-pi, the recommended client, plus Claude Code, Codex, Pi, Claude Desktop, GitHub Copilot, Grok Build (formerly Cursor) and 31 more). Surjection is built and tested with omp first, so the app lists it first and marks it "Recommended"; the Tools page offers "Get omp" when it isn't installed. The recommendation is presentation only: Surjection never enables anything in omp, or any other client, on its own. Every change is a commit in a local git repository, so you can see what changed, undo an apply, and restore any earlier version. Secret values never enter the store: servers refer to secrets by alias, and the alias points at an environment variable, the OS keyring or 1Password.
Surjection has a desktop app and a command-line tool, surject. Both work on
the same data and can be used side by side. New to Surjection? Start with
getting-started.md; the ideas this guide relies on
(store, scopes, ownership, drift, trust) are explained in
concepts.md. Every command and option is in the
CLI reference, the per-client details are in
adapters.md, and the full design is in
SPEC.md.
Contents:
- Install
- First run
- Where Surjection keeps its data
- The desktop app
- The command line
- Servers
- Clients and apply
- Projects and trust
- Secrets
- History, restore and remotes
- Skills
- Catalogs
- The Surjection skill for agents
- Migrating from SkillDock
- Updates
- Troubleshooting
- Stop managing
- Uninstall
Install
Releases are published on GitHub at
https://github.com/DailenG/surjection/releases, tagged vX.Y.Z (the
first published release is v0.1.2). Each release has these assets
(X.Y.Z is the version):
| Asset | What it is |
|---|---|
Surjection_X.Y.Z_x64-setup.exe | Windows installer (NSIS, per user) |
surjection_X.Y.Z_amd64.AppImage | Linux AppImage |
surjection_X.Y.Z_amd64.deb | Debian and Ubuntu package |
surjection-X.Y.Z-1.x86_64.rpm | Fedora and openSUSE package |
surjection-X.Y.Z-x86_64-linux.tar.gz | Linux binaries (used by the AUR surjection-bin package) |
SHA256SUMS | SHA-256 checksums of the assets above |
latest.json, *.sig | The in-app updater feed and update signatures (only on releases built with the updater key) |
winget-manifests-X.Y.Z.zip | The winget manifests the maintainer submits to winget-pkgs |
To check a download against SHA256SUMS:
- Linux:
sha256sum -c SHA256SUMS --ignore-missingin the download folder. - Windows (PowerShell):
Get-FileHash .\Surjection_X.Y.Z_x64-setup.exe -Algorithm SHA256, then compare the hash with the line for that file inSHA256SUMS.
Windows
winget (once the package is accepted; the submission, kept at the latest release, is waiting for a moderator's review in winget-pkgs):
winget install --id DailenG.Surjection
Chocolatey (community.chocolatey.org/packages/surjection):
choco install surjection
The package downloads the release installer (SHA-256 checked) and runs it
silently, so it installs for the account that runs choco, like the
installer below; run it from an elevated prompt of the account that will
use Surjection (the package refuses to install as SYSTEM). choco upgrade surjection updates it. If the in-app updater updates Surjection first,
Chocolatey keeps showing the older version until the next upgrade; to
leave updates to Chocolatey alone, clear "Check for updates" in Settings,
Updates.
Installer: download and run Surjection_X.Y.Z_x64-setup.exe. It needs no
administrator rights. It installs into %LOCALAPPDATA%\Programs\Surjection:
- the desktop app,
surjection.exe, with a Start menu entry named "Surjection"; - the command-line tool,
surject.exe, next to it; loadout.exe, which forwards tosurject.exe, so scripts and client entries written for Loadout 1.0.x keep working.
The installer adds the install folder to your user PATH, so surject
works in a new terminal (open a new one after installing). Uninstalling
removes it from PATH again. Installing over Loadout 1.0.x removes the old
install (%LOCALAPPDATA%\Programs\Loadout, its shortcuts, uninstall entry
and PATH entry) without touching your data, then moves your data over; see
Coming from Loadout.
Release builds are signed with Azure Trusted Signing. Builds you make yourself from source, and contributor builds, are unsigned, so Windows SmartScreen may warn about them.
Arch Linux
Two AUR packages, not on the AUR yet (AUR account registration is closed for now):
surjection: builds from source.surjection-bin: repackages the release tarball.
Until they are published, build either from this repository:
git clone https://github.com/DailenG/surjection
cd surjection/packaging/aur/surjection-bin # or surjection
makepkg -si
Once they are on the AUR, install either with your AUR helper, for example
yay -S surjection-bin or paru -S surjection. Both install
/usr/bin/surject (the CLI), /usr/bin/surjection (the desktop app),
/usr/bin/loadout (forwards to surject, for scripts and client entries
written for Loadout) and a desktop entry. They replace the agent-loadout
and agent-loadout-bin packages.
Other Linux distributions
- AppImage:
chmod +x surjection_X.Y.Z_amd64.AppImage, then run it. - Debian, Ubuntu:
sudo apt install ./surjection_X.Y.Z_amd64.deb - Fedora, openSUSE:
sudo dnf install ./surjection-X.Y.Z-1.x86_64.rpm(orsudo zypper install ./surjection-X.Y.Z-1.x86_64.rpm)
The .deb and .rpm packages are named surjection and replace the
agent-loadout packages of Loadout 1.0.x. They install the desktop app as
/usr/bin/surjection, with a "Surjection" menu entry, the CLI as
/usr/bin/surject, and /usr/bin/loadout, which forwards to surject for
scripts and client entries written for Loadout. The AppImage holds both, but
only the app is started from it; for the CLI on PATH, use a package or
cargo install.
The desktop app needs WebKitGTK 4.1. If the window opens blank, see Blank window on Linux. To store secrets in the OS keyring, you need a Secret Service provider (see Secrets on Linux).
Command line only (any OS)
cargo install --git https://github.com/DailenG/surjection surjection
This builds and installs surject from the repository; it needs a current
stable Rust toolchain. Once the crate is published on crates.io,
cargo install surjection will do the same. There is no desktop app
this way, and no in-app updater: rerun the command to update.
macOS
No macOS installer is published. Install the CLI with cargo as above.
First run
-
Start the app ("Surjection" in the Start menu, or
surjectionon Linux), or runsurjectcommands. The data directory and an empty store are created the first time something is saved. With no store yet,surject status,surject server lsandsurject skills lspoint atsurject import --scan. -
On a new data folder (nothing saved in the store yet, no remote, and no earlier version of Surjection used here) the app opens with the welcome, once:
- Welcome: what Surjection does and what it found, for example "6 MCP servers in 3 clients and 4 skills on this machine". Finding them only reads your clients' files; nothing has been changed yet. If nothing is found, the step says so and offers Add a server (Install > MCP), Browse catalogs (Install > Browse) and Finish. If SkillDock data is on this machine, it also offers Migrate from SkillDock.... Restore from remote... (for a store you already back up from another machine) ends the welcome and opens the restore.
- Import: the servers grouped by name with the clients that have them (identical definitions are one row; a name with different definitions waits for your choice, as on the Import page) and the skill folders, all selected (Select all servers and Select all skills toggle them). Each value that looks like a secret goes to the OS keyring, a 1Password reference or an environment variable, or the server is skipped; it is never stored as plain text. Import selected runs one import and one adopt.
- Done: what was imported, where each secret went, whether the client files were updated now (instant mode: entries that already matched were adopted without a write, the others rewritten to use the stored server) or wait for Pending changes (review mode), and the adopted skill folders (replaced by links; the originals are in the trash). Set up a backup remote... is optional there and stays in Settings > Versioning.
Skip (or closing the dialog) at any step ends it; it is not shown again on this machine. The Import page's Open guided import... opens the same steps later.
-
Open Tools to see which clients Surjection detected and where their config files are.
-
Bring in what you already have, from the Import page or the command line:
- From SkillDock: Import, Migrate from SkillDock... (or
surject migrate skilldock). See Migrating from SkillDock. - From your clients' own config files: the Import page's MCP
servers, Skills and Discover projects sections (see
Importing in the app), or
surject import --scan, which lists the MCP servers your clients already have;surject importbrings them into the store and takes ownership of them (--onlycopies the definitions without enabling them).surject skills adoptlists the skill folders your clients have that Surjection does not manage, andsurject skills adopt --allbrings them in (see Skills).surject project discoverlists the project folders your clients already know.
- From SkillDock: Import, Migrate from SkillDock... (or
-
Add or edit servers on the MCP page and turn them on per client. Each change is applied to the client files at once (instant mode), and the result is shown in a notification you can undo.
Nothing is written to a client file until a server is enabled for that client, and each write keeps a backup copy of the file first.
Where Surjection keeps its data
| OS | Default data directory |
|---|---|
| Windows | %LOCALAPPDATA%\Surjection |
| Linux | ${XDG_DATA_HOME:-~/.local/share}/surjection |
| macOS | ~/Library/Application Support/Surjection |
Override it with the environment variable SURJECTION_HOME (the former
LOADOUT_HOME is still read when SURJECTION_HOME is unset), or per command
with surject --home <PATH>. surject doctor --paths prints the folder in
use and where it came from. Inside it:
store/: the git repository with your servers (servers/<id>.toml), secret references (secrets.toml), source trust decisions (sources.toml), your catalog list (catalogs.toml), client preferences (clients.toml), portable settings (settings.toml), skills, and project and machine files. It never contains secret values.state/: this machine only (ownership ledger, remotes, trusted projects,local-settings.tomlwith the Online catalogs switch, apply records, an optionalscan-rules.toml).servers/<id>/: local copies (checkouts) of MCP servers that run from their repository's files; this machine only, never synced.backups/: copies of client files taken before each write, and the trash. These can contain secrets from your client files and are never pushed.cache/(git clones of skill and server sources, scan results, saved catalog results, the bundled agent skill's copy),imports/.logs/surjection.log: a local log of what Surjection did (see Logs and the diagnostic report).
Do not put the data directory inside a file-sync folder (OneDrive,
Dropbox, Google Drive, Syncthing, Resilio Sync): sync tools corrupt live
git repositories. Surjection warns (sync_root_detected) when it finds one.
To share the store between machines, use a remote instead (a folder remote
inside a synced folder is supported).
Coming from Loadout
Surjection is the new name of Loadout, from version 1.1.0 on. The
repository moved from DailenG/agent-loadout to DailenG/surjection
(GitHub redirects the old address), the website to https://surject.dev/,
and the command from loadout to surject. How it works did not change.
The first start of 1.1.0, of the CLI or the app, moves a Loadout 1.0.x setup
over once, on its own; the Windows installer does it right after installing.
surject migrate loadout does the same by hand: --dry-run shows what it
would do, and running it again changes nothing. It:
- moves the data folder (
%LOCALAPPDATA%\Loadout,~/.local/share/loadoutor~/Library/Application Support/Loadout) to the new default folder when that does not exist yet, and leaves a link at the old path (a directory junction on Windows, a symlink elsewhere), so an older Loadout still finds the data and refuses it instead of damaging it. While Loadout is running, the move waits for the next start. A folder set withLOADOUT_HOMEstays where it is; - renames the machine-local files that carried the old name
(
state/loadout.lock,logs/loadout.log). The store keeps its files,store/loadout.tomlincluded, so remotes and backups shared with machines still on 1.0.x keep working; - copies the desktop app's preferences (theme, layout) to the new app;
- rewrites the launch entries Surjection owns in your user and private
client files, which name the old
loadoutcommand by its absolute path, to start the newsurject, with the usual backups, one History commit and a report. Shared project files (such as<P>/.mcp.json) are not rewritten: an entry there that starts the bareloadoutstays as it is and counts as up to date, so teammates still on Loadout keep working (theloadoutcommand forwards tosurject). New shared entries startsurject. Anything else stays pending as usual; - replaces the bundled
loadoutagent skill withsurjectionin the clients that had it (a copy you edited is left as it is).
--dry-run writes nothing. After the move, a Loadout 1.0.x program that
still reaches the data folder refuses it (unsupported_schema) instead of
damaging it: its client hooks (exec, secret get, secret-header),
completions, doctor --report and --version still run, but every other
1.0.x command and the 1.0.x app stop. Server files keep writing
${loadout_home}, and store/loadout.toml and store/.loadout-allow keep
their names, so remotes shared with machines still on 1.0.x keep working.
On Windows, move-from-loadout.ps1 does all of this in one go. Download
it from https://surject.dev/move-from-loadout.ps1: the copy attached to the
latest release, signed with the same certificate as the installer (the
source is scripts/move-from-loadout.ps1). It installs the latest
Surjection when it is missing or older (checking the download against the
release's SHA256SUMS and its code signature), runs
surject migrate loadout when something is left to move, replaces a
cargo install agent-loadout with the final agent-loadout, which
forwards to surject, and prints the result. -DryRun only shows what it
would do; running it again changes nothing. It works in Windows PowerShell
5.1 and PowerShell 7, under the RemoteSigned policy (Windows asks once
whether to run software from this publisher):
powershell -NoProfile -ExecutionPolicy RemoteSigned -File .\move-from-loadout.ps1 -DryRun
powershell -NoProfile -ExecutionPolicy RemoteSigned -File .\move-from-loadout.ps1
Step by step: Move from Loadout to Surjection.
What keeps working without a change:
- the
loadoutcommand: the Windows installer and the Linux packages ship aloadoutthat forwards tosurject(it prints one line, "loadout is now surject", on stderr, except forexecandsecret get); LOADOUT_HOMEandLOADOUT_LOG, read whenSURJECTION_HOMEandSURJECTION_LOGare unset;- a project's
.loadout/folder, read and written in place (teams commit it); new projects get.surjection/; - keyring references
keyring://loadout/...; new keyring entries go under the servicesurjection; - History entries written by Loadout.
The packages have new names: winget DailenG.Surjection, Chocolatey
surjection (the agent-loadout package now installs it), the AUR
packages surjection and surjection-bin, and the surjection .deb and
.rpm, which replace agent-loadout. The 1.0.x app's updater finds 1.1.0
on its own.
The desktop app
The sidebar has a Scope switcher at the top: User (the user scope, for all your projects), one entry per project with its trust state (the tooltip shows its folder), and + Add folder..., which adds a project and selects it. Skills, MCP and Tools follow the scope you pick; switching closes any open card or dialog. The choice lasts until you quit: the app always starts at User. The pages:
- Skills: installed skills in list, grid or grouped view; Check updates; per-skill details with Enable in Tools (per client), Enable in Project, files and update diffs. Source tabs show each client's skill folder with Managed, Unmanaged and Conflict entries, plus the Agents CLI skills; unmanaged ones can be adopted (Adopt on one folder, Adopt all identical for every name with one content), imported into the store or moved to the trash.
- MCP: your servers with their per-client state (enabled, disabled, pending, drift, blocked, not supported). At project scope it lists that project's manifest servers (see Projects and trust). Toolbar: search, Refresh and Add server, whose menu also has Local command..., From Git or folder..., Browse catalogs... and Import from your clients (N found)... (see Adding a server in the app). With no servers yet, the page shows the same paste field and an Import button. The edit dialog has Form, TOML and Preview tabs; Preview shows the entry each client gets, with secrets masked. A remote server's details have a Sign-in section (see Checking an address and signing in). Below the list, Not managed by Surjection shows the entries the client files of the scope hold that Surjection leaves alone, per client and file, with Import... on each; the line above the list counts both ("7 managed, 3 not managed by Surjection"). A server added from a Git repository or folder has Check for update in its details, and Restore copy when its local copy is missing or out of date (see Servers from a Git repository or folder in the app). Long lists render only the cards near the visible area; every card stays in the list for search, screen readers and find-in-page.
- Projects: Add folder, Init manifest..., Discover projects, and per project Open, Effective config (which server each client loads in that folder and from which file), Apply, Remove from list, and Review change & trust. A project your account cannot write is marked Read only (see Read-only files and folders).
- Tools: every client with its tier, whether it is installed, its user and project config files (with Open folder), and a capability summary. At project scope the project files are named under that project's folder. Manage turns servers on and off for one client: at User in the store, at project scope in that project's manifest (the store servers the project inherits are listed read only, with Open on MCP page; an untrusted or changed project is read only until Review & trust). Each card counts the client's entries not managed by Surjection, and Manage lists them with Import....
- Install: add new skills and MCP servers from catalogs, Git
repositories, folders, or a URL or snippet you paste. Skill (Git or
Local folder or
.zip/.skillarchive), MCP (URL, snippet or command, which opens Add server filled in, or From Git or folder) and Browse (search the online catalogs; see Catalogs). Skills are fetched and scanned first and shown in a review (files, source, trust state and the built-in scan's findings) before Install; see Servers from a Git repository or folder in the app for MCP. - Import: take over the MCP servers, skills and projects your clients already have, with their settings and secrets: MCP servers, skill folders, project folders, and the SkillDock migration (see Importing in the app).
- History: every store commit, filtered by All, User or Projects (History covers every scope and does not follow the switcher), with Show diff, Undo this apply, Restore this version, Restore entity..., Tag and Download zip; a Client file backups tab; and the remotes strip with sync state and conflicts. It loads 200 commits at a time; Load more fetches the next 200.
- Settings: App Preferences (Appearance, the not-managed notice), Versioning & Backup (remotes), Migration (a link to the Import page), Secrets, Sources (see Source trust), Catalogs (see Catalogs), Address checks (see Checking an address and signing in), Agent integration (see The Surjection skill for agents), Updates (see Updates) and, last and set apart with a red border, Stop managing (see Stop managing).
- About: version, app identifier, repository and data directory.
A pending changes pill appears in the header when changes wait for review or an apply left something blocked or undecided; it opens the Pending changes drawer with per-file diffs, Apply all, Apply selected, Discard pending (review mode) and Resolve... for entries that need a decision.

Paths. The app shows file and folder paths from a known starting
place: ~ for your home folder, <P> for the project folder, and
%APPDATA%, %LOCALAPPDATA%, $XDG_CONFIG_HOME or a client's own
variable (such as $CODEX_HOME). A path outside all of them (on another
drive, or in a folder such as C:\Code or a synced folder) is shown as a
folder icon and its last part, such as …\autotask-email-ticket-latency;
hovering it (or a screen reader) says "Outside your home folder". Surjection
never sends or stores the full location of such a folder, so a folder you
just picked (Install > Skill > Local, MCP From Git or folder, adding a
project) reads the same way. The diagnostic report writes such paths as
$EXTERNAL/<name> (%EXTERNAL%/<name> on Windows).
Importing in the app
Guided import at the top of the page opens the first-run welcome's steps again (see First run): the MCP servers of your clients' files (user and known projects) and your user skill folders that Surjection does not manage, imported together with Import selected. The sections below do the same one kind at a time, with more options.

The Import page's MCP servers section reads the MCP entries of your user files and of every project this machine knows (trusted or not; reading changes nothing) and lists those Surjection does not manage. Filter them by User files or Projects.
- An entry that is the same in several files is one row, with the files listed. It is checked; uncheck what you want to leave alone.
- A name with different definitions shows them side by side. Choose
Use the definition from ..., Import both under their own IDs
(the second gets
NAME-<client>; you can edit each ID) or Skip for now. - Already in the store marks a name the store has; import it under another ID or leave it.
- A value that looks like a secret needs a destination: OS keyring
(the default; the value moves from the client file into the keyring and
is never shown), a 1Password reference (
op://vault/item/fieldorop-env://<environment>/<NAME>), an Environment variable, or Skip this server. The store keeps a${secret:ALIAS}reference. - Definition only marks an entry found only in project files: it is
stored but enabled nowhere. After the import, Add to project
manifest names it in that project's manifest, for the clients whose
files hold it. An entry in a shared file (
.mcp.json) goes to the shared manifest by default, which manages that entry for everyone using the repository; for Claude Code and Devin, Private instead leaves the shared entry alone and adds a private one. An untrusted project asks for Review & trust first. - Under Import both, a secret both definitions hold can only go to the keyring (each value gets its own alias) or skip the server.
- Only the entries the filter shows are imported.
Review import... shows each server with the clients it is enabled for and where each secret goes; Import makes one commit and, in instant mode, one apply. The result lists what was imported, what was skipped and why, and where the secrets went; in review mode, Open Pending changes applies it. Import... on a not-managed entry (MCP page, Tools > Manage) opens this page with only that entry picked.
When the import moved secrets out of a file, the apply backed that file
up first, so the backup still holds the old values. The result says so:
"The previous file contents, including the old values, are kept in
backups so you can undo this import." Remove those backups now asks
first, then overwrites exactly those backups with zeros and deletes them
(other backups stay). Your disk, file system snapshots or backup tools
(OneDrive, Time Machine, File History) may still keep older copies. After
that, undoing the import still restores the store, but it reports the
files whose previous content can no longer be restored. On the command
line, surject import --remove-old-backups ... does the same in the
import run, and surject import --remove-old-backups=<APPLY-ID> does it
later (the import prints the apply id).
In review mode, or when an entry is left to decide, the import writes
nothing yet: the result says the file still holds the old values. The
apply that rewrites it later backs it up again, and that backup is not
marked for removal: delete that apply's folder under backups/files in
Surjection's data folder, or let retention remove it (50 runs or 30 days).
After the file watcher, window focus or Refresh find something new, a one-line notice at the bottom of the sidebar counts it, for example "7 not managed" (MCP entries plus skill folders). Click it, or press Enter or Space, to open the message, such as "omp has 2 MCP servers not managed by Surjection. 5 skill folders are not managed by Surjection.", with Review and Dismiss above the line; Escape or a click elsewhere closes it. With the sidebar collapsed, only the count shows; a click on it reviews. Focus and watcher events rescan at most once a minute; Refresh always does. Review opens the Import page; Review and Dismiss both mark what was shown as seen on this machine, so it does not come back (opening and closing the message marks nothing). Turn the notice off in Settings, Preferences, Not-managed notice.
The command line
surject [--home <PATH>] [--json] [--yes] <COMMAND>
--home <PATH>: data directory to use instead ofSURJECTION_HOMEor the per-OS default.--json: machine-readable JSON on stdout.--yes: answer yes to confirmations.
surject --help and surject <command> --help describe every option; the
CLI reference has all of them on one page.
Commands:
| Command | What it does |
|---|---|
doctor [--paths] [--scan-history] | Check the installation: data directory, sync-folder warning, optional secret scan of every store commit |
server ls|show|add|edit|enable|disable|rm|update|checkout | Manage MCP servers in the store; edit changes fields, enable/disable --client C turn a server on or off for clients (--project PATH [--shared]: in a project's manifest), add --from <GIT-URL|PATH> proposes servers from a repository or folder, update reads a server's source again, checkout restores its local copy |
source ls|trust|block|untrust | Trusted and blocked sources of skills and MCP servers |
catalog ls|add|rm|enable|disable|online|search|show|refresh | Online catalogs of MCP servers and skills (off until catalog online on) |
agent install [--client C]... [--reset], agent remove [--client C]..., agent status, agent skill-path | The read-only Surjection skill for coding agents: install and enable it per client (--reset puts the bundled copy back over your edits), disable or remove it, show its state |
skills ls|add|rm|enable|disable|update|scan|import|adopt|trash|vendor | Install skills, enable them for clients and projects, update, scan and adopt client folders |
project init|add|discover|ls|rm|trust|share | Project manifests, and the folders your clients already know |
status [PATH] [--client C] [--scope system|project|all] [--check] | State of every owned and desired entry |
diff [PATH] [--client C] [--exit-code], diff --rev A..B [--raw] | The apply plan as file diffs, or a store diff between revisions |
effective [PATH] [--client C] | What each client loads in a folder, and from where |
apply [PATH] [--client C] [--scope ...] [--dry-run] [--on-conflict ask|skip|overwrite|import] | Reconcile client files with the store (one commit per run) |
rollback <APPLY-ID|last> | Roll back an apply run |
history [--entity E] [--limit N], show <REV> [--raw] | Store commits and what they changed |
tag [NAME] [REV] [-m MSG], tag --list, tag --delete NAME | Store tags |
restore <REV|TAG> [--path ENTITY]... [--apply] | Restore the store from an earlier state, as a new commit |
restore --files <APPLY-ID> [--file PATH] | Restore client files from the backups of an apply run |
restore --from <DIR|ZIP|BARE-REPO> [--machine ID|LABEL] | Set up this machine from a folder remote, zip or repository |
backup [-m MSG] [--tag NAME] [--remote NAME|--all|--no-push] | Commit hand edits of the store, optionally tag and push |
remote add folder|add git|ls|rm|push|pull|machines|token|create-github | Backup and sync remotes (none by default) |
import [NAME]... [--scan] [--client C] [--scope ...] [--project ID] [--only] [--pick|--as NAME=CLIENT] [--skip NAME] [--extract NAME[:FIELD]=DEST] [--remove-old-backups[=APPLY-ID]] | Import client entries Surjection does not manage into the store, extracting literal secrets |
adopt [CLIENT/NAME]... [--all-identical] [--theirs] | Take ownership of foreign or changed client entries |
migrate skilldock [--apply] | Migrate from SkillDock |
secrets ls|check|providers|set|clear|map-op-env|op-account|service-account | Secret aliases, providers and their status |
env --export [--shell pwsh|bash|zsh|fish] [--aliases A,B] | Print export statements for secret aliases |
exec [--ref NAME=REF]... [--op-env ID --map KEY=NAME...] -- <cmd> [args] | Start an MCP server with its secrets (used inside client configs) |
secret get, secret-header | Internal, used by client command hooks |
completions bash|zsh|fish|powershell|elvish | Print a shell completion script |
PATH arguments take any folder inside a project. Without one, status,
diff and apply cover the user scope and every project this machine
knows.
Shell completions: surject completions <SHELL> prints a script for
bash, zsh, fish, powershell or elvish. For example, add
surject completions powershell | Out-String | Invoke-Expression to your
PowerShell profile, or source <(surject completions bash) to ~/.bashrc.
Exit codes:
| Code | Meaning |
|---|---|
| 0 | OK |
| 1 | Error (or a client file could not be written; since 0.4.0 a read-only file is blocked instead and does not change the exit code) |
| 2 | Usage error |
| 3 | Pending changes or drift (status --check, diff --exit-code) |
| 4 | Entries need a decision (conflicts, collisions, drift) |
| 5 | Blocked by missing secrets |
| 6 | Timed out waiting for the store lock |
| 7 | A project manifest needs surject project trust |
| 8 | A scan blocked an install, update, save or checkout (--allow-dangerous overrides it) |
| 130 | Interrupted with Ctrl+C (or SIGTERM) |
Commands that edit the store and apply at once (server add, server edit,
server enable, server disable, server rm, server update, server checkout,
secrets set, secrets map-op-env, secrets op-account, project init,
project rm, project trust, project share) commit the edit and then
exit the way surject apply would. surject exec has its own codes: 77
when a secret is missing, 78 for a configuration error.
Servers
A server is one file, store/servers/<id>.toml. Ids are 1 to 64
characters from a-z, 0-9, ., _ and -.
Add a remote server from its address. The ID is made from the address,
the transport is http (sse when the path ends in /sse), and the server
is enabled for the detected clients that can run it:
surject server add https://mcp.linear.app/mcp
Add a stdio server from its command; the ID comes from the package or command:
surject server add -- npx -y @modelcontextprotocol/server-github
Name the ID yourself and pick the clients:
surject server add github --client claude-code --client codex --env 'GITHUB_PERSONAL_ACCESS_TOKEN=${secret:GITHUB_PAT}' -- npx -y @modelcontextprotocol/server-github
surject server add linear --url https://mcp.linear.app/mcp --header 'Authorization=Bearer ${secret:LINEAR_TOKEN}' --all-detected
Which clients get a new server: without --client, --all-detected or
--no-clients, the detected clients that can run the server's transport
(before 1.2.0, a new server was enabled nowhere). --client (repeatable)
names them, --all-detected follows every detected client, and
--no-clients only defines the server.
Use single quotes around values holding ${...} so your shell does not
expand them. Other options: --transport stdio|http|sse, --cwd,
--display-name, --description, --tag.
surject server ls lists servers, surject server show <ID> prints one,
and surject server rm <ID>... removes servers (and the client entries
Surjection wrote for them) in one commit. surject server check <ID|URL>
finds out what a remote server asks for (see
Checking an address and signing in).
In the app, Add server on the MCP page and Install > MCP do the
same (see Adding a server in the app); the
edit dialog also sets the environment, headers, enabled clients, secret
delivery and allowed or denied tools. The TOML tab edits the file
directly; the format is in SPEC section 5.2. Values in env, headers,
args, url and command may hold references:
| Reference | Meaning |
|---|---|
${secret:ALIAS} | A secret alias from secrets.toml |
${env:NAME} | An environment variable |
${home}, ${project}, ${surjection_home} (or ${loadout_home}, the same folder) | Path variables, filled in at apply time |
$${ | A literal ${ |
When a pasted snippet holds a value that may be a secret (an
Authorization header, a token in env, an --api-key argument, a key
in the URL), the form gets a ${secret:ALIAS} reference in its place, for
example Bearer ${secret:N8N_MCP_AUTHORIZATION}, and the dialog lists
each such field with the same choices as Import: OS keyring (the
default: the value goes to the keyring when you save and is never shown
again), 1Password reference, Environment variable, or Leave
empty for now. The alias is made from the server ID and the field name;
you can change it. An obvious placeholder such as <YOUR_ACCESS_TOKEN_HERE>,
YOUR_TOKEN or xxxx is not a secret: it becomes an alias without a
value, and you set the value later in Settings > Secrets, as for an
alias left empty.
On Windows, clients that start servers without a shell (Claude Desktop)
get npx and other .cmd launchers wrapped as cmd /c npx ...
automatically; the store keeps the portable npx.
Adding a server in the app
On the MCP page, Add server (Ctrl+N) opens one dialog with two steps. Its menu (the arrow next to it) goes straight to Local command..., From Git or folder..., Browse catalogs... (with the MCP servers only filter on) or Import from your clients (N found).... Install > MCP > URL, snippet or command opens the same dialog.
-
Paste. Paste a server URL, a config snippet from any client (JSON or TOML), or a command such as
npx -y @scope/serverinto Paste a server URL, a config snippet, or a command. Surjection detects what it is as you type and says so ("Detected: Remote server (Streamable HTTP)", "Detected: Config snippet", "Detected: Local command (stdio)"). A Git repository or folder goes on to From Git or folder, which starts finding servers in it. When a client already has a server with this URL or command, the dialog offers Import instead, which keeps that client's settings and secrets. Links under the field lead to the other ways in. Continue (Enter) moves on. -
Review. Name and ID (the ID follows the name until you edit it, and is checked when you leave the field; a taken ID offers Use id with a free one), Connection (transport, then the URL, or the command and arguments), for a remote server Sign-in (Signs in with OAuth, Needs a token with the headers, or No sign-in) with Check this address, the secrets found in a pasted snippet, and Enable in clients. The installed clients that can run the transport are already on; clients that are not installed or have no MCP config here are behind Show N more, and a server enabled for no client gets a warning. More options holds the description, working directory, environment or headers, secret delivery, the tool filters and Preview client entries. Back returns to the paste step; Paste another starts over from a new paste.

Add server (Ctrl+Enter) saves. Before saving, the dialog checks the
ID rule, a taken ID, a missing command or address, and an address that is
not http(s)://. Each problem shows under its field, a summary next to
the button names them ("1 problem: ID", each name a link to its field),
and focus moves to the first one. An error from the save itself is placed
the same way, with its details.

After saving, the notification says where the server is enabled ("Added Linear. Enabled in omp, Claude Code." or "Added Linear. Not enabled in any client yet."). Its one action is View: it opens the server's card (clearing a search that hides it), expands it, scrolls to it and outlines it briefly. In review mode the action is Review changes, and when the apply left work, Open Pending changes. To undo an add, use History. Notifications with an action stay while the pointer or focus is on them.
Keyboard shortcuts in the dialog and on the MCP page:
| Keys | Where | Does |
|---|---|---|
| Ctrl+N | MCP page | Opens Add server |
| Ctrl+V | MCP page, outside a text field | Opens Add server with the clipboard pasted |
| Enter | Paste step | Continue |
| Ctrl+Enter | Review step | Add server |
| Esc | Add server | Closes; asks first (Discard or Keep editing) when something was typed |
Checking an address and signing in
Check this address, in the review step of a remote server, finds out what the server asks for before you add it. It sends one MCP request to the address without credentials and, if the server uses OAuth, reads the public metadata the MCP authorization specification defines (the server's protected resource metadata and its sign-in server's metadata; the sign-in server may be another host). The first time for a host, Surjection asks ("Contact host?") and remembers the answer for that host on this computer; nothing is sent until you allow it. The result is one of: signs in with OAuth (with the sign-in server, and whether clients can register themselves with it, or "not known" when its metadata could not be read), asks for a token (add it as a header), answered without credentials, could not be reached, or an unexpected answer. It also sets the Sign-in choice. See Security, Address check and client sign-in for the limits.
Settings > Address checks lists each host you answered for (Allowed or Not allowed), with Forget to be asked again. The CLI uses the same answers:
surject server check linear # a saved server's address
surject server check https://mcp.example.com/mcp # any address
On a terminal it asks before contacting a new host; in a script,
--allow-host allows it (and remembers that). Without either it contacts
nothing and fails with host_waiting (exit code 4). It exits 0 when the
server answered (OAuth, token or open) and 1 when it could not be reached
or answered unexpectedly; --json prints the result.

A remote server's details on the MCP page have a Sign-in section: for
each client the server is enabled in, how that client signs in (Sign-in
command, Signs in inside the client, Add as a connector or No
OAuth sign-in), its steps and the documentation they come from; steps
not confirmed against that documentation are marked Not verified.
For Codex, Claude Code and OpenCode, Sign in with client runs the
client's own login command (codex mcp login <id>, claude mcp login <id>, opencode mcp auth <id>) after a confirmation that shows the
exact command. It runs in the background without a console window, gets
no token or password from Surjection, and opens the client's sign-in in
your browser. Surjection never holds the OAuth tokens: each client keeps
its own. A walkthrough is in
Add a remote MCP server that signs in with OAuth.
Change a server with surject server edit <ID>. The options of add
replace what the file has (-- <command> [args], --url, --transport,
--cwd, --display-name, --description, --tag), --env and
--header set one variable or header each, and --unset-env,
--unset-header and --clear-cwd remove them. Everything else in the file
stays, comments included. Giving --url to a stdio server makes it an http
server (and a command makes an http or sse server stdio); switching drops
the other transport's fields. As with add, a value that looks like a
secret is refused (leak_detected): use a ${secret:ALIAS} reference.
surject server edit github --env 'GITHUB_TOOLSETS=repos' --unset-env GITHUB_HOST
Turn a server on or off for clients, as the client pills in the app do:
surject server enable github --client cursor --client codex
surject server disable github --client codex
--client takes client ids (surject server enable --help lists them;
another value is a usage error). A server enabled for all-detected becomes
a list of the clients it reaches on this machine, with the change applied.
Enabling a client whose entry you released on this machine (Release
ownership in a conflict) takes it back. With --project <PATH> the
change goes into that project's private .surjection/project.local.toml
(--shared: its project.toml), as on the MCP page at project scope: the
project must be trusted as it is, a store server the manifests do not name
gets an override (from = "<ID>"), and disabling every client leaves
clients = [] (no client, not the project's defaults). With --shared the
change starts from what project.toml alone says (its entry's clients,
else its own [defaults]), so your private choices never reach the team's
file. A server hidden in the project (enabled = false) is refused: edit
or remove that entry in the manifest instead.
Servers from a Git repository or folder
surject server add --from <GIT-URL|PATH> proposes servers from a Git
repository (https, ssh, file:// or a bare repository; --ref picks a
branch, tag or commit, --path a folder inside it) or a local folder. It
reads, in this order: server.json (MCP Registry: npm, PyPI, NuGet and OCI
packages become npx, uvx, dnx and docker run commands pinned to the
package version; remotes become http or sse servers), manifest.json
(MCPB/DXT bundles), committed client configs (.mcp.json, mcp.json,
.vscode/mcp.json, .cursor/mcp.json, .codex/config.toml,
.omp/mcp.json, claude_desktop_config.json) and, only when none of those
give a server, the repository itself as the server (package.json with a
bin, pyproject.toml scripts, a Dockerfile), pinned to the commit:
npx -y github:<owner>/<repo>#<sha>, uvx --from git+<url>@<sha> <script>.
Identical definitions found in several files are proposed once.
surject server add --from https://github.com/acme/weather --dry-run
surject server add --from https://github.com/acme/weather --pick weather --client claude-code
- Nothing runs while proposing: git clones shallow into
SURJECTION_HOME/cache/mcp-sourcesand the clone is removed afterwards (leftovers of an interrupted run are removed after an hour). Dependency and build folders (node_modules,.venv,venv,__pycache__,target,dist,build) are not read or scanned; the output lists them.--dry-runlists the proposed servers, every launch line (an OS-specific command too), what they need and the scan findings, and saves nothing. - With one proposed server it is saved; with several, choose with
--pick <KEY|ID>(repeatable) or--all. A positionalIDrenames the one server saved;--client,--all-detected,--display-name,--descriptionand--tagapply to what is saved. - Secrets are never copied. A secret the file declares becomes a
${secret:ALIAS}reference; a literal that looks like a secret in a committed config (or in a client-specific setting such as omp'sauth) is replaced by a reference or left out, and its value is dropped. Set the secrets afterwards (surject secrets set ALIAS). - A registry package without a version is marked Not pinned: each start
can run different code. A package from another registry runs from that
registry (
--registry=...,--index-url=...). - A server that runs code from the repository (the repository as a
package, a bundle's own files, a committed config that starts a file of
the repository) runs that code every time a client starts it. When it
runs from the repository's files, the clone is kept at
SURJECTION_HOME/servers/<id>on this machine only (never synced) and the command names it as${loadout_home}/servers/<id>(the spelling Loadout 1.0.x also reads, since the store is shared;${surjection_home}means the same folder). Its client entries are blocked while that copy is missing or at another commit (after another machine updated the server, for example): runsurject server checkout <ID>, which asks the same trust question and runs the same scan as adding it (--allow-dangerousfor a server you saved anyway).server rmremoves the copy. - A server added from a folder belongs to this machine: on your other
machines its entries are blocked ("added from a folder on another
machine"). Setup steps (
npm install,docker build) are printed with the real paths; run them yourself. A Docker server's image is namedsurjection-local/<id>:...and never pulled: build it first. - Saving goes through the source trust question (see Source
trust; a local folder is asked about too) and the
built-in scan: a dangerous verdict saves nothing (exit code 8) unless
you pass
--allow-dangerous. Without a terminal, pass--trust-source[=once|repo|owner|host]. - The server file records where it came from (
[meta.source]: URL or folder, folder inside the repository, ref, commit, file and converter).surject server update [ID] --checkreads the source again and lists the fields that would change (and the changed files of a checkout);surject server update [ID]applies it, keeping the server's id, your values for environment variables and headers that still exist, and your secret names. A checkout is replaced only once the update is committed; run its setup steps again afterwards.
Servers from a Git repository or folder in the app
Install > MCP > From Git or folder proposes servers from a Git
repository (URL, with an optional folder in it and a branch, tag or
commit) or a folder you pick. Surjection reads server.json (MCP Registry),
manifest.json (MCPB/DXT bundles), committed client configs (.mcp.json,
.vscode/mcp.json, .cursor/mcp.json, ...) and, when none of those
exist, package.json, pyproject.toml or a Dockerfile (the repository
is the server). Find servers fetches and scans; nothing runs and
nothing is saved yet.
- Each proposed server shows where it came from (file, entry, converter),
every command line it launches with (the base one and each
operating-system override), Not pinned when the command names no
version or commit, what it needs (secrets to set after saving, values the
file held that Surjection did not keep, setup steps such as
docker buildthat you run yourself) and its scan findings. Dependency and build folders (node_modules,dist, ...) are not read or scanned; the review names them. - A server that runs code from the repository says so: "This server runs code from this repository every time a client starts it." Its command is pinned to the reviewed commit.
- Tick the servers to add. Review and edit opens one in the usual server form (ID, command, environment, clients, ...). Enable for picks the clients of every proposed server at once.
- Save asks the source's trust question first when needed (below), then the scan gate: a dangerous verdict saves only through Save anyway, after you tick that you read the findings. Discard drops the review and its temporary clone.
- A saved server's details on the MCP page have Check for update. An update opens a review with each field that changes (now and after), every new command line, the setup steps (and a reminder to run them again when the update replaces the local copy), changed files of its checkout (scripts marked), the trust state and the scan, then Update (or Update anyway).
- A server that runs from a copy of its repository is not given to clients while that copy is missing or out of date on this machine. Restore copy fetches and scans the copy the server file names and shows it in a review: Restore asks the trust question when needed, and a dangerous verdict restores only through Restore anyway.
Clients and apply
Surjection supports 38 clients; adapters.md lists each one's
files, capabilities and verification status. A client is detected when
its config folder exists or its program is on PATH; detection only
reads. Client preferences live in store/clients.toml (for example
enabled = false to keep Surjection away from a client, omp profiles, or
the VS Code variants and profiles to import from).
Surjection owns only the entries it wrote (or that you adopted). It never edits other entries, comments or formatting in a client file. Each entry has a state: in sync, to create, to update, to remove, changed outside (drift), missing, conflict, not managed (foreign), collision or blocked.
surject statusshows the states;surject diffshows the file diffs the next apply would make;surject apply --dry-runprints the plan.surject applywrites every pending change. Each run is one commit, and every file is backed up first.- When a client file changed outside Surjection, apply asks (or follows
--on-conflict skip|overwrite|import). In the app, Resolve... opens the resolver with Last written, Current file and Desired columns and the actions Overwrite, Import theirs into store, Release ownership, Skip, Re-create and Respect deletion. surject adopt CLIENT/NAMEtakes over an entry that is already there;--all-identicaladopts every entry identical to a store server, and--theirstakes the client's version into the store instead.surject rollback last(or the Undo this apply action) undoes an apply run.
Instant or review. By default every edit applies at once. To collect
changes and apply them yourself, set apply_mode = "review" in
store/settings.toml and run surject backup to commit that edit. Changes
then wait in Pending changes (or for surject apply).
Discard pending (review mode, in the Pending changes drawer) throws
away store edits this machine has not applied yet: server definitions and
client preferences (clients.toml) go back to the store revision of this
machine's last apply. Discard does it for one item; Discard
pending for all of them, after a confirmation. No client file is
touched. It is one commit with an auto/pre-restore/... tag, so History
can bring the discarded version back. Settings, secrets, skills, project
manifests and this machine's known projects are not changed by it.
Read-only files and folders
A client file, skill folder or project folder can be readable but not writable for your account, for example a project managed by a separate, security-focused installer, a file marked read only, or a read-only network share. Surjection shows these, says why, and never plans a write into them; the idea is in concepts.
On the command line, surject status, surject apply --dry-run, the
surject apply report, surject effective (after the winning file) and
surject import --scan print read-only (<kind>) after the file, where
the kind is acl, attribute, owner or share. With --json, each
target, apply result, import source and effective entry has
"read_only": {"kind": "..."} (or null). The entries Surjection would write
there are blocked with read_only_target; the rest of the run
applies, and the exit code does not count them.
In the app, a lock and Read only mark the file, folder or project, and the tooltip says why in plain words:
| Kind | The app says |
|---|---|
acl | its permissions do not let your account write it |
attribute | it is marked read only |
owner | another user owns it and your account has no write permission |
share | the network share or drive it is on does not allow writing |
Controls that would write such a file are turned off (never hidden), with the reason next to them; viewing, diffs, copying a definition and importing it into the store stay available:
- Projects: a read-only project shows the badge and a note, and Apply is off; a partly read-only project lists its read-only files. The Scope switcher shows the lock next to the project.
- MCP: a client pill whose file is read only shows the lock and a dashed border and cannot be switched. Enable all, Disable all and the power button still send every client; the plan and the result report the read-only one as blocked. At project scope, rows whose manifest layer is read only cannot be edited, removed or switched, and Add, Override here and Hide here are off when no layer can be written.
- Tools: each read-only user or project file path carries the badge; in Manage, the switches that would write a read-only file are off.
- Skills: a read-only client skill folder shows the lock on its tab and pill; Adopt, Adopt all identical and Delete are off there (Import stays).
- Effective config: a cell whose winning file is read only shows the lock.
- Import: a read-only source file or not-managed group is marked; its definition can still be imported, but Surjection never overwrites the entry in that file, and Add to project manifest is off when that manifest is read only. In Discover projects, a read-only folder without a manifest cannot be added (adding would write one); one with a manifest can.
- Pending changes: a read-only file shows the badge and a blocked row ("Blocked: its permissions do not let your account write it. Surjection does not write this file; the other files are applied."). The apply result adds "1 file read only, not written." (or N files).
File permissions are a fact about this machine and may be temporary, so they never change what the store records. The check never writes: it asks the system whether your account may write the file and its folder (on Windows by opening the file for writing without changing it), gives up after two seconds (a stalled network share), and then counts the file as writable. A write the system refuses anyway, because the file turned read only after the check, is reported the same way, and the other files of the run still apply. To have Surjection manage such a file again, make it writable for your account (or ask whoever manages that folder). The CLI checks on every run; the app keeps its answer for a file until the file watcher sees a change in that folder. When only the permissions changed and the app still shows the lock (or no longer should), click Refresh on any page: the app forgets its cached answers and checks every file and folder again. Switching back to the app after five minutes or more does the same.
Projects and trust
A project is a folder with a manifest in <P>/.surjection/:
project.local.toml: private to you. New manifests are private by default; Surjection adds.surjection/to the repository's.git/info/exclude, so teammates see nothing.project.toml: shared, committed with the project, for everyone on the team.
A project that already has a .loadout/ folder (from Loadout) keeps using
it: Surjection reads and writes it in place, so a committed manifest works
for teammates on either version.
A manifest can add project-only servers, override a user-scope server for
the folder, or hide a user-scope server there (enabled = false). Surjection
writes the project servers into each client's project files (for example
<P>/.mcp.json for Claude Code); see adapters.md for which
clients have project and project-local files. The manifest format is in
SPEC section 5.5.
| Task | CLI | App |
|---|---|---|
| Create a manifest | surject project init [PATH] [--shared] [--name NAME] | Projects, Init manifest... |
| Register a project someone else created | surject project add PATH | Projects, Add folder |
| Add the folders your clients already know | surject project discover [--add ID]... [--all] | Projects (or Import), Discover projects |
| Review and trust | surject project trust PATH | Review change & trust |
| Move private servers into the shared manifest | surject project share ID [--server NAME]... | |
| List and forget | surject project ls, surject project rm ID | Remove from list |
| See what each client loads | surject effective PATH | Effective config |
| Add, edit or remove a project server; per-client enablement | edit the manifest, then surject project trust PATH | MCP page or Tools > Manage, with the project picked in the sidebar's Scope switcher |
Discover projects. surject project discover lists folders Claude
Code (~/.claude.json), Codex (folders you trusted in config.toml), omp
and Pi (their session history) already know, that exist and are not
projects here yet, each with an id. --add ID (repeatable) or --all adds
them in one commit. A folder without a manifest gets a private
project.local.toml, as Init writes it. Nothing is trusted: each project
waits for surject project trust like any other. VS Code and Grok Build keep
their recent folders in a database without a documented format, so they
are not read. In the app, Discover projects (Projects toolbar, the
empty Projects page, or the Import page) lists the same folders with the
clients that know each and its manifest, if any; check the ones you want
and choose Add selected. Each added project shows Review & trust;
a folder that cannot be added says why.
MCP page at project scope. Pick a project in the sidebar's Scope
switcher. The page lists the servers in that project's manifests (both
files merged; each card shows Project or Local for the file that
defines it, and whether it is a project server, an override of a store
server, or a store server hidden here) with per-client pills from the
project's plan; clients without a project config are shown as not
supported. Below them, From your user scope lists the store servers
the folder inherits, each with Override here and Hide here. Add
and the edit dialog write one [servers.NAME] table; Write to picks
Project (shared, project.toml) or Local (private,
project.local.toml) (a private project has only the local file; use
surject project share to share one). Each edit is one commit: Surjection
writes the manifest, trusts that content, and applies the project's files.
A project that is not trusted, or whose manifest changed since it was
trusted, is read only on this page until you choose Review & trust.
Trust. Project manifests can start programs through stdio servers, so
Surjection applies a manifest only after you trusted its exact content. A
manifest that is new, or that changed since you trusted it (for example
after a git pull), is not applied: commands exit with code 7 and the app
shows "Review change & trust" with the diff. surject project trust
shows the manifests (or their diff) and trusts them.
Clients have their own trust gates too: Claude Code asks before using
servers from .mcp.json, Codex, Gemini CLI and others load project servers
only in trusted folders, and Grok Build lists project servers as disabled
until you turn each on once in Grok Build (Customize > MCPs). Surjection reports
these as hints; it cannot change them for you.
Secrets
Servers refer to secrets by alias (${secret:GITHUB_PAT}); the alias lives
in store/secrets.toml and points at a provider reference:
| Reference | Provider |
|---|---|
env:NAME | An environment variable |
keyring://<service>/<account> | The OS keyring: Windows Credential Manager, macOS Keychain, Secret Service on Linux |
op://vault/item/field | A 1Password item (through the 1Password CLI, op) |
op-env://<environment-id>/<NAME> | A variable of a 1Password Environment (needs op 2.41.0 or newer) |
Set an alias:
surject secrets set GITHUB_PAT --ref 'op://Developer/GitHub PAT/credential'
surject secrets set HASS_TOKEN --ref env:HASS_TOKEN
Store a value in the OS keyring by piping it on stdin (it becomes
keyring://surjection/<ALIAS>). Do not put the value on the command line,
where shell history keeps it:
# bash or zsh
read -rs VALUE && printf %s "$VALUE" | surject secrets set OPENAI_API_KEY --keyring; unset VALUE
# PowerShell 7
Read-Host -MaskInput | surject secrets set OPENAI_API_KEY --keyring
--this-machine writes the reference to this machine only, so one alias
can come from 1Password on one machine and from the keyring on another.
surject secrets clear ALIAS deletes the keyring entry on this machine
(the reference stays).
Check them:
surject secrets ls: aliases, this machine's reference and the servers using them.surject secrets providers: which providers this machine has.surject secrets check: resolves every alias and reports its status (resolved, missing, locked, provider unavailable, too old, unverifiable), never the value; exits 5 when one cannot be resolved. It may prompt for 1Password approval.
In the app: Settings, Secrets (providers, aliases, Check all, the Secrets checklist, Map a 1Password Environment..., and the 1Password service account token).

How a secret reaches the server (the server's delivery mode, auto by
default, SPEC 11.4):
env: the client expands the variable itself (for clients that support references in that field). The value is never written by Surjection.launch: the client startssurject exec ..., which fetches the values and starts the real server with them. Values exist only in memory. This is the default for keyring and 1Password references on stdio servers.command: the client runs a Surjection command at connect time (omp and Pi!commandvalues, Claude CodeheadersHelperfor HTTP headers).inline: Surjection writes the value into the client file. Only when you opt in for a server, and never into shared project files.
A server whose secret cannot be resolved on this machine is blocked for the clients that need it (exit code 5) instead of being written with a missing value.
surject exec. Launch entries look like
<abs path>/surject exec --ref NAME=op://... -- npx -y <server>. It never
writes to stdout (that is the MCP channel), reports errors on stderr with
the prefix surject-exec:, and does not read the store. In user and
private files Surjection writes the absolute path of the surject binary, so
another program of the same name earlier on PATH cannot take its place.
1Password. Install the 1Password CLI (winget install AgileBits.1Password.CLI on Windows, yay -S 1password-cli on Arch,
1Password's packages elsewhere), then turn on the desktop app's CLI
integration (1Password, Settings, Developer). Then:
surject secrets map-op-env <ENV-ID> --allmaps every variable of a 1Password Environment to aliases (--name NAMEpicks some;opbelow 2.42.0 cannot list names, so name them).- With several accounts signed in to the desktop app, set the one to use:
surject secrets op-account example.1password.com(--clearremoves it). - To avoid approval prompts when clients start servers, store a service
account token: pipe it to
surject secrets service-account set. It is kept in the OS keyring and passed only toop, never to the server. The tradeoff is a long-lived token at rest in the keyring.
On a machine without the 1Password CLI, 1Password aliases are "provider
unavailable" and their servers are blocked on that machine only; map those
aliases to the keyring or an environment variable with
surject secrets set ALIAS --ref ... --this-machine.
Environment variables for GUI clients. surject env --export prints
export statements (--shell pwsh|bash|zsh|fish, --aliases A,B) for
clients that read secrets from their environment.
History, restore and remotes
Every change to the store is a commit: server edits, project changes, secrets references, skills and each apply run.
surject history [--entity server/github] [--limit N]lists commits;surject show <REV>shows one (--rawfor the git diff).surject diff --rev A..Bcompares two revisions.surject tag NAME [REV] [-m MSG],surject tag --list,surject tag --delete NAME.surject restore <REV|TAG>restores the store as a new commit (your previous state is tagged first);--path server/<id>(repeatable) restores only some entities;--applyapplies the result.surject restore --files <APPLY-ID>puts client files back byte for byte from the backups taken before that apply (--file PATHfor one file). A backup removed because it held old secret values is reported asbackup_removed; the run's other files are still restored.surject backupcommits hand edits of the store files, and pushes to your remotes unless--no-push.
In the app, the History page does all of this (Show diff, Undo this apply, Restore this version, Restore entity..., Tag, Download zip, Client file backups).

Remotes are optional and none is set up by default. Two kinds:
- Folder: a local, network (UNC) or mounted folder, a USB drive, or a
folder a sync tool keeps.
surject remote add folder NAME PATH [--mode repo-per-machine|mirror|archive]. The defaultrepo-per-machinekeeps one subfolder per machine, which is safe inside sync tools. - Git: any git URL, through your system git.
surject remote add git NAME URL [--auth system|gh|token]. With--auth token, pipe the token tosurject remote token NAME; it is kept in the OS keyring.surject remote create-github REPOcreates a private GitHub repository with the GitHub CLI and adds it.
surject remote push and surject remote pull sync with every remote (or
one by name); pull merges other machines' changes and reports conflicts,
which you fix in the files and then pull again. surject remote machines NAME lists the machines in a folder remote. On a new machine,
surject restore --from <folder|zip|repo> [--machine LABEL] sets up the
store from a backup; then run surject secrets check to see which secrets
this machine still needs.
In the app: Settings, Versioning & Backup (Add remote, Push all, Pull all, Restore from remote...).
Skills
Skills live in the store (store/skills/<id>) and are linked or copied
into each client's skill folder. Surjection distributes skills to Claude
Code, oh-my-pi, Codex, Pi, GitHub Copilot and Grok Build; the folders are in
adapters.md.
- Install:
surject skills add <git URL|folder|archive> [--path DIR] [--ref REF] [--id ID]. A GitHub/tree/<ref>/<path>URL selects one folder. The first install from a git source asks whether you trust it (see Source trust). - Enable:
surject skills enable ID [--client C]...(default: every detected client);--project PATHenables it in a project's manifest instead. - Links are the default. On Windows they are directory junctions (no
administrator rights or Developer Mode needed);
--symlinkmakes symbolic links instead, and--copycopies the files. surject skills update [ID] [--check]updates git skills;surject skills rm IDremoves a skill and the links and copies Surjection made.- Every install and update is scanned first by Surjection's built-in scanner (see below). In the app, Update all sends no trust answer and no override, so an update that needs one fails with a message and stays for you to review on its own card.
surject skills scanclassifies each client skill folder: managed, unmanaged (a real folder), or mismatch (a link to something else).surject skills import CLIENT NAMEbrings an unmanaged folder into the store;surject skills trash CLIENT NAMEmoves one tobackups/trash(never deletes it).surject skills adoptlists the unmanaged folders of every client, grouped by name: the same content in several clients is one skill, and different contents of one name are a conflict.--alladopts every name with one content: the skill goes into the store, enabled for the clients where it was found, and each folder whose content equals the store copy is replaced by the managed link and moved tobackups/trash. For a conflict,--pick NAME=CLIENTadopts that client's content (other folders are kept), and--both NAME=CLIENTadopts it asNAMEand every other content asNAME-<client>.--tool CLIENTlimits it to one client's folder, and--project PATHadopts a trusted project's folders into its manifest. A folder is never replaced when the store copy would lose something (it differs, holds a git repository, an empty folder, or on Linux and macOS an executable file) or when the project's repository tracks it; it is reported and left as it is. When Surjection's data folder is on another drive, the original is copied intobackups/trashand checked before it is removed.- In the app, the Import page's Skills section does the same for the
scope picked in the sidebar (all clients, or one with the filter): names
with one content are checked, and for a name with several contents you
choose Use one content, Keep each content (the others become
NAME-<client>; theirSKILL.mdkeepsname: NAME, which some clients expect to match the folder) or Skip for now. The result lists what was adopted, what was kept and why, and the trash folder that holds the originals. On the Skills page, a client's source tab has Adopt on each real folder and Adopt all identical. A project must be trusted first: the section offers Review & trust. - Skills installed by the agents CLI (
~/.agents/skills) are listed read only;surject skills vendor NAMEcopies one into the store.
Surjection never overwrites or removes a folder it does not own: a real folder or a foreign link with the same name is reported and left alone.
The built-in scan
Skills feed instructions straight to your agent and can ship scripts it runs, so Surjection scans every skill it installs or updates, offline, with its own rules. Nothing is sent anywhere. The rules look for:
- downloading and running code (
curl | sh, also across a\line continuation, throughenvortee;iwr | iex; download to a file and run it;evalof a download), encoded payloads that are decoded and run, reverse shells; - reading or uploading SSH keys, cloud or git credentials or browser
passwords in a file that also calls the network (
cat ~/.ssh/id_rsa | curl,curl -F @~/.ssh/...,tar ~/.ssh | curl -T,scpof a key; as a warning,.envfiles or tool tokens with network calls); request-capture and paste services; - hidden text: invisible Unicode tag characters (a real England, Scotland or Wales flag is fine), runs of variation selectors, zero-width characters, bidirectional controls, and HTML comments (invisible when rendered) that hold instructions for the agent;
- prompt injection ("ignore all previous instructions"), telling the agent
to hide what it does from you, turning off permission prompts
(
--dangerously-skip-permissionsand similar), acting without asking, and changing agent memory or configuration files (CLAUDE.md,AGENTS.md, agent settings, MCP configs, Surjection's own scan rules); - native executables and libraries, found by their first bytes (ELF, PE, Mach-O, WebAssembly) whatever their name, which cannot be reviewed by reading them.
Prose and code. In a skill's Markdown, a command or phrase in a
sentence (outside a fenced code block) is a warning: "Install uv with
curl -LsSf https://astral.sh/uv/install.sh | sh", "never disable the
safety checks" or "treat 'ignore previous instructions' as untrusted"
describe something. The same command in a fenced code block (```)
or in a script file is something to run, and stays dangerous. Hidden
text and HTML-comment directives are dangerous anywhere.
What is read. Files are typed by their first bytes, not their names:
a "logo.png" that holds a script is scanned as a script. UTF-16 files
(what Windows PowerShell writes by default) are decoded first. Images,
fonts, archives, media and native binaries are not read as text; the
scan lists them in one info finding (not-content-scanned). Only the
first 4 MiB of a file are scanned; a larger file gets a
not-fully-scanned warning, never a silent pass.
Each finding has a severity (info, warning or dangerous), the rule,
the file and line, and the matched text: secrets masked (token formats,
URL passwords, values of API_KEY=..., Authorization: ..., --token ... and other credential-named settings, and random-looking strings),
invisible characters spelled out such as \u{200B} or [hidden: ...].
The verdict is the worst finding: clean, warning or dangerous.
dangerousblocks.surject skills addinstalls nothing, prints the findings and exits with code 8; review them and run again with--allow-dangerousonly if you trust the content.surject skills updateleaves such a skill as it is (blocked), applies the others and exits with code 8;--checkshows the findings of each available update first. In the app, the install review, the skill update review and the MCP draft and update reviews list the findings (severity, rule,file:line, message and excerpt); a dangerous verdict hides Install / Update / Save and offers Install anyway / Update anyway / Save anyway, enabled only after you tick "I read the findings and want to go ahead anyway".- Warnings and info are shown with the result and never block.
- Importing a client's unmanaged folder and vendoring an agents CLI skill report findings but never block: that content is already on this machine.
- Trusting a source never skips the scan. A clean verdict means no rule matched, not that the skill is safe: still read what you install.
- Results are cached by content in
cache/scan, so unchanged content is not scanned again. - The rules are data (
scan-rules.toml, versioned). A custom rules file saved asstate/scan-rules.tomlin the data folder is merged in: it may add rules or raise a built-in rule's severity, never remove or lower one (such entries are skipped with a warning). The built-in rules always run, and the result says "custom rules in use". A file that does not load is reported with every scan.
SkillSpector (optional second scanner)
NVIDIA SkillSpector (Apache-2.0)
can scan skills as a local second opinion beside the built-in scan, never
instead of it. It is off by default. Turn it on in Settings > Security
or with surject scanner enable.
Getting it. Surjection runs SkillSpector 2.13.7 in one of three ways:
- Set up by Surjection (simplest): click Set up SkillSpector in
Settings > Security, or run
surject scanner setup. When no uv is on yourPATH, Surjection downloads uv 0.13.10 (about 16 MB) from GitHub once, checks it against SHA-256 values built into Surjection, and keeps it in its data folder (tools/uv/). Then it prepares SkillSpector with it (below): SkillSpector and Python 3.13, a few hundred MB, from PyPI. Everything that uv writes (its cache, SkillSpector's environment, the Python it downloads) stays in that folder, so nothing outside Surjection's data folder changes. The progress shows "Downloading uv: N of M MB", then uv's output; Cancel setup stops it. Set up doesn't turn SkillSpector on. When uv is already onPATH, Set up only prepares with it and downloads no uv. Set up is offered on Windows x64, Linux x64 and Arm64, and macOS (Apple silicon and Intel). - With your own uv: install uv,
then click Prepare in Settings > Security or run
surject scanner prepare. Prepare runsuvx --python 3.13 --exclude-newer 2026-11-25T00:00:00Z --from skillspector==2.13.7 skillspector --versiononce, which downloads SkillSpector and its dependencies (a few hundred MB) from PyPI, and a Python 3.13 build when uv has none. It can take several minutes; the progress shows uv's output, and Cancel stops it. Scans then run uv with--offline, so they never download anything.--exclude-newerpins the whole dependency set: uv picks only versions published before that date, so every computer gets the same ones, and the check, Prepare and every scan use the same arguments. After an update that moves this date, Prepare runs once more. - Installed yourself: a
skillspectoron yourPATH, for examplepipx install skillspector==2.13.7 --python 3.13. Another version runs too, with the note "SkillSpector X is not tested with this Surjection".
SkillSpector needs Python 3.12 or 3.13; Python 3.14 and later don't work yet (one of its dependencies, yara-python, has no packages for them).
Your own tools win. A uv on your PATH is always used before the one
Surjection set up, and Set up never downloads uv while you have one. With a
ready skillspector on your PATH and no uv, Set up answers that
SkillSpector is already set up (on PATH). The only exception: once
Surjection's uv is installed and prepared, it runs before a skillspector
on PATH (Remove it to go back). Surjection's uv runs with its own cache,
Python and settings (your UV_* variables and uv.toml don't apply to
it), and Surjection re-checks its SHA-256 before using it: a uv that was
changed on disk counts as not installed.
Status. surject scanner status (or the Status line in Settings)
says which form will run, its version, and what to do when none is found
(surject scanner setup when Set up is offered). Through Surjection's uv it
reads "Ready through uv installed by Surjection" in Settings and uvx, uv installed by Surjection on the command line, with a Private uv: line
("uv 0.13.10 installed by Surjection in its data folder; surject scanner remove deletes it"). --json adds private_uv, setup_supported and
uv_source (system, private or null).
Removing it. While Surjection's uv is installed, Settings > Security
shows the row uv installed by Surjection ("uv 0.13.10, installed by
Surjection in its data folder (with its cache and Python)") with
Remove. After you confirm, it deletes tools/uv/ entirely: uv, its
cache, SkillSpector's environment and the Python it downloaded.
surject scanner remove does the same (--json:
{removed, private_uv, snyk}). SkillSpector stops working until you set
it up again; the on/off switch is left as it is, so while it is on,
reviews read "Not scanned".
What leaves the machine. SkillSpector runs on this computer and never
uploads the skill. Nothing leaves the machine except the names and
versions of the skill's dependencies, sent to OSV.dev (api.osv.dev) to
look up known vulnerabilities, when the skill has a dependency manifest
(requirements.txt, package.json, pyproject.toml or Pipfile), plus
the one-time Prepare download (and Set up's one-time uv download from
GitHub). No account, no token. Surjection runs it with
--no-llm, never with an AI provider: provider keys in your environment
(OPENAI_*, ANTHROPIC_*, AWS_*, ...) are removed from its
environment and LangSmith tracing is turned off. It scans skills only;
MCP servers get the built-in scan alone (SkillSpector doesn't read MCP
client configs).
When it runs. While it is on, every install and update review runs it
(local folders and archives too) on a copy of exactly the content to be
written, and Scan with SkillSpector on a library skill runs it on
request (surject scanner run <SKILL>). On the command line,
--external / --no-external on skills add and skills update turn
it on or off for one run. Each scan is bounded (600 s, 10 minutes, by
default; timeout_secs under [skillspector] in
state/local-settings.toml changes it, up to 59 minutes) and the whole
process tree is stopped on timeout or cancel.
How long it takes. A skill with scripts and a dependency manifest can
take a few minutes, the first scan after setup the longest (an ordinary
one took about 4 minutes the first time and about 2 after that). While
it runs, the review shows the time so far and the limit, "Starting
SkillSpector..." while it loads (about 25 seconds), then how many of its
22 checks are done and which one finished last, for example "7 of 22
checks done (last: Supply chain)". The checks finish in no fixed order.
Screen readers hear when the scan starts and when it ends, not each check.
Cancel scan stops it and lets
you go ahead with the built-in scan's findings. On the command line,
scanner run and installs print a line saying it can take a few minutes
before they start.
Install without waiting. While SkillSpector is on and ready, the install review's Install button has a menu (the arrow beside it) with two choices:
- Install after both scans (the default): Install waits for SkillSpector's result.
- Install now; SkillSpector checks in the background: the button reads Install now and is available as soon as the review opens. The skill is installed before SkillSpector answers, so it can be in use before the result arrives. The review closes, and SkillSpector scans the installed copy in the background. The skill's card shows "SkillSpector: waiting" while another scan runs first, then "Scanning with SkillSpector..." with the checks done so far, then the verdict, for example "SkillSpector: Warnings". When SkillSpector rates the skill dangerous, a warning stays on screen until you close it: View shows the skill and Disable everywhere turns it off in every app.

Surjection remembers your last choice on this computer (install under
[skillspector] in state/local-settings.toml), never in the synced
store. The built-in scan runs before either choice, and a dangerous
built-in verdict still needs Install anyway. A SkillSpector verdict
that is already on screen counts in both cases: a dangerous one needs
Install anyway too. If the review's own SkillSpector scan is still
running, Install now cancels it first and installs right after; a
review scan you canceled, or one that failed or timed out, never skips the
background scan. With SkillSpector on but not ready (for example not
prepared), nothing is queued and the message doesn't promise a scan. Background scans run one at a
time and go on when you close the review or open another page; Cancel
scan on a card takes a waiting scan off the queue or stops a running
one. They don't resume after Surjection quits: the card then reads "Not
scanned with SkillSpector yet" with Scan now. A card always shows the
result for the skill's current content: a skill updated during its scan
is not shown with the old content's verdict. Update reviews always wait
for SkillSpector, and the command line is unchanged (--no-external
skips SkillSpector for one run).
Results are remembered. Each finished SkillSpector scan is kept on this
computer (cache/skillspector/ in the data folder), for exactly that
content, SkillSpector version and set of arguments. When the install review
or Scan with SkillSpector sees content that was scanned before, the
result shows at once with the date it was made ("Scanned with SkillSpector 2.13.7 on Nov 28, 2026, 9:30 AM") and
Scan again, which runs SkillSpector anew. So you can open a review, let
SkillSpector finish, close the review without installing, and install the
same content later without waiting. Only finished scans are kept, never a
"not scanned" or "not understood" result, and the folder is emptied once it
holds more than 512 results. A library skill's details say where
SkillSpector stands for it, with Scan now (or Scan again) to queue
a background scan and Scan with SkillSpector to watch one in a dialog.

Results. The review's External scan section, and the line
SkillSpector: <verdict> (N findings) on the command line, list each
finding with its severity, SkillSpector's rule id (such as E2 or SC4),
file:line, message and the matched text (secrets masked).
SkillSpector's CRITICAL is dangerous, HIGH and MEDIUM are
warning, LOW is info, and its DO_NOT_INSTALL recommendation makes
the verdict dangerous even without a CRITICAL finding.
dangerousblocks like the built-in scan: Install anyway / Update anyway after ticking the box, or--allow-dangerous(exit 8 without it).- Not fully scanned: when SkillSpector reports partial coverage, the
result says "not fully scanned" (never "clean") with an
incompletefinding naming the status and coverage. It does not block by itself. - Not scanned (not available, needs Prepare, timeout, canceled,
failed) and not understood (output Surjection cannot read) never block
and never read as clean. An "OSV.dev unreachable"
SC4finding means the dependency lookup was offline and the result may be incomplete.
If you installed Snyk Agent Scan with Surjection 0.7.0 (disabled since
0.7.1), surject scanner remove deletes it and its settings; Settings >
Security shows a line while it remains.
Source trust
Only install from sources you trust. Skills and MCP servers can run commands and read your files. Surjection treats trust in a source as a decision you make and it records, like trusting a project.
- The first install from a git source asks (for a skill, and for an
MCP server added or updated from a source). A terminal prompt shows
the source (
github.com/example-org/skills), whether it is official (github.com/anthropics,github.com/modelcontextprotocol), and which skills you already installed from it, then offers Trust this time only, Always trust this source, or Cancel. "Always" asks what it covers: the repository (the default), every repository of its owner, or, on a host that isn't a public service such as github.com, every repository on the host. - Trust is never implicit. Without a terminal (a script,
--json), an untrusted source fails withsource_trust_requiredunless you pass--trust-source(this time only) or--trust-source=repo|owner|host(always); write it with=.--yesnever answers the trust prompt. The flag andsurject source trustare explicit opt-ins that need no terminal, so a coding agent with shell access can run them too: only use them, or let an agent use them, for a source you trust. Keeping agents from approving trust is tracked in #8. - A block wins. A blocked source is refused (
source_blocked) even when an owner or host above it is trusted, and even with--trust-source. - Updates still ask when something changed. A trusted source's update
check still shows the changed files (scripts and other executable files
are marked), and the scan still runs. If the repository's history was
rewritten (a force-push removed the commit you installed) or it was
renamed or transferred (the host redirects it elsewhere), its trust
lapses and the next update asks again. A source you never trusted asks
on every install and update, including skills installed before 0.5.0.
A redirect only adds a question: the CLI prints
note: X moved to Yand asks about the new location separately (--trust-sourcedoes not carry over), and an update of a moved repository then records its new URL. - Unencrypted sources are separate. An
http://orgit://address has its own key (http://host/path), so trusting the HTTPS or SSH address never admits it; a block on either does block it. The prompt and the dialog say the connection is unencrypted. - Managing trust:
surject source lslists trusted and blocked sources with when, where and how each decision was made;surject source trust <URL|KEY> [--scope repo|owner|host],surject source block <URL|KEY> [--scope ...]andsurject source untrust <KEY>change them. Keys look likegithub.com/acme/skills(a repository),github.com/acme/*(an owner) orgit.example.com/*(a host). Untrusting never uninstalls anything; the next install or update from that source asks again. Decisions live instore/sources.tomland sync with your remotes. - Skill folders and archives you pick aren't asked about (they're already
on this machine; the scan still runs). A git repository given by a local
path or
file://URL is asked about like any other source, and so is a folder you pick for an MCP server. - In the app the same question is a dialog, asked when you press Install, Update, Save or Restore in a review: Trust this time only (selected by default; nothing is recorded), Always trust repository, Always trust everything from owner (or, on a self-hosted server, everything on it), then Cancel (nothing happens) or the confirm button (Trust once and continue or Always trust and continue). Focus starts on Cancel, so a held or doubled Enter grants nothing. It says why it asks (first time, not trusted, or trust lapsed after a force-push or move), names both addresses when the host redirects to another repository (asked separately), warns about an unencrypted connection, lists the skills you already installed from the source, and marks official sources without skipping the question. A folder picked for an MCP server is asked about at the repository scope only.
- Settings > Sources lists every decision: trusted or blocked, for a
repository, an owner or a host, when, how (the app, a prompt,
--trust-sourceorsurject source) and on which machine, with a note when trust lapsed. Revoke (or Unblock) removes a decision, so the next install or update asks again; Block turns a trust into a block; Block a source... blocks a URL you have no decision for yet. None of these uninstall anything.
Catalogs
Catalogs are places that list MCP servers and skills. Surjection can search them and install an entry, always through the same review, trust question and scan as any other install: a catalog never installs anything on its own.
Built in (each can be turned off):
- Official MCP Registry (
registry.modelcontextprotocol.io). Its results say "Data from the Official MCP Registry". The registry has no "verified" or "official" badge; what it does check is that whoever published an entry owns its namespace (a GitHub user or organization, or a domain), so a result shows, for example, "Publisher: io.github.acme (namespace ownership checked by the registry)". It doesn't prove the server is safe. - Anthropic skills (
github.com/anthropics/skills), a Git tap: its skill folders and its Claude Code plugin marketplace. It is marked Official because it is published undergithub.com/anthropics. - skills.sh: its search. Browse lists skills.sh results with the other
catalogs: the skill's name, its
owner/repo, how many times skills.sh counted it installed ("1.2k installs") and Open on skills.sh. A search needs at least 2 characters. Details and Review skill install it from its GitHub repository with that skill picked, through the usual git skill review. You can also paste a skill's address (https://skills.sh/<owner>/<repo>/<skill>) in Install from a skills.sh address; that field appears only while online catalogs are on, like any install from Browse. On the command line,surject catalog search pdf --catalog skills-shsearches it andsurject skills add catalog:skills-sh/<owner>/<repo>/<skill>(or the skills.sh address) installs a skill. Skills that skills.sh lists from other websites are shown but can't be installed.
You can add any server that answers the MCP Registry API, and any Git repository of skills or Claude Code plugin marketplace (a "tap").
Online catalogs and privacy
Searching contacts the catalogs, so it is off until you say yes. The first time you open Install > Browse, Surjection asks once, naming the hosts it would contact; nothing is requested before you answer. With online catalogs on, Surjection contacts only the catalogs you turned on whose hosts you allowed, only when you open Browse, search, open an entry or install, and sends them only your search words: nothing runs in the background and there is no telemetry.
If online catalogs are on and a host you weren't told about joins the list
(skills.sh since 0.9.0, or a catalog you add or turn on), Browse shows a
short note above the search instead of the first question: "Surjection can
now also search skills.sh. Allow it?" with Allow and Not now. Until
you allow it, Surjection doesn't contact that host, and its catalog says "Not
searched" while the catalogs you already allowed are searched as usual.
Not now is remembered for that host, so Browse doesn't ask again;
Settings > Catalogs then shows it as waiting for your OK, with an
Allow button, and surject catalog online on allows it too. If you
turned online catalogs on before 0.9.0, that answer counts for the hosts of
the time (registry.modelcontextprotocol.io and github.com), so after an
upgrade you are asked only about skills.sh.
Installing an entry also contacts its own repository or package registry,
and installing or updating a skill or plugin server from a tap (or a
skills.sh address) is a git install that contacts the git host even with
online catalogs off. Requests go through the proxy in HTTPS_PROXY (or
ALL_PROXY), and hosts in NO_PROXY are reached directly; a SOCKS proxy
is not supported and is reported as an error, never bypassed.
Every request has a time limit, and each catalog is searched on its own, so
one slow or failing catalog never holds up the others.
Results are saved on this computer for 24 hours. A catalog that can't be
reached shows its saved results labeled with their age ("Stale: 4 results
saved 1 day ago") and why it couldn't refresh; Try again fetches it
again. With online catalogs off, Browse shows only saved results and says
so, and installing from a catalog (or from a pasted skills.sh address)
asks you to turn them on first. If this computer goes offline while Surjection
is open, Browse keeps answering from the saved results and says "Offline".
A More results page that fails says why, with Try again. Only
https repository and website links get an Open button.
Catalogs in the app
Install > Browse has a search box; each catalog you turned on gets its own section with its status (searching, up to date, saved with its age, stale, timed out, offline, or "type at least 3 characters" for a registry). Each result shows its kind (MCP server, skill or plugin), where it comes from, the publisher, the version and how it is pinned ("Pinned to version 1.2.0", "Pinned to a1b2c3d", "Follows branch main" or "Not pinned"), when it was last updated, and a Deprecated or Can't be installed mark. Catalog text is shown as plain text, and Surjection never loads a catalog's icons or images.

Details opens everything the catalog says: transports, the names of the secrets the server needs (never values), its packages and remote endpoints, the repository and website (Open opens them in your browser), the license when known, and for a plugin, its skills, its MCP servers and the parts Surjection doesn't import (hooks, commands, agents and other code that would run on its own). Then:
- Review MCP server opens the same review as From Git or folder: drafts, the trust question, the built-in scan and the client picker. For a registry entry the trust question names what the server runs (its package on npm, PyPI, NuGet or crates.io, its container image, or a remote server's host), never the repository the publisher names: the details show that one as "Repository (claimed by the publisher, not verified)". The saved server records the catalog entry it came from.
- Review skill opens the skill install review. A plugin with several skills asks which one first.
- A plugin from an npm package, an archive or a command can't be installed, and the details say so.

Official appears only on taps under github.com/anthropics (such as
Anthropic skills) and on their entries whose code is Anthropic's own: skill
folders and plugins that live in the tap or in another github.com/anthropics repository. A third-party
plugin that the Anthropic marketplace lists is not marked Official, and a
marketplace elsewhere that uses a name reserved for Anthropic is flagged
with a warning. Registry entries are never marked Official.
Settings > Catalogs has the Online catalogs switch (this computer only) and the list of catalogs: turn each on or off, Add catalog... (an MCP registry address, or a Git tap with an optional branch, tag or commit) and Remove for the ones you added. While a host waits for your OK, the switch reads "On: ... Waiting for your OK: skills.sh." with an Allow skills.sh button. The list is part of your store, so it syncs with your other machines; nothing there contacts a catalog.
Catalogs from the command line
surject catalog ls # catalogs and the online switch
surject catalog online # the switch, and any host waiting for your OK
surject catalog online on # allow catalog requests, every host named included (off: `online off`)
surject catalog search weather # every catalog that is on; --catalog <id> for one
surject catalog show mcp-registry/io.github.acme/weather
surject server add --from catalog:mcp-registry/io.github.acme/weather
surject skills add catalog:anthropic-skills/pdf
surject catalog search pdf --catalog skills-sh
surject skills add catalog:skills-sh/anthropics/skills/pdf
surject skills add https://skills.sh/anthropics/skills/pdf
surject catalog refresh # fetch again; saved results are dropped only once a catalog answers
surject catalog add <url>adds an MCP registry or a Git tap (--kind registry|tap; GitHub, GitLab, Bitbucket, SSH,file://and.gitaddresses are taps).--id,--titleand, for a tap,--ref <branch, tag or full 40-character commit>(a commit pins it; a short commit is refused) are optional. A registry address must use https (http only forlocalhost), and a tap address may not hold a user name, password or token (it would be saved in your synced store; use your git credential helper).catalog rm <id>removes one you added;catalog enable|disable <id>turns any catalog on or off, built-ins included. These changestore/catalogs.toml(one commit each).catalog search <query>needs at least 3 characters for a registry and 2 for skills.sh; a tap lists everything for an empty query. Each catalog reports its own status (fresh,cachedwith its age,stalewhen it could not be reached,off,error); skills.sh results show their install count. A registry's next page:--catalog <id> --cursor <next_cursor>. The command exits 1 when no catalog answered.catalog refresh [id]indexes a tap again, and asks a registry or skills.sh whether it answers, dropping its saved results only then; a refresh that fails keeps them.- Entry ids: a registry server's name (
io.github.acme/weather), a tap skill's folder name (pdf),plugin/<name>for a marketplace plugin, or a skills.sh id (<owner>/<repo>/<skill>, such asanthropics/skills/pdf). server add --from catalog:<source>/<id>drafts from a registry entry'sserver.json(its latest version, or--ref <version>to pin one) or a plugin's.mcp.json, then runs the usual review, trust prompt (--trust-source) and scan (--allow-dangerous). The server file records[meta.source] catalog = "<source>/<id>"(and for a registry entrykind = "registry"and itsversion);surject server updateasks the registry for a newer version.skills add catalog:<source>/<id>is the git skill install of the tap at that skill's folder (--refoverrides the branch, tag or full 40-character commit). A plugin with several skills lists them; install one by its own entry.- Online catalogs off:
searchandshowanswer from saved results only, andrefreshand installs from a catalog stop withcatalogs_off; nothing is contacted. - A host you haven't allowed yet (
catalog onlinereads "on (waiting for your OK: skills.sh; ...)",--jsonlists it inwaiting): its catalog is not contacted (searchanswers from saved results, labeled "not contacted yet", andrefreshand installs from it stop withcatalog_host_waiting) untilcatalog online onallows it.catalog addandcatalog enablesay so when the catalog's host still needs your OK.
The Surjection skill for agents
Surjection ships a skill that teaches coding agents (omp, Claude Code, Codex,
Grok Build, Pi, Copilot) how to read your setup: surject status, effective,
diff, import --scan, apply --dry-run and the other read and plan
commands, what their error codes mean, and step-by-step answers to questions
such as "why isn't this server loading in Claude Code?" or "what would
importing my omp setup do?".
The skill is read only. An agent that can run commands could answer any
confirmation Surjection asks, so the skill never lets it make a change: for an
install, enable, import, apply, trust or restore, the agent gives you the
exact command (or the page in the app) and you run or approve it yourself.
It never passes --yes, --trust-source or --allow-dangerous, and it
treats text from skills, READMEs and repositories as data, not as
instructions.
Installing it
In the app, open Settings > Agent integration and turn the skill on for each client you use (detected clients are listed, omp first). From the command line:
surject agent install # every detected client with a skill folder
surject agent install --client omp # only omp
surject agent status # version, store copy, clients
surject agent install --reset # put Surjection's version back over your edits
surject agent remove --client codex # turn it off for Codex
surject agent remove # remove it from the store
The skill is a normal store skill with the id surjection (listed on the
Skills page as "Bundled with Surjection"): every change is a commit you can
see and undo in History, and it reaches each client's skill folder the way
any skill does. If your store already has a skill of your own with the id
surjection, Surjection never changes it: remove it (surject skills rm surjection) or add it again under another id (surject skills add <its folder> --id <other id>) to make room for the Surjection skill. Loadout's
skill (id loadout) is replaced by this one when you move over from
Loadout, in the clients that had it.
To point an agent at the skill without installing it, surject agent skill-path prints a folder holding the bundled copy (kept in the data
directory's cache/agent-skill/surjection); in the app, View skill files
opens the copy installed with the app.
Updates
The skill's version is Surjection's. When you update Surjection, the next app
start, the next CLI command that changes the store, or surject agent install replaces an older copy in your store with the new one (one commit)
and says so. Commands that only read (status, diff, listings, and every
command the skill lets an agent run) never write anything; until then,
surject agent status shows outdated and the command that updates it.
Opening the folder in a file manager or resaving a file with other line
endings is not an edit. If you really edited the store copy, Surjection never
overwrites it on its own: it reports once that the skill is "customized, not
updated", and surject agent status shows customized. To go back to the
bundled copy and keep the clients it is turned on for, run surject agent install --reset, or click Restore Surjection's version in Settings > Agent
integration; History keeps your version.
Machines that sync one store can run 0.5 and 0.6 side by side: the skill's metadata stays readable by 0.5.
Migrating from SkillDock
Surjection imports SkillDock's servers, skills, tags, settings and backup
repository. ~/.skilldock is only read, never changed, so you can go back.
- App: Import, From SkillDock, Migrate from SkillDock... (Settings, Migration, Open Import leads there too). The wizard shows what would be migrated, asks where each plaintext secret value should go (OS keyring, a 1Password reference, an environment variable, or Set later), then migrates in one commit after tagging the store.
- CLI:
surject migrate skilldockreports what would happen;surject migrate skilldock --applymigrates.
No client file is written by the migration; the first apply is a separate, previewed step. Afterwards, turn off SkillDock's MCP sync or uninstall SkillDock: two tools writing the same client files fight each other.
Updates
The in-app updater exists only in the Windows installer build and the AppImage, and only in releases built with the project's updater key.
- Settings, Updates has a Check for updates switch (on by default: Surjection looks for a new release when it starts) and a Check now button. When a newer release is found, Install and restart installs it.
- The switch is stored per machine as
check_for_updatesinstate/local-settings.toml. When it is off, Surjection never contacts the network for updates.
In builds without the updater, Settings, Updates says so ("In-app updates": this build has no in-app updater).
AUR, .deb, .rpm, source and cargo install builds have no updater:
update them with your package manager (or rerun cargo install surjection). Surjection is fully usable offline; only remotes, git
sources of skills and MCP servers, and update checks use the network.
Troubleshooting
Start with surject doctor. It checks the data directory, warns when it is
inside a sync folder (sync_root_detected), and with --paths prints the
resolved folders; --scan-history scans every store commit for secrets
(it reports, and never rewrites history).
Logs and the diagnostic report
The CLI and the app write one line per event to
<SURJECTION_HOME>/logs/surjection.log: which command or app action ran, when,
how long it took and its outcome with the error code; apply runs (how many
files, the outcome); store commits (short id); catalog searches (the
catalog and the length of the search words, never the words); network
requests (the host only); scanner runs; and update checks. The log never
holds secret values, environment values, header values, file contents or
search words, and folders appear as ~ (your home folder) and
<SURJECTION_HOME>; anything that looks like a token is masked. It is capped
at 1 MB and rotated, keeping two older files (surjection.log.1,
surjection.log.2). It stays on this computer and is never uploaded. Set
SURJECTION_LOG=off (or, from Loadout, LOADOUT_LOG=off) to turn it off. Surjection writes no log until the data
directory exists.
For a bug report, attach the diagnostic report: run
surject doctor --report (prints it), or click Copy diagnostic report
on the About page or in Settings > Diagnostics (copies it to the
clipboard with clip.exe on Windows, pbcopy on macOS, and wl-copy,
xclip or xsel on Linux; when none works, the app shows the report so
you can copy it by hand). It lists the Surjection version, OS, install
channel, which data files exist and their sizes, whether a newer Surjection
wrote the data folder, the store schema and commit count, which clients
were detected and whether their config file exists, counts of servers,
skills, projects and remotes (by kind, never their addresses), scanner and
online catalog status, recent error codes and the last 50 log lines. It
goes through the same redaction as the log. doctor --report only reads:
it works on a data folder a newer Surjection wrote, or one another process
has locked, and never migrates an older one. Read the report before you
share it; nothing is sent anywhere.
Known problems and their fixes (installer and PATH issues, a blank window
on Linux, another program named surject, servers that do not show up,
read-only projects, 1Password prompts, the Linux keyring) are in
troubleshooting.md; short answers are in the
FAQ.
Stop managing
To stop using Surjection on a machine without breaking your clients, hand
everything back: Settings > Stop managing in the app, or
surject eject on the command line. Every client file and skill folder
keeps working with Surjection uninstalled.

What it does:
- Entries without a Surjection reference stay exactly as they are, byte for byte.
- Entries that start Surjection are rewritten in the client's own form.
A server Surjection started through
surject exec(to hand it a 1Password or keyring secret) is written with its own command again, and the secret becomes the client's environment variable reference, named after the secret's alias:"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PAT}"for Claude Code,${env:GITHUB_PAT}for Cursor,{env:GITHUB_PAT}for OpenCode; Codex forwards the variable by its own name. omp and Pi!surject secret getvalues and Claude Code'sheadersHelperbecome such references too. Set those variables in the environment your clients start from (your shell profile, or the system environment on Windows); the result lists each one and the entries that read it. If your shell profile runssurject env --exportfor these, replace it with your own exports. - A client that cannot read environment variables in that place (Claude Desktop, Antigravity and other clients without variable references) gets the entry without the secret: the result lists the client, entry and key, and you paste the value into the file yourself. Surjection never writes a secret value.
- Skills: links into Surjection's store become real folders with the same
files; copies stay. The Surjection skill for agents is removed (it teaches
Surjection commands), unless you keep it (Keep the Surjection agent skill,
--keep-agent-skill). - Ownership: Surjection forgets every entry it handed back and stops touching those files: no instant apply, no pending changes, no skill sync for them. Your servers, skills, settings and history stay in the store; nothing is deleted.
- Everything that still needs Surjection afterwards (an entry it could not rewrite, a server running code from its data folder, a read-only file, a skill link it could not replace) is listed under Still need Surjection. Only when that list is empty does Surjection tell you that you can uninstall it and delete its data folder.
- Two entries that need the same variable name for different secrets are reported as a conflict: the first keeps the variable, the others get the value left out for you to paste.
- A file this account cannot write is listed as read only and left managed; make it writable and run the eject again.
- A server that runs code from Surjection's data folder (a server from a Git repository or folder) is flagged: it keeps working while that folder exists; to delete the folder, move the server's code first and edit the entry. An entry Surjection cannot rewrite exactly is left as it is and listed with the reason.
surject eject --dry-run # what would happen, nothing written
surject eject # shows the plan, then asks
surject --yes eject --client claude-code # only Claude Code, no question
surject eject --project ~/code/app # only that project's files
Without --yes and without a terminal (or with --json), surject eject
exits 4 with confirmation_required.
Undo: surject rollback <eject-id> (or surject rollback last when no
apply came after it), or Undo in the app's result, puts the files back
as they were and Surjection manages them again; a file you changed since is
left alone and reported, and surject restore --files <eject-id> still has
its earlier content. Start managing again later with
surject eject --resume (Settings: Start managing again),
surject import or surject adopt: the next apply adopts entries that
match the store and asks about the rest.
Uninstall
To keep your clients working without Surjection, run surject eject first
(see Stop managing). If you want Surjection's entries gone
instead, surject server rm <id>... removes the servers and the client
entries Surjection wrote for them, and surject skills rm <id> removes the
skill links and copies it made. Entries you did not create with Surjection
are left alone.
Then remove the program:
- Windows: Settings, Apps, Installed apps, Surjection, Uninstall (or
winget uninstall --id DailenG.Surjection, orchoco uninstall surjectionif you installed it with Chocolatey). This removes the install folder from your userPATH. - Arch Linux:
sudo pacman -R surjection(orsurjection-bin). - Debian, Ubuntu, Fedora, openSUSE: the package is named
surjection:sudo apt remove surjectionorsudo dnf remove surjection. - AppImage: delete the file.
- cargo:
cargo uninstall surjection.
Uninstalling the program leaves your data directory (store, history,
backups) in place, so a reinstall picks up where you left off. To remove
everything, delete the data directory listed by surject doctor --paths
(see Where Surjection keeps its data), and
delete any keyring entries under the services surjection and (from
Loadout) loadout in your OS keyring.