Install on macOS
Step-by-step instructions for installing the Qoc CLI on macOS using the install script or the Homebrew-style tap.
Install qoc on macOS in under two minutes using the official install script or the Homebrew-style tap — both deliver a verified, auto-updating binary.
Prerequisite: Node 20+
Confirm node --version returns v20 or later before proceeding. If not, install Node via brew install node or the official installer at nodejs.org.
Option A — install script (recommended)
- 1
Run the install script
Open Terminal and run the one-line installer. It downloads the latest signed binary, places it in
/usr/local/bin/qoc, and verifies the checksum automatically. - 2
Confirm the binary is on your PATH
Run
which qoc. You should see/usr/local/bin/qoc. If the shell cannot find it, add/usr/local/binto yourPATHin~/.zshrcand reload withsource ~/.zshrc. - 3
Start the desk service
Run
qoc upto start the local service. It binds tolocalhost:7070and writes a PID file to~/.qoc/service.pid. Leave this terminal session open or run it in the background withqoc up --daemon. - 4
Verify the installation
Open a new terminal tab and run
qoc status. You should see the version number andservice runningin the output.
Install script command
curl -fsSL https://qoc.app/install.sh | bashOption B — Homebrew-style tap
- 1
Add the Qoc tap
Run
brew tap qoc-app/qocto register the tap. This only needs to be done once per machine. - 2
Install the formula
Run
brew install qoc. Homebrew resolves the Node dependency automatically if it is not already present. - 3
Start and verify
Run
qoc upand thenqoc statusin a new terminal to confirm the service is running.
Homebrew tap commands
brew tap qoc-app/qoc
brew install qoc
qoc up
qoc statusFirst-run checks
On first launch, macOS Gatekeeper may prompt you to confirm the binary is safe to run. Open System Settings → Privacy & Security and click Allow Anyway next to the qoc entry, or run xattr -d com.apple.quarantine /usr/local/bin/qoc to clear the quarantine flag from the command line.
The service writes logs to ~/.qoc/logs/service.log. If qoc up exits immediately, check that file for a port conflict — you can change the default port in desk.toml under the [workspace] section.
Auto-updates via tap
If you installed via the Homebrew tap, brew upgrade qoc updates to the latest release. If you used the install script, re-run it to upgrade — it is idempotent and will not overwrite your workspace.