Skip to content

noppefoxwolf/PrivateComputeCloud

Repository files navigation

PrivateComputeCloud

A command-line tool for interacting with AI models using macOS Shortcuts app.

Installation

swift package experimental-install

After installation, add to your PATH:

export PATH="$PATH:$HOME/.swiftpm/bin"

Uninstallation

swift package experimental-uninstall private-compute-cloud

Usage

private-compute-cloud "Enter your question or prompt here" --id "Shortcut ID"

Getting Shortcut ID

shortcuts list --show-identifiers

Example

private-compute-cloud "Hello, how are you?" --id "4F483023-EAF4-4CB2-A868-367FC31F24E0"

Requirements

  • macOS 26 or later
  • Swift 6.2 or later
  • Corresponding shortcut must be configured in the Shortcuts app

Setting up Shortcuts

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:

  1. Open the Shortcuts app on your Mac
  2. 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)

Shortcut Configuration

  1. Save the shortcut with a meaningful name
  2. Get the shortcut ID using shortcuts list --show-identifiers

How it works

This tool operates in the following steps:

  1. Write the input prompt to a temporary file
  2. Execute the specified shortcut using macOS shortcuts command
  3. Read and display the shortcut output

License

MIT License

About

A Swift command-line tool for interacting with AI models through macOS Shortcuts app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages