@fibteq/myrel-runner
v0.48.4
Published
Connects your computer to Myrel so projects can work in your local folders with your own Claude Code, Codex, Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI, Muse Code, Kimi Code, Qwen Code or MiniMax Code.
Maintainers
Readme
myrel-runner
Connects your computer to a Myrel server, so a project can work in one of your local folders with the coding CLI you already use: Claude Code, Codex CLI, Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI, Muse Code, Kimi Code, Qwen Code or MiniMax Code.
- It opens an outbound WebSocket to the server. No port is opened, and it works behind NAT.
- The server sends a task (a folder, a CLI and a prompt). The runner starts the CLI in that folder, streams its progress back and returns its final answer.
- The CLI runs with your own login on your computer. myrel-runner never reads, sends or stores your Claude,
OpenAI or Google credentials. The only secret it keeps is its own Myrel runner token, in
~/.myrel-runner/config.json(readable by you only). - For the project's connected GitHub repositories, git gets a short-lived token of the turn's own (0.21.1+), so
cloning and pushing work without a GitHub login on the computer. It is kept in memory only: a git credential helper
fetches it from the runner on
127.0.0.1(the only port it opens, and only while such a turn runs), at an address only that run knows. It covers only those repositories; everything else uses your own git login. - It only works in folders you shared, from Myrel > Devices or with
myrel-runner share. A path from the server that is not one of them (after resolving symlinks) is refused.
Use
Requires Node 22+ and at least one of claude, codex, agy (Antigravity CLI), opencode, hermes (Hermes Agent), cursor-agent (Cursor CLI), muse (Muse Code), kimi (Kimi Code), qwen (Qwen Code) or mcode (MiniMax Code) on your PATH, already signed in. The runner looks for them again every few minutes, so one you install later shows up without a restart; on Windows it also reads the PATH saved in your user settings and the usual npm, pnpm, Scoop and winget folders, and on macOS and Linux the usual install folders (~/.local/bin, ~/.opencode/bin, ~/.minimax-code/bin, ~/.bun/bin, ~/.npm-global/bin, pnpm's and Volta's). myrel-runner status lists the CLIs it could not find and why.
On macOS and Linux one command does it all: it uses the Node.js on your PATH or downloads Node.js 24 into
~/.myrel-runner/node (no sudo), pairs the computer, installs the background service below and adds a
myrel-runner command in ~/.myrel-runner/bin. Myrel > Devices shows it with your code filled in; every Myrel
server serves the script at /install.sh (source), and running it again
updates the runner.
curl -fsSL https://myrel.example.com/install.sh | sh -s -- ABCD-1234 --server https://myrel.example.comThe same by hand, and on Windows:
npx myrel-runner pair ABCD-1234 --server https://myrel.example.com # code from Myrel > Devices
npx myrel-runner service install # runs now and at every login
npx myrel-runner@latest update # later: update and restart it (waits for running tasks)Then add folders in Myrel > Devices with Add folder: it browses this computer's folders through the runner
(folder names only, never files) and shares the one you pick. The home folder itself and the disk root cannot be
shared. From a terminal, myrel-runner share [folder] and myrel-runner unshare <folder> do the same.
Other commands: myrel-runner status, myrel-runner logout, and myrel-runner start to run it in a terminal
instead of in the background (Ctrl+C stops it).
In the background
myrel-runner service install copies the runner to ~/.myrel-runner/bin (so it keeps working after npx clears its
cache) and registers it to start at login:
| OS | How | Logs |
|---|---|---|
| macOS | launchd agent ~/Library/LaunchAgents/io.fibteq.myrel-runner.plist | ~/.myrel-runner/runner.log |
| Linux | systemd user service myrel-runner.service | journalctl --user -u myrel-runner |
| Windows | myrel-runner.vbs in the Startup folder | ~/.myrel-runner/runner.log |
It keeps the PATH of the terminal you install it from, which is where it finds claude, codex and agy, then the usual install folders.
On macOS and Linux it restarts after a crash, but not after a clean stop (the computer was removed in Myrel, or
myrel-runner start was run somewhere else with the same pairing). myrel-runner update installs the newest version
from npm and restarts the background runner on it once its running tasks finish (at most 10 minutes; --now restarts
right away). service install again also restarts it; service status shows its state and service uninstall
removes it. On Linux it starts when you log in; to start at boot without logging in, run loginctl enable-linger.
Updating and settings from Myrel
From runner 0.14.0 the background runner can be updated and set up from Myrel > Devices, without a terminal:
Update shows when npm has a newer version. The runner waits for its running tasks (at most 10 minutes; Update now stops them, and Myrel continues them), downloads the package from npm, checks it against npm's integrity hash, runs the new copy once (
--version) and only then puts it in place of~/.myrel-runner/bin/myrel-runner.mjs, keeping the old one asmyrel-runner.prev.mjs. It then exits with code 75, so launchd or systemd starts the new copy (on Windows it starts the Startup entry itself). If the new version is refused by the server, or does not connect within 2 minutes while the server is reachable, it puts the previous copy back and restarts on it; the card says so. The state across the restart is in~/.myrel-runner/update.json.Settings: the access level, worktrees and Update by itself (auto-update: looks for a newer version every 6 hours and installs it when no task is running, waiting up to 6 hours for running tasks rather than 10 minutes, so it does not cut turns short; Update while it waits uses the 10 minutes). They are saved in
config.jsonon the computer.myrel-runner settingsshows and changes the same ones here, andmyrel-runner settings remote offstops Myrel from changing them (only this computer can turn it back on).Usage (from runner 0.29.0): the card shows how busy the computer is: CPU since the last reading, memory used of the total (on Linux what the kernel says is still available, on macOS what Activity Monitor counts as used), swap on Linux, free space on the disk the runner's home is on, and how many CLIs it is running for Myrel. The runner measures with each of its pings (every 25 seconds, with the connection it keeps anyway) and sends numbers only: no process names, paths or user names. Myrel keeps the latest reading while the computer is connected and stores nothing; only you see it, on your own Devices page.
myrel-runner settings stats offstops sending it.
A runner started with myrel-runner start in a terminal cannot restart itself, so the card shows the command
instead; the desktop app's runner updates with the app. Runners before 0.14.0 need npx myrel-runner@latest update
once.
If the runner shuts down while a task is running (an update or a restart of the service), it notes the task in
~/.myrel-runner/interrupted.json and tells the server when it reconnects. From runner 0.12.0, Myrel then continues
that turn on its own a few times, with growing waits, and says so in the thread instead of reporting a failure.
Threads working at the same time
When a shared folder is a git repository, each thread works in its own
git worktree on its own branch, myrel/thr-…, made from the repository's
current commit on the thread's first task. Two threads can then work in the same project at once without changing
each other's files or switching each other's branch, and your own checkout is left alone. Each task's result says
which branch and folder the work is in; merge or open a PR from that branch as usual.
Worktrees live in ~/.myrel-runner/worktrees. They start without your uncommitted changes and without ignored files
such as node_modules or .env, so a task may need to install dependencies first. A worktree that has not been used
for a day, has no uncommitted changes and whose branch is merged into your checkout's branch is removed
automatically, with its branch. myrel-runner worktrees lists them, worktrees prune cleans up now,
worktrees remove <path or branch> removes one, and worktrees off makes threads work in the folder itself again.
Read-only tasks (--access read) always run in the folder itself.
More than one Claude Code account
A thread can run with another Claude Code login than your own, e.g. a work account next to your personal one.
Each login lives in a config folder of its own, which Claude Code takes from CLAUDE_CONFIG_DIR
(its own way to sign in with several accounts):
myrel-runner claude add "Work" # a new folder, ~/.myrel-runner/claude/work, then Claude Code's own sign-in
myrel-runner claude add "Work" --dir ~/.claude-work # or a folder you already signed in with
myrel-runner claude rename default "Personal" # name your own login (~/.claude) too
myrel-runner claude list # each login, its folder and whether it is signed in
myrel-runner claude login "Work" # sign in again, e.g. after its login expired
myrel-runner claude remove "Work" # forget it; its folder (and login) stays until you delete itThe sign-in is Claude Code's own claude auth login: the login stays in that folder, and neither the runner nor
Myrel ever reads or keeps it. The runner only tells Myrel each account's name, and its usage limits as Claude Code
reports them in a turn with it. A thread that chose an account runs Claude Code with its folder; its sessions are
kept apart from your own login's, so a thread that switches accounts starts a new session (with the thread's
history). A new folder has none of your ~/.claude settings, hooks or plugins. Use accounts that are all yours:
Claude's consumer terms do not allow sharing a login with someone else. Needs runner 0.34.0 or newer.
With runner 0.47.0 or newer, Myrel > Devices > CLIs can do this too: Add account starts Claude Code's
browser sign-in and asks for the code it shows, without the login reaching Myrel. Each account's settings.json
button opens an editor on the same page. Secret values arrive as random placeholders and are restored on the
computer when saved; replacing one sets a new value, and removing one removes it. The server never stores the file.
Remote changes still respect myrel-runner settings remote off.
What the CLI may do
myrel-runner start --access <level>, or for the background runner myrel-runner service install --access <level> or
myrel-runner update --access <level> (both restart it). The level is saved for next time:
| level | Claude Code | Codex | Antigravity CLI | OpenCode | Cursor CLI | Muse Code |
|---|---|---|---|---|---|---|
| read | --permission-mode plan | --sandbox read-only | --mode plan | edit and bash denied | --mode ask | --approval-mode never --disable-write --disable-shell |
| edit (default) | --permission-mode acceptEdits | --sandbox workspace-write | --mode accept-edits | edit allowed, bash denied | --sandbox enabled | --approval-mode never --trust-workspace |
| auto | --permission-mode auto | --sandbox workspace-write | --mode accept-edits | edit allowed, each command reviewed (OpenCode 2; denied on 1) | --sandbox enabled | --approval-mode never --trust-workspace |
| full | --permission-mode bypassPermissions | --sandbox danger-full-access | --dangerously-skip-permissions | edit and bash allowed, --auto | --force --sandbox disabled | --yolo |
With auto, Claude Code's auto mode decides which steps are safe to run (tests, git commit, builds) and runs them;
the ones it would ask about come to you as a card in the thread. Your Claude account must have auto mode. Codex uses
Approve for me (approvalsReviewer: "auto_review"): its reviewer evaluates sandbox-boundary approvals while
the main agent stays in workspace-write. This requires a Codex app server with auto-review support (verified with
Codex 0.166.0); if it does not enable the reviewer, the task stops with an update instruction. MYREL_CODEX_EXEC=1
and older versions without an app server cannot run Codex auto access; choose edit to use exec instead.
For Antigravity CLI auto is the same as edit (its own auto mode needs its terminal sandbox and is missing on
business accounts).
Codex runs as its app server (codex app-server, one process per turn) where the installed Codex has one, and as
codex exec --json otherwise. The sandbox is the same either way (the table above). As a thread's agent with edit
or auto, the app server runs with approval policy on-request: a step its sandbox does not allow (a command that
needs the network such as git push, a file outside the folders) is reviewed by Codex with auto, or comes to you
as a card with edit. Switching from auto to edit restores manual approval even when resuming a session.
With read and full, and with codex exec, nothing is asked:
such a step fails and the run goes on. Stopping a turn from Myrel interrupts it the way Codex's own Stop does, so the
session is whole for the next turn. A message you write in the thread while it works goes into the running turn at
once (turn/steer, runner 0.23.0 or later), instead of with its next call to one of Myrel's tools. Set MYREL_CODEX_EXEC=1 in the runner's environment to keep codex exec.
Claude Code takes the prompt as streaming input (--input-format stream-json, runner 0.26.0 or later, where the
installed Claude Code has --replay-user-messages). A message you write in the thread while it works goes into the
running turn at its next step, after the tool it is running, instead of with its next call to one of Myrel's tools.
Stopping a turn from Myrel interrupts it the way Esc does in Claude Code, so the session is whole for the next turn.
Set MYREL_CLAUDE_ONESHOT=1 in the runner's environment to give it the prompt on a stdin that ends at once, as before.
Subagents show in the thread's Terminal tab (runner 0.24.0 or later): Claude Code's Agent tool and the agents Codex's app server spawns each get a line when they start (with what they are for) and when they end (with their answer), and their steps show indented under their name. Codex subagents' tokens count toward the turn's usage. From 0.25.0 the ending line also says which model the subagent ran on and how many tokens it used, for the tab's list of subagents.
Antigravity CLI is stricter than Codex below full: there is no sandbox where its commands run on their own. A
command, a web page or a file outside the folders needs approval, which it cannot ask for when Myrel runs it, and
being declined ends the whole run with no answer. So with read, edit and auto it is told to keep to the files
and Myrel's tools, and a run that still stops says which permission stopped it. Give it full to let it run
commands, or allow single ones under permissions.allow in ~/.gemini/antigravity-cli/settings.json (e.g.
command(git)).
OpenCode has no sandbox for commands either, so with read and edit its command tool is denied: OpenCode then does
not offer it at all, and the run goes on with files and Myrel's tools. With auto on OpenCode 2 (runner 0.41.0 or
later; verified with 2.4.0) a plugin the runner adds for the run judges each command before it runs, with the model
picked for it in Myrel (the project's, else your account's) or the run's own: one extra model call per command, on
your OpenCode account. From runner 0.42.0, commands that only look at the project's folders and repeats of one
already allowed in the turn need no call. Ordinary development work runs, and what the model is unsure about comes to
you as a card in the thread. sudo, SSH, keys, force pushes and publishing always do. The review reads the command,
not what it does, and there is still no sandbox, so a command it allows runs with your rights. On OpenCode 1, auto is the same as edit. Anything else that would ask (for example a
permission you set to ask yourself) is declined; on OpenCode 1 the run goes on too
(experimental.continue_loop_on_deny). OpenCode 2 dropped that flag and allows folders outside the project by
default, so there the runner writes OpenCode 2's native permission rules instead: below full, folders outside
the project's stay closed except the ones the run was given. With full, --auto approves what would ask, but
rules you set to deny still hold.
OpenCode 2 asks once, on screen, before its first web search. A run has no screen to ask on, so its searches are
cancelled until you choose: pick a provider in OpenCode yourself, or set "websearch": { "provider": "random" }
(or false to turn it off) in ~/.config/opencode/opencode.json. OpenCode exits with an error after such a
cancelled search; from runner 0.42.1 a run that went on and answered is not shown as failed for it.
Hermes Agent runs as an ACP server (hermes acp), whose session takes an edit mode: default (asks before
edits) with read, accept_edits with edit and auto, dont_ask with full. What it asks permission for
(dangerous commands, sensitive files, edits with read) is declined below full and allowed with full. Its
terminal cannot be switched off for one run (toolsets come from its global config), so below full it is told not
to run commands that change anything; this is an instruction, not a sandbox.
Cursor CLI (cursor-agent -p) is closest to Codex. With edit and auto, its sandbox keeps edits and commands in
the workspace and gives commands no network; what would need approval (a file outside, a command it cannot sandbox)
is declined and the run goes on. --force would also take commands out of the sandbox, so only full uses it. With
read it runs in ask mode, which reads and answers but changes nothing (plan mode would leave out Myrel's tools).
Muse Code (muse exec --json) is close to Codex too. With approval mode never nothing waits for an answer: with
edit and auto its sandbox keeps writes in the workspace (and /tmp), a write outside fails and the run goes on,
and commands reach the network through its proxy. --trust-workspace loads the folder's own rules and skills for
that run only. With read its write and shell tools are taken away (its :read-only profile would wait forever on
a command's approval). full is --yolo: no approval, no sandbox. Muse Code has no --add-dir, so below full it
writes only in the project's main folder.
Every muse exec writes a temp folder with a new random name into its instructions, ahead of the conversation, so
the first model call of a resumed turn misses the provider's prompt cache and reads the whole session again (about
2.5 minutes at 350k tokens). The runner passes --context-compaction-soft-threshold 0.15, so Muse Code summarizes
the session from about 150k tokens instead of 750k and that first call stays under a minute.
On Ubuntu 23.10 and later, Codex's and Muse Code's sandboxes can fail every command with bwrap: loopback: Failed
RTM_NEWADDR: Operation not permitted. Ubuntu's AppArmor gives programs without a profile no capabilities in a new user
namespace (kernel.apparmor_restrict_unprivileged_userns = 1) and exempts only /usr/bin/bwrap, while both CLIs
bring their own bubblewrap. myrel-runner status and the runner's log say so, and their runs are told to stop
retrying commands. myrel-runner sandbox shows what it found; myrel-runner sandbox fix, run as yourself, installs
/etc/apparmor.d/myrel-runner-<you> with sudo: a profile that lets only those binaries (by a pattern that still
matches after they update) make user namespaces, while the rest of the computer keeps the restriction.
Kimi Code runs as an ACP server (kimi acp) like Hermes Agent, whose session takes a permission mode: plan with
read (no edits but its own plan file), default with edit and auto (reads and edits inside the folder's git
repository run, the rest asks) and auto ("never ask") with full. What it asks permission for is declined below
full, except the run's own MCP tools (mcp__<server>__…), which are allowed at every level. It has no sandbox, so
below full its shell commands are declined; its yolo mode would run them all but system commands (shutdown,
mkfs), so auto stays with edit as for Codex. Rules you set to deny in its config always hold.
Qwen Code runs as an ACP server too (qwen --acp): default with read, edits without asking with edit
(acceptEdits in 1.x, auto-edit in 0.x), its safety classifier with auto and yolo with full. What it asks
permission for is declined below full, except the run's own MCP tools. Qwen Code 0.x ends the whole turn when a step
is declined, so there the tools it would ask about are left out of the run (--exclude-tools): commands, monitor and
web_fetch below auto, file edits too with read, and its own question tool at every level.
MiniMax Code runs as an ACP server too (mcode acp), with its permission mode set for the run: default ("Ask")
with read and edit, its safety check (auto) with auto and bypassPermissions with full; read also puts the
session in its plan mode, where nothing but its plan file can be written. Ask asks about reads and writes outside the
folder, network and commands it does not know to be safe; what it asks about is declined below full, except the
run's own MCP tools and files in the project's other folders and the skills folder. It has no sandbox, so a shell
command it takes for safe also runs outside the folder.
With edit, the CLI can change files in the folder but cannot run commands that would need your approval. Use
full only for folders and projects you trust: it lets the CLI run any command without asking.
Project folders and asking first
A project can list other folders besides its main one (Project settings > Folders). They must be shared on this
computer too; the CLI gets them with --add-dir.
When Claude Code runs as a thread's agent, its permission prompts go to Myrel (--permission-prompt-tool
mcp__myrel__approve_access). If a step reaches a file outside the project's folders, Myrel asks you in the thread
(Allow once, Add to project, Don't allow) and the step waits for your answer. A command or web request the access
level does not allow on its own (with edit: git commit, git push, tests) is asked about the same way (Run it,
Allow commands this turn, Don't run), so there is no need to restart the runner with --access full for one task. A
file change inside the folders with read is declined as before. With full, Claude Code then runs with
acceptEdits and commands and web tools pre-allowed instead of bypassPermissions, so only files outside the folders
are asked about. Codex asks the same way for what its sandbox does not allow, when it runs as its app server (see
above). Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI, Muse Code, Kimi Code, Qwen Code and MiniMax Code cannot ask mid-run, so they stay inside the folders (OpenCode gets them as
external_directory allow rules, Kimi Code as the session's additionalDirectories, Qwen Code as both and --add-dir, MiniMax Code by allowing its
file requests inside them).
Tasks in the same Myrel thread continue the same Claude Code session (--resume), so follow-ups keep context.
SSH servers
A project can list servers its agents may reach over SSH (Project settings > SSH). The key for each is made on this
computer by the runner (ssh-keygen -t ed25519) and kept in ~/.myrel-runner/ssh/<project>/<name> (mode 600); its
passphrase goes in the OS keychain (macOS Keychain, Secret Service with secret-tool on Linux) where there is one,
and the key has none otherwise. You can pick a key of your own from ~/.ssh instead (one without a passphrase).
Myrel only ever gets the public half. The server's own key, confirmed by you by its fingerprint, is kept in
~/.myrel-runner/ssh/known_hosts and checked strictly on every connection.
An agent asks for one command at a time with Myrel's ssh_run tool; ssh <name> <command> in its shell does the same,
through an ssh (and scp, sftp) the runner puts first on the run's PATH. Each command is put to you, the
computer's owner, on a card in the thread (Run it, Allow this server this turn, Don't run); a command that looks
destructive gets a red card and is never covered by the turn's allow. The runner then runs it with ssh -F none,
Myrel's key and known_hosts only, no agent forwarding or port forwarding, for at most 5 minutes and 200 KB of output.
Interactive sessions and file copies are refused. git's own SSH (git-upload-pack and the like) goes to the real
ssh as before.
Your CLI as the thread's agent
When a project works in one of your folders, your CLI does not just run tasks: it is the thread's agent. Each turn of a thread is one run of the CLI (Claude Code resumes the thread's previous session), with Myrel's tools (reply, plan, decisions, artifacts, memory, routines) added over MCP:
| CLI | How the MCP server is added |
|---|---|
| Claude Code | --mcp-config <file>, allowed with --allowedTools mcp__myrel |
| Codex CLI | -c mcp_servers.myrel.url=… and -c mcp_servers.myrel.bearer_token_env_var="MYREL_MCP_TOKEN" |
| Antigravity CLI | myrel-runner mcp-bridge in ~/.gemini/config/mcp_config.json, allowed with mcp(myrel/*) in ~/.gemini/antigravity-cli/settings.json |
| OpenCode | mcp.myrel (remote, Authorization: Bearer {env:MYREL_MCP_TOKEN}) in OPENCODE_CONFIG_CONTENT, allowed with myrel_* |
| Hermes Agent | mcpServers of ACP's session/new (or session/resume), the token in its Authorization header |
| Cursor CLI | mcp.json of a plugin folder of the run (--plugin-dir, --approve-mcps), allowed with Mcp(plugin-myrel-myrel:*) in a cli-config.json of the run (CURSOR_CONFIG_DIR) |
| Muse Code | -c 'mcpServers.myrel={"url":…,"headers":{"Authorization":"${MYREL_MCP_AUTH}"}}', run with --approval-mode never |
| Kimi Code | mcpServers of ACP's session/new (or session/resume), the token in its Authorization header, its tools allowed when it asks |
| Qwen Code | mcpServers of ACP's session/new (or session/resume), the token in its Authorization header, its tools allowed when it asks |
| MiniMax Code | mcpServers of ACP's session/new (or session/resume), the token in its Authorization header, its tools allowed when it asks |
The MCP endpoint is <server>/api/agent-mcp/<thread> and its token is valid only for that turn. Config files holding
it are readable only by you and deleted when the run ends; Codex gets it in its environment instead. The whole turn
uses your own CLI login. Needs myrel-runner 0.4.0 or later for Claude Code, 0.5.0 or later for Codex, 0.13.0 or later
for Antigravity CLI, 0.15.0 or later for OpenCode, 0.16.0 or later for Hermes Agent, 0.17.0 or later for Cursor CLI, 0.19.0 or later for Muse Code, 0.20.0 or later for Kimi Code, 0.39.0 or later for Qwen Code, 0.48.0 or later for MiniMax Code.
Antigravity CLI takes MCP servers only from its global config, never for one run. So the runner adds one fixed
server there, the bridge, and an allow rule for its tools; the rest of both files stays as it is. Each run hands the
bridge its thread's endpoint, token and connectors in a private file (MYREL_MCP_BRIDGE), deleted after the run, so
the global config never holds a token. When you start agy yourself, the bridge has no run and offers no tools.
Connectors' tools show up there as <connector>__<tool>. Sign in to agy once yourself; runs reuse that login.
OpenCode takes a whole config for one run in OPENCODE_CONFIG_CONTENT, so nothing is written to your
~/.config/opencode: the run's servers, connectors, permission rules and skills folder (skills.paths) go there,
merged over your own config, and the token stays in MYREL_MCP_TOKEN. Your model and provider logins are your own.
opencode 2 runs opencode run through its background service, which would ignore that config, so the runner adds
--standalone when opencode --version says 2 or later, and writes that config in OpenCode 2's native shape
(servers under mcp.servers with Code Mode off, so the run's tools stay tools of their own, and ordered
permissions rules). Connectors' tools show up as <connector>_<tool>.
Hermes Agent's hermes chat runs every turn in a shared background gateway that takes MCP servers only from
~/.hermes/config.yaml, so the runner uses its ACP server instead (hermes acp, which needs
hermes pm install --extra acp once). Each run is one ACP session: initialize, session/new or session/resume
(the thread's previous session) with the run's MCP servers, session/set_mode, then session/prompt; the runner
ends the connection when the prompt is answered. The token travels only over that pipe. Hermes shows the run's
servers to the model behind its tool_search, as mcp__editor_<server>_<id>__<tool>. Detection checks that
hermes --version says Hermes Agent (another hermes is the React Native JavaScript engine).
Cursor CLI takes MCP servers only from mcp.json files (~/.cursor/mcp.json, the project's .cursor/mcp.json) and
from plugins. So each run gets a plugin folder named myrel (--plugin-dir) whose mcp.json holds Myrel's server
and the connectors; Cursor names them plugin-myrel-<server>. Headless, a tool that would ask is declined, so the run
also gets its own config folder (CURSOR_CONFIG_DIR): your cli-config.json (model, rules) with allow rules for
those servers added, and a link to your chats folder so the thread's next turn resumes the chat (--resume). Nothing
is written to your ~/.cursor; both folders and the token in them are deleted after the run. The skills' folder
gets a .cursor-plugin manifest and goes in as a second plugin. The runner looks for cursor-agent rather than
agent, the other name Cursor's installer links. Sign in once with cursor-agent login. Your own servers in
~/.cursor/mcp.json load too, approved like the run's (--approve-mcps cannot pick).
Muse Code takes one -c mcpServers.<name>=<json> per server for a run (it refuses the whole map at once, and an HTTP
server with a type), so nothing is written to your ~/.config/muse/settings.json. A secret goes in -c only as a
whole ${VAR}, so the token's Authorization header and connectors' environment values stay in the run's
environment. muse exec does not read stdin: the prompt goes in a file only you can read (--prompt-file), deleted
after the run. The thread's next turn continues the session with --session-id. Muse Code has no command that lists
its models, so the runner reads the catalog it keeps in ~/.local/share/muse/model-catalog (visible models and their
effort tiers); a picked model and effort go in as --model and --effort, otherwise your settings decide. Your own
MCP servers come from your settings too. Skills: the prompt names the run's skills folder, where Muse Code reads them.
Detection checks that muse --version says Muse Code. Sign in once with muse login.
Kimi Code (Moonshot AI's kimi, the npm package @moonshot-ai/kimi-code) takes MCP servers for a run only in its
ACP server: kimi -p reads them from ~/.kimi-code/mcp.json. So a run is one ACP session, as with Hermes Agent:
session/new (or session/resume) with the run's servers and the project's other folders, session/set_mode, the
model and thinking level with session/set_config_option, then session/prompt. Nothing is written to your
~/.kimi-code. Its models are the aliases kimi provider list --json lists (from your login or your own
providers), each with its thinking levels (supportEfforts); a picked model and level go in as the session's
model and thinking, otherwise your config.toml decides. Its tools show up as mcp__<server>__<tool>; your own
servers in mcp.json load too, but only the run's are allowed without asking. Skills: the prompt names the run's
skills folder, which Kimi Code may read. Detection checks that kimi --version prints a bare version (the archived
Python kimi-cli prints kimi, version …). Sign in once with kimi login.
Qwen Code (qwen, the npm package @qwen-code/qwen-code or its own installer) runs as an ACP server (qwen --acp)
for the same reason: its -p flags differ between 0.x and the 1.x previews, while ACP takes the run's MCP servers per
session in both. A run is session/new (or session/resume) with the run's servers, session/set_mode, then
session/prompt; the project's other folders and the skills folder go in as --add-dir and, in 1.x, as the
session's additionalDirectories. Nothing is written to your ~/.qwen. Qwen Code asks about every MCP tool and names
it mcp__<server>__<tool> in the request; only the run's are allowed without asking, your own servers in
settings.json load too. It runs on the model set in Qwen Code: 0.x has no command that lists its models, and the
1.x previews' ACP session offers only the current one, so Myrel shows no model picker for it yet. Detection checks
that qwen --version prints a bare version. Sign in or set up a provider once by starting qwen. In the terminal, a
message shows once it is whole (ACP sends it in pieces), a CodeMode step names the tools its script calls (the
script's own calls are not reported one by one), and a subagent (its Agent tool) shows starting and ending; one in the
background ends with Qwen Code's notice that it finished.
MiniMax Code (mcode, the npm package @minimax-ai/code or its own installer) runs as an ACP server (mcode acp):
mcode exec reads MCP servers only from its own config, while ACP takes the run's per session. A run is session/new
(or session/resume) with the run's servers, session/set_mode, its permissionMode, model and thinkingEffort as
session config options (they last only for the process; your config.yaml is not changed), then session/prompt.
Its session takes no other folders, so when it asks to read a file in the project's other folders or the skills
folder, or to change one in the other folders, that is allowed. The model list (official MiniMax models with their
thinking efforts, plus your own providers' models) comes from a new ACP session that is closed before any prompt, so
nothing is spent; a picked model and effort go in as the session's model and thinkingEffort, otherwise its own
default runs. Its tools show up as mcp__<server>__<tool>. Detection checks that mcode --version prints a bare
version. Sign in once with mcode login (mcode login --region global outside mainland China), or set up a MiniMax
API key or another provider with mcode provider. Its config.yaml in ~/.minimax holds provider API keys: the
runner never reads it.
Projects without a local folder are worked in the cloud by OpenCode, in the thread's own sandbox.
For apps that run it (the desktop app)
MYREL_SERVERandMYREL_RUNNER_TOKENoverride the saved pairing, and an env token is never written to disk. From runner 0.12.1 the token is also removed from the environment of every CLI and command the runner starts. An app that already has the user's session can pair without a code:POST /api/runners/pairing(as the user) returns a code, andPOST /api/runner/pairtrades it for the runner token.MYREL_RUNNER_HOMEmoves the config folder.myrel-runner start --jsonprints one status object per line (connecting,online,offline,task,stopped);myrel-runner status --jsonprints the config without the token.- The build is a single JavaScript file with no native dependencies (
dist/cli.js), so it can be packed into one binary with Node SEA orbun build --compile.
Packages
The CLI is published as @fibteq/myrel-runner.
myrel-runner (in packages/myrel-runner-alias) is a short name that
depends on it, so npx myrel-runner works. npx @fibteq/myrel-runner runs the same CLI.
startRunner() and pair() are exported too, for the desktop app to bundle the runner instead of shelling out to it.
From this repository
pnpm install
pnpm --filter @fibteq/myrel-runner build
node packages/myrel-runner/dist/cli.js --helpReleasing
- Bump
versioninpackage.jsonhere and inpackages/myrel-runner-alias/package.json, andRUNNER_VERSIONinsrc/runner.ts(a test checks they match). BumpRUNNER_PROTOCOL_VERSIONin@myrel/protocolonly when the wire format changes; the server refuses runners on another protocol version and tells them to update. - Merge it. The Release myrel-runner workflow then tests, builds and
publishes both packages whose version is not on npm yet (it can also be run by hand from the Actions tab).
It uses npm trusted publishing: once, on npmjs.com, open each package's Settings > Trusted publishing, choose
GitHub Actions and enter
Fibteq-Inc,Myrel,release-runner.ymland the environmentrelease(which only main can use, so a workflow pushed to another branch cannot publish).
By hand instead (needs an npm account in the fibteq npm organization), runner first, then the short name, with
pnpm (it replaces workspace: versions and uses the built files from publishConfig):
npm login
pnpm --filter @fibteq/myrel-runner publish --access public
pnpm --filter myrel-runner publish --access publicprepublishOnly builds and tests the runner before it is published. Check the contents first with
pnpm --filter @fibteq/myrel-runner pack if in doubt.
