Skip to content

viveworker-dev/viveworker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

viveworker social preview

viveworker

npm version License

viveworker brings Codex Desktop to your iPhone.

When Codex needs an approval, asks whether to implement a plan, wants you to choose from options, or finishes a task while you are away from your desk, viveworker keeps all of that within reach on your phone. Instead of breaking your rhythm, it helps you keep vivecoding going from anywhere in your home or office.

Think of it as a local companion for Codex on your Mac: your Mac keeps building, and your iPhone keeps you in the loop.

Why It Feels Good

With viveworker, you can:

  • approve or reject actions the moment Codex asks
  • respond to Implement this plan? without walking back to your desk
  • answer multiple-choice questions quickly from your phone
  • review completions and jump back into the latest thread
  • get a Home Screen notification when Codex needs you

The point is simple: keep Codex moving, keep context close, and keep your momentum.

Best Fit

viveworker works best with:

  • Mac + iPhone
  • the same Wi-Fi or LAN
  • a trusted local network
  • the Home Screen web app with Web Push enabled

It gets even more fun with a Mac mini. Leave Codex running on a small always-on machine, and viveworker starts to feel like a local coding appliance: your Mac mini keeps building in the background while your iPhone handles approvals, plan checks, questions, and follow-up replies from anywhere in your home or office.

viveworker is designed for local use only. It is not intended for Internet exposure.

Mac mini Ideas

viveworker pairs especially well with a Mac mini.

You can use it as:

  • an always-on Codex station that stays running in the background
  • a way to keep approvals and plan checks moving even when you are away from your desk
  • a lightweight monitor for long-running coding or research tasks, where your iPhone only surfaces what needs your attention
  • a small local AI appliance for your home or office
  • a quick way to review a completion and send “do this next” back into the latest thread from your phone

Quick Start

For the full experience, start here:

npx viveworker setup --install-mkcert

If mkcert is already installed and trusted on your Mac, plain setup is enough:

npx viveworker setup

By default, viveworker uses port 8810. If that port is already in use, choose another one:

npx viveworker setup --port 8820

Recommended Setup Path

viveworker enables Web Push by default. The recommended first-time flow is:

  1. Run npx viveworker setup --install-mkcert on your Mac
  2. If macOS asks, allow the local CA install
  3. On your iPhone, open the printed rootCA.pem URL
  4. Install the certificate profile and trust it in iPhone certificate trust settings
  5. Open the printed pairing URL in Safari
  6. Pair your iPhone with the code if needed
  7. Add viveworker to your Home Screen
  8. Open the Home Screen app
  9. In Settings, tap Enable Notifications
  10. Tap Send Test Notification to verify delivery

During setup, viveworker prints:

  • a .local URL
  • a fallback IP-based URL
  • a rootCA.pem download URL
  • a short-lived pairing code
  • a pairing URL
  • a pairing QR code

After setup:

  • use the Home Screen app for daily use
  • use the pairing URL only for first-time setup or when you intentionally add another device
  • keep using the Home Screen app if you want notifications to work reliably

Common Commands

Use these commands most often:

  • npx viveworker setup create or refresh the local setup, generate pairing info, and start the app
  • npx viveworker start start viveworker again using the saved config
  • npx viveworker stop stop the local background service
  • npx viveworker status show the current app URL, launchd/background status, and health
  • npx viveworker doctor diagnose local setup problems when something is not working
  • npx viveworker setup --pair generate a fresh one-time pairing code and pairing URL for adding another device

Useful options:

  • --port <n> if 8810 is already in use
  • --install-mkcert to automate the local certificate setup
  • --disable-web-push only if you intentionally do not want notifications

--pair reissues only the short-lived pairing code and pairing URL. It does not change the main app URL, port, session secret, TLS, or Web Push settings. Use it only when you want to add another trusted iPhone or browser.

Questions and Limits

  • Multiple-choice questions are handled as a single item
  • Up to 5 questions are shown per page
  • 6 or more questions are split across multiple pages
  • Answers are submitted together on the final page
  • Questions that include Other or free text must be answered on your Mac

Security Model

  • use viveworker only on a trusted LAN
  • do not expose it directly to the Internet
  • if you lose a paired device, revoke it from Settings > Devices
  • use setup --pair only when you want to add another trusted device

Optional ntfy

ntfy is optional.

Start with viveworker and Web Push first. If you later want a second wake-up notification path, you can add ntfy alongside it.

Troubleshooting

  • If the .local URL does not open, use the printed IP-based URL
  • If pairing has expired, run npx viveworker setup --pair
  • If notifications do not appear, make sure you opened the Home Screen app, not just a Safari tab
  • If Web Push is enabled, make sure you are opening the HTTPS URL
  • If you are stuck, run:
npx viveworker status
npx viveworker doctor

Notes

  • viveworker stays local and runs on your Mac on the same LAN
  • Web Push still depends on the browser/platform push service
  • --install-mkcert can automate the Mac-side mkcert install and mkcert -install
  • macOS may still show an administrator prompt while installing the local CA
  • iPhone trust is still manual: you need to trust the local CA profile on the device
  • Web Push supports approvals, plans, multiple-choice questions, and completions

Roadmap

Planned next steps include:

  • Android support
  • Windows support
  • image attachment support from mobile

About

Local iPhone companion for Codex Desktop approvals, plan checks, questions, and notifications on your LAN.

Topics

Resources

License

Stars

Watchers

Forks

Contributors