A command-line tool for interacting with AI models using macOS Shortcuts app.
swift package experimental-installAfter installation, add to your PATH:
export PATH="$PATH:$HOME/.swiftpm/bin"swift package experimental-uninstall private-compute-cloudprivate-compute-cloud "Enter your question or prompt here" --id "Shortcut ID"shortcuts list --show-identifiersprivate-compute-cloud "Hello, how are you?" --id "4F483023-EAF4-4CB2-A868-367FC31F24E0"- macOS 26 or later
- Swift 6.2 or later
- Corresponding shortcut must be configured in the Shortcuts app
To use this tool, you need to create a shortcut in the Shortcuts app that integrates with AI models. Here's how to set it up:
- Open the Shortcuts app on your Mac
- Create a new shortcut with the following actions:
- Get Text from Input (receives text from shared sheet)
- Private Cloud Computing (uses the AI model)
- Stop and Output (returns the response)
- Save the shortcut with a meaningful name
- Get the shortcut ID using
shortcuts list --show-identifiers
This tool operates in the following steps:
- Write the input prompt to a temporary file
- Execute the specified shortcut using macOS
shortcutscommand - Read and display the shortcut output
MIT License
