Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

remodex

Latest version: v4.0.0

Overview

Last scanned
1 Oct 2026
Published
1 Oct 2026
npm package Publisher: emanueledpt
3 Versions
760 Downloads

Scan summary

remodex was last scanned on 1 Oct 2026 at version 4.0.0. Risk score 40 of 100 (medium). High-severity rules fired.

  • Releases: 3 versions; the latest 2 were published on 1 Oct 2026.
  • Findings: 2 rules fired in version 4.0.0 (2 high). The score describes this version only.
  • Downloads: 760 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.0.0 LATEST 1 Oct 2026 2 rules fired
3.2.0 1 Oct 2026 2 rules fired
3.1.0 11 Aug 2026 Not shown

Rules fired in 4.0.0: 2

Findings

2 High

Findings for v4.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Secret read next to a detached background process

The same file reads a registry, cloud or CI secret from the environment and starts a detached process that keeps running after the parent exits. The scanner does not check that the secret is passed to that process. A background process that outlives the package does not normally need the package's credentials.

HIGH

Several suspicious behaviors form a known attack pattern

HIGH
Checking access…

🔒 Create a free account to see all 2 findings with descriptions and instance counts

The score describes 4.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Remodex

npm version License Follow on X

Control Codex or OpenCode from your iPhone. Remodex is a local-first open-source bridge + iOS app that keeps the coding runtime on your Mac and lets your phone connect through a paired secure session.

Key App Features

  • End-to-end encrypted pairing and chats between your iPhone and Mac
  • Fast mode for lower-latency turns
  • Plan mode for structured planning before execution
  • Subagents from iPhone with the /subagents command
  • Steer active runs without starting over
  • Queue follow-up prompts while a turn is still running
  • In-app notifications when turns finish or need attention
  • Git actions from your phone, including commit, push, pull, and branch switching
  • Reasoning controls to tune how much thinking Codex uses
  • Access controls with On-Request or Full access
  • Photo attachments from camera or library
  • One-time QR bootstrap with trusted Mac reconnects
  • macOS-only background bridge service via launchd
  • Live streaming on your phone while Codex runs on your Mac
  • Shared thread history with Codex on your Mac
  • OpenCode chats with a model chosen at creation, including Zen, Go, and Free models, and shared sessions from your Mac

The repo stays local-first and self-host friendly: the iOS app source does not embed a public hosted endpoint, and the transport layer remains inspectable for anyone who wants to run their own setup.

Today, the background daemon / trusted auto-reconnect flow is implemented for macOS. Self-hosted relay setups still work on other OSes, but they currently use the foreground bridge flow instead of the macOS launchd service path.

If you want the public-repo distribution model explained clearly, read SELF_HOSTING_MODEL.md.

I am very early in this project. Expect bugs.

I am not actively accepting contributions yet. If you still want to help, read CONTRIBUTING.md first.

Get the App

The app is live on the App Store.

Build the iOS app from source in Xcode, install your own signed build on-device, then use the in-app onboarding flow to pair by scanning the QR from remodex up.

If you scan the pairing QR with a generic camera or QR reader before installing the app, your device may treat the QR payload as plain text and open a web search instead of pairing.

Architecture

┌──────────────┐       Paired session   ┌───────────────┐       stdin/stdout       ┌─────────────┐
│  Remodex iOS │ ◄────────────────────► │ remodex (Mac) │ ◄──────────────────────► │ codex       │
│  app         │    WebSocket bridge    │ bridge        │    JSON-RPC              │ app-server  │
└──────────────┘                        └───────────────┘                          └─────────────┘
                                               │                                         │
                                               │  Local Codex IPC live state              │ JSONL rollout
                                               ▼                                         ▼
                                        ┌─────────────┐                           ┌─────────────┐
                                        │  Codex.app  │ ◄─── persisted fallback ─│  ~/.codex/  │
                                        │  (desktop)  │      disk on navigate     │  sessions   │
                                        └─────────────┘                           └─────────────┘
  1. Run remodex up on your Mac
  2. On macOS, Remodex installs/starts a lightweight background bridge service and prints a QR for first-time pairing or recovery
  3. Scan the QR once with the Remodex iOS app to trust that Mac
  4. After the first handshake, the iPhone can resolve the Mac's live session through the configured relay and reconnect automatically
  5. Your phone sends instructions to Codex through the bridge and receives responses in real-time
  6. The bridge handles git operations and local session persistence on your Mac
  7. When the local Codex IPC bus is available, Remodex broadcasts live conversation state to Codex Desktop / VSCode; persisted JSONL history and the optional refresh workaround remain as fallbacks

Repository Structure

This repo contains the local bridge, the iOS app target, and their tests:

├── phodex-bridge/                # Node.js bridge package used by `remodex`
│   ├── bin/                      # CLI entrypoints
│   └── src/                      # Bridge runtime, git/workspace handlers, refresh helpers
├── CodexMobile/                  # Xcode project root
│   ├── CodexMobile/              # App source target
│   │   ├── Services/             # Connection, sync, incoming-event, git, and persistence logic
│   │   ├── Views/                # SwiftUI screens and timeline/sidebar components
│   │   ├── Models/               # RPC, thread, message, and UI models
│   │   └── Assets.xcassets/      # App icons and UI assets
│   ├── CodexMobileTests/         # Unit tests
│   ├── CodexMobileUITests/       # UI tests
│   └── BuildSupport/             # Info.plist, xcconfig defaults, and local override templates

Prerequisites

  • Node.js v18+
  • Codex CLI installed and in your PATH
  • Codex CLI authenticated on the Mac (codex login status should succeed)
  • OpenCode CLI installed on the Mac for OpenCode chats; authenticate Zen or Go in OpenCode before selecting those models
  • Codex desktop app (optional — for viewing threads on your Mac)
  • A signed Remodex iOS build installed on your iPhone or iPad before scanning the pairing QR
  • macOS (for desktop refresh features — the core bridge works on any OS)
  • Xcode 16+ (only if building the iOS app from source)

Codex Authentication

Remodex does not manage OpenAI credentials. It expects the local Codex CLI to be installed and authenticated before the bridge starts:

codex login status
codex login

If startup fails with Missing environment variable: CODEX_API_KEY, that error is coming from your Codex CLI configuration, not from Remodex. The safest recovery is to authenticate Codex directly, then restart Remodex:

codex login
remodex restart

If you intentionally use API-key auth, configure Codex itself rather than storing keys in Remodex:

printenv OPENAI_API_KEY | codex login --with-api-key
remodex restart

Do not put live OpenAI API keys into the Remodex launchd plist or relay configuration.

Install the Bridge

Install from npm with @latest so you get the newest bridge fixes.

If you plan to use the macOS menu bar companion, remodex must be installed globally and available in your login-shell PATH.

npm install -g remodex@latest

To update an existing global install later:

npm install -g remodex@latest

If the macOS background service is installed, run remodex restart after updating. It refreshes the saved Node/CLI paths and LaunchAgent policy used by launchd without replacing your pairing state.

If you only want to try Remodex, you can install it from npm and run it without cloning this repository.

Quick Start

Install the bridge, then run:

remodex up

On first connect, open the Remodex app, follow the onboarding flow, then scan the QR code from inside the app.

After that first scan:

  • the iPhone saves the Mac as a trusted device
  • the Mac bridge keeps its identity locally
  • the app tries trusted reconnect automatically on later launches
  • the QR remains available as a recovery path if trust changes or the relay cannot resolve the live session

For now, the daemon-backed trusted reconnect path is macOS-only. If you self-host on Linux or Windows, pairing still works, but the bridge runs in the foreground unless you set up your own OS-specific service wrapper.

Run Locally

git clone https://github.com/Emanuele-web04/remodex.git
cd remodex
./run-local-remodex.sh

That launcher starts a local relay, points the bridge at ws://<your-host>:9000/relay by default, and prints the pairing QR for the iPhone app.

For iPhone self-hosting, the recommended path is Tailscale or another stable private network. Plain LAN pairing over ws://<lan-ip> on the same Wi-Fi is still available for local testing, but it can be unreliable on some iOS devices even when the relay and Wi-Fi are healthy.

Options:

  • ./run-local-remodex.sh --hostname <lan-hostname-or-ip>
  • ./run-local-remodex.sh --relay-url https://<random>.trycloudflare.com
  • ./run-local-remodex.sh --bind-host 127.0.0.1 --port 9100

If your iPhone is pairing over LAN, use a hostname or IP the phone can actually reach.

For a temporary Cloudflare Tunnel, run this in one terminal:

cloudflared tunnel --url http://127.0.0.1:9000

Then pass the generated https://<random>.trycloudflare.com URL to the local launcher in another terminal:

./run-local-remodex.sh --relay-url https://<random>.trycloudflare.com

The launcher advertises that as wss://<random>.trycloudflare.com/relay in the pairing QR while keeping the relay process local.

Custom Relay Endpoint

For a full public self-hosting walkthrough, see Docs/self-hosting.md.

If you want the npm bridge to point at your own setup instead of the package default, override REMODEX_RELAY explicitly:

REMODEX_RELAY="ws://localhost:9000/relay" remodex up

For self-hosted iPhone usage, prefer a relay URL reachable over Tailscale or another stable private network. Treat plain local ws://192.168.x.x pairing as best-effort rather than the recommended production path on iOS.

A common private setup looks like this:

  1. Run the relay on your Mac, a mini server, or a VPS you control
  2. Put that machine on Tailscale
  3. Set REMODEX_RELAY to the Tailscale-reachable ws:// or wss:// relay URL
  4. Pair once with QR
  5. Let the iPhone reconnect to the same trusted Mac over that relay later

If that relay is fronting a Mac bridge, the macOS daemon can keep the bridge alive for hands-free reconnects. If you self-host against a non-macOS bridge, the same relay path still works, but automatic background service management is not built in yet.

Reverse-proxy subpaths work too, so a hosted relay behind Traefik can live under the same domain as other APIs:

REMODEX_RELAY="wss://api.example.com/remodex/relay" remodex up

In that setup, the public endpoints can look like this:

  • wss://api.example.com/remodex/relay
  • https://api.example.com/remodex/v1/push/session/register-device
  • https://api.example.com/remodex/v1/push/session/notify-completion

Have the proxy strip /remodex before forwarding so the relay still receives /relay/... and /v1/push/....

If you point REMODEX_RELAY at your own self-hosted relay, managed push stays off unless you also set REMODEX_PUSH_SERVICE_URL on the bridge and explicitly enable push on the relay.

Commands

remodex up

Starts Remodex.

On macOS, remodex up is the friendly entrypoint for the background bridge service:

  • Writes the daemon config used by the launchd service
  • Starts or restarts the background bridge service
  • Waits for a pairing payload and prints a QR for first-time trust or recovery
  • Keeps the bridge alive even if you close the terminal later

On non-macOS platforms, remodex up runs the bridge in the foreground.

In both cases the bridge:

  • Spawns codex app-server (or connects to an existing endpoint)
  • Connects the Mac bridge to the configured relay
  • Forwards JSON-RPC messages bidirectionally
  • Handles git commands from the phone
  • Persists the active thread for later resumption
remodex start

macOS only. Starts the background bridge service without waiting for or printing a QR in the current terminal. If the service is already loaded, this path refreshes it in place.

remodex restart

macOS only. Explicitly restarts the background bridge service without waiting for or printing a QR in the current terminal. If a service is already installed, restart regenerates its LaunchAgent plist with the current Node/CLI paths and re-bootstraps it, so run it after updating the package. It does not rewrite the saved relay configuration.

remodex stop

macOS only. Stops the background bridge service and clears its transient runtime status.

remodex uninstall-service

macOS only. Unloads the background bridge service from launchd and removes its LaunchAgent plist. Saved configuration, logs, and trusted-device data in ~/.remodex are preserved for a future reinstall.

To remove Remodex completely and safely:

remodex uninstall-service
npm uninstall -g remodex
remodex status

macOS only. Prints the current launchd / bridge status, including whether the service is loaded and whether a recent pairing payload exists.

remodex run-service

macOS only. Internal service entrypoint used by launchd. You normally do not run this manually.

remodex --version

Prints the installed Remodex CLI version.

remodex --version
# => 2.0.0
remodex reset-pairing

Clears the saved bridge pairing state so the next trusted connection requires a fresh QR bootstrap again. You normally do not need this for corrupted local state anymore: recent Remodex builds auto-repair unreadable pairing files/mirrors on startup.

remodex reset-pairing
# => [remodex] Cleared the saved pairing state. Run `remodex up` to pair again.
remodex resume

Reopens the last active thread in Codex.app on your Mac.

remodex resume
# => [remodex] Opened last active thread: abc-123 (phone)
remodex watch [threadId]

Tails the event log for a thread in real-time.

remodex watch
# => [14:32:01] Phone: "Fix the login bug in auth.ts"
# => [14:32:05] Codex: "I'll look at auth.ts and fix the login..."
# => [14:32:18] Task started
# => [14:33:42] Task complete

Environment Variables

REMODEX_RELAY is optional, but the default depends on how you got Remodex:

  • public GitHub/source checkouts stay open-source and self-host friendly, so they do not ship with a hosted relay baked in
  • official published packages may include a default relay at publish time
  • if you are running from source, assume you should use ./run-local-remodex.sh or set REMODEX_RELAY yourself

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm remodex

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229