Skip to main content
July 8, 2026
Question

Support Ghostty for Universal Autofill / sudo autofill on macOS

  • July 8, 2026
  • 0 replies
  • 0 views

Hi 1Password team

 

Could you add Ghostty support to Universal Autofill for terminal password prompts on macOS?

 

Today Universal Autofill works for Terminal.app and iTerm2, but not Ghostty. 1Password’s docs say terminal autofill uses macOS Automation and accesses the active terminal session TTY to identify password fields.

 

Ghostty has added the missing pieces on its side:

  • Ghostty 1.3 added AppleScript automation: https://ghostty.org/docs/features/applescript
  • Ghostty PR #11922 adds `pid` and `tty` to the AppleScript terminal class, targeted for Ghostty 1.4.0: https://github.com/ghostty-org/ghostty/pull/11922
  • Ghostty’s bundle identifier is `com.mitchellh.ghostty`.

Once Ghostty 1.4.0 ships, the active terminal should be addressable like this:

tell application "Ghostty"
set term to focused terminal of selected tab of front window
get tty of term
input text "..." to term
end tell

Ghostty’s injection command is `input text`, while Terminal.app and iTerm2 expose different AppleScript commands, so I expect 1Password needs explicit Ghostty support rather than this working automatically.

 

I know 1Password is also adding native macOS AutoFill as a Credential Provider in beta, but this request is specifically for the terminal TTY flow: sudo prompts, local reauth prompts, and similar terminal password prompts. Native macOS AutoFill does not appear to replace Universal Autofill’s terminal-session TTY detection.

 

Concretely: please add `com.mitchellh.ghostty` as a supported Universal Autofill terminal, keyed off the `tty` property landing in Ghostty 1.4.0, using `input text ... to <terminal>` for injection. I’m happy to test beta builds against Ghostty 1.4.0 when it ships.