Open files and folders from the browser via ope:// URLs.
For example ope://~/Downloads
brew install blemli/tap/opescoop bucket add blemli https://github.com/blemli/blemli-bucket
scoop install opeDownload the binary from Releases and run:
chmod +x ope
sudo cp ope /usr/local/bin/
ope installgo install github.com/blemli/ope@latest
ope installOpen a folder in your file manager:
ope:///Users/me/Documents
Open a specific file:
ope:///Users/me/notes.txt
Use in HTML links:
<a href="ope:///tmp">Open /tmp</a>ope <ope://url> Open a file or folder
ope install Register ope:// URL scheme
ope uninstall Unregister ope:// URL scheme
ope config Show configuration
ope version Print version
On first use, ope creates a config file with a blocklist of dangerous extensions (.exe, .bat, .cmd, etc.). When opening an unknown file type, a confirmation dialog asks you to:
- Allow Once — open this time only
- Always Allow — add to allowlist
- Block — add to blocklist
Config location:
- macOS:
~/Library/Application Support/ope/ope.yml - Windows:
%APPDATA%\ope\ope.yml - Linux:
~/.config/ope/ope.yml
make build # Build for current platform
make build-macos # Universal macOS binary + Ope.app
make build-windows # Windows binary
make build-linux # Linux binaries (amd64 + arm64)
make test # Run tests
make icons # Generate icons from SVGMIT