Inbox AI
  • Introduction
  • Quick Start
  • Hotkeys / Triggers
  • AI providers
  • Voice Commands
  • Screenshots
  • Watch Directories
  • Email Processing
  • Handle Incoming Calls
  • Actions
    • Custom Actions
      • Ask AI
      • Make API Request
      • Terminal Command
      • Multiple Choice
      • Group
    • Built-in Actions
      • Mail Actions
        • Mark as Read
        • Mark as Unread
        • Set Flag
        • Set Background Color
        • Move to Junk
        • Move to Archive
        • Move to Trash
      • Flow Control
        • Return Result to Previous AI
      • System Actions
        • Copy to Clipboard
        • Get Selected Text
        • Take Screenshot
        • Paste at Cursor
        • Speak Text
        • Send Notification
        • Add Apple Reminder
      • Do Nothing
    • Folder
    • Next Action Field
    • Action Variables
    • Export
  • Templating
  • Transcription
  • Logging
  • Limits
  • Troubleshooting
  • Advanced Settings
  • Integrations
    • AppleScript
    • Tana
    • Apple Notes
    • Reflect
    • Apple Shortcuts
    • Raycast
    • X-Callback-URL
Powered by GitBook
On this page
  • Security Sandbox
  • Circumventing the Sandbox
  1. Actions
  2. Custom Actions

Terminal Command

PreviousMake API RequestNextMultiple Choice

Last updated 6 months ago

Terminal commands can be used to execute applications or call X-Callback-URL's on your Mac or through SSH (on a remote machine or your own Mac to circumvent the security sandbox).

The example above calls the open command, with some Action Variables. For more information on how actions work in general, check the Actions page.

Security Sandbox

In general any here-doc (<<<) or piping (|) might cause issues with the security sandbox. See below for more information of circumventing these limitations.

Most terminal commands will work without a problem, but if you want to write or read information from a file, you will need to allow Inbox AI access to the directory (or the directory above it). To do this, go to "Advanced", and select the sandbox folder.

You have access to some useful Templating options like {{ run.id }} and {{ dir.tmp }} for advanced use cases.

Note a powerful use case for terminal commands is running AppleScript.

Circumventing the Sandbox

Circumventing the sandbox opens you up to more risk as the AI can access deeper features on your computer. As a general note, we recommend against given the AI full access to your terminal by giving it blanket access to your terminal, but if you want, you can. Rather, make multiple more confined commands.

Porting your terminal commands through SSH will circumvent the sandbox. Enable the SSH option, fill in your machine's username/password and hostname (localhost for your own machine). Make sure you have enabled "remote login" under system settings on your mac.

An example Terminal Command
Set the Terminal Command Sandbox
In System Settings, under Sharing, Enable Remote Login.