Installing PRIMA Bot
You install PRIMA Bot from Terminal on the Mac, in six steps. Check every item on Before You Start first.
Step 1, Get the Files
Section titled “Step 1, Get the Files”The PRIMA Bot repository on GitHub is private. Ask for access through Getting Help and include your GitHub username, then accept the invitation that arrives by email.
- In Terminal, move to the folder that will hold the files, such as your
Developerfolder, withcdfollowed by the folder’s path. - Run the command below, which copies the repository to your Mac.
git clone https://github.com/larrygmaguire-hash/prima-bot-remote-server- Run
cd prima-bot-remote-serverto move into the new folder. It holdsinstall.sh,uninstall.sh,config.exampleand thebinandlaunchdfolders.
Step 2, Answer the One-Time Question
Section titled “Step 2, Answer the One-Time Question”The first time Claude Code connects a folder to Remote Control, it asks you to confirm. The background service has no window, so it cannot answer for you, and you answer once by hand.
- In Terminal, move to your workspace folder with
cdfollowed by the folder’s path. - Run the command below, which starts Remote Control in that folder.
claude remote-control --name "My Workspace"- If Claude Code asks whether to trust the folder, type
yand press Return. - When it asks
Enable Remote Control? (y/n), typeyand press Return to switch the feature on. - When a link that starts with
https://claude.aiappears, press Control and C to stop it.
Claude Code saves both answers, so the background service starts without asking again.
Step 3, Turn On Phone Notifications
Section titled “Step 3, Turn On Phone Notifications”Notifications tell you when a session has finished or needs your answer.
- Run
claudein your workspace folder, which opens Claude Code on the Mac. - Type
/configand press Return to open the list of Claude Code settings. - Turn on Push when Claude decides and Push when actions required.
- Once both settings are on, type
/exitand press Return to close Claude Code.
Step 4, Install the Service
Section titled “Step 4, Install the Service”Go back to the PRIMA Bot folder in Terminal and run the installer.
./install.shThe installer copies the launcher to ~/.local/bin, writes a starter settings file and writes the LaunchAgent. It starts nothing yet.
Step 5, Set Your Workspace and Start PRIMA Bot
Section titled “Step 5, Set Your Workspace and Start PRIMA Bot”- Open the settings file in TextEdit with the command below.
open -e ~/.config/prima-bot-remote-server/config- Set
WORKSPACE_DIRto the full path of your workspace folder, inside the quotation marks. - Set
SESSION_NAMEto the name you want to see in the Claude app, such asMy Workspace. - Save the file, then close TextEdit so the installer can read it.
- Load and start the background service by running the command below in the PRIMA Bot folder.
./install.sh --loadRun screen -ls to check it, and look for a line that contains prima-bot, which means PRIMA Bot is running. Configuration explains every setting in the file.
Step 6, Test It With Everything Closed
Section titled “Step 6, Test It With Everything Closed”- Quit Terminal and every other app on the Mac, and leave the Mac switched on.
- Open the Claude app on your phone, open the menu and choose Code.
- Tap your Mac in the list, then tap New session.
- Ask for something that uses the folder, such as “Make a file called test.txt with today’s date in it.”
- Back at the Mac, open your workspace folder in Finder and check that the file is there.
The setup is complete when the file appears.
What Gets Installed
Section titled “What Gets Installed”| Item | Location |
|---|---|
| Launcher | ~/.local/bin/prima-bot-remote-server |
| Settings | ~/.config/prima-bot-remote-server/config |
| LaunchAgent | ~/Library/LaunchAgents/com.<your-user-name>.prima-bot-remote-server.plist |
| Log | ~/Library/Logs/prima-bot-remote-server/launchd.log |
Running ./install.sh again replaces the launcher and the LaunchAgent and keeps your settings file.
Keep the Mac Ready
Section titled “Keep the Mac Ready”- Power cuts. In System Settings, look under Energy for the option to start up after a power failure, and switch it on.
- FileVault. When FileVault disk encryption is on, the Mac waits at the password screen after a restart. PRIMA Bot starts only after you log in, so plan to log in once after any restart.
- Internet. Remote Control stops after about ten minutes without a connection. macOS starts PRIMA Bot again a minute later, and it reconnects when the internet returns.

