An Alfred workflow to interact with Amazon Bedrock models directly from Alfred.
- Alfred 5+ with Powerpack
- Node.js 24+
- Amazon Bedrock API key (bearer token)
- Download
alfred-bedrock-workflow.alfredworkflowfrom the releases page - Double-click to install in Alfred
- Configure your API key in the workflow settings
- Clone this repository
- Install dependencies:
pnpm install
- Build the workflow package:
pnpm workflow:build
- Double-click
bedrock.alfredworkflowto install
Configure the following variables in Alfred workflow settings:
| Variable | Required | Description |
|---|---|---|
token |
Yes | Bedrock API bearer token |
model |
No | Select from dropdown (default: Claude Haiku 4.5 EU) |
default_lang |
No | Default target language for translations (e.g., en, fr, de) |
Region is auto-detected from the model prefix.
- Open Alfred
- Type
bedrockfollowed by your question - Press Enter to view response
- Open Alfred
- Type
aspellfollowed by text to correct - Press Enter to view corrected text
The spell checker preserves the original language and formatting while fixing spelling and grammar errors.
- Open Alfred
- Type
translatefollowed by text to translate - Use
:langprefix to specify target language (optional)
Examples:
translate Hello world→ translates to default languagetranslate :fr Hello world→ translates to Frenchtranslate :de Bonjour le monde→ translates to German
Select text anywhere in macOS and use Alfred's Universal Actions (default: ⌘⌥\) to access:
- Ask Bedrock: Send selected text to Bedrock AI
- Spell Check with Bedrock: Correct spelling and grammar
- Translate with Bedrock: Translate selected text
Configure custom hotkeys in Alfred to trigger commands with selected text:
- Open the workflow in Alfred
- Double-click on a Hotkey trigger
- Set your preferred keyboard shortcut
Available hotkeys:
- Bedrock query with selection
- Spell check with selection
- Translate with selection
- Enter: View response in Text View (markdown)
- Cmd + Enter: Copy response to clipboard
- Opt + Enter: Paste response directly
- Persistent conversations: Your chat history is saved between sessions
- Multi-turn support: Continue conversations with follow-up questions
- Markdown rendering: Responses are formatted with Markdown
Available models in the dropdown:
| Model | Region |
|---|---|
| Claude Haiku 4.5 | EU |
| Claude Sonnet 4 | EU |
| Claude Haiku 4.5 | US |
| Claude Sonnet 4 | US |
MIT