Skip to content

markusloffler/alfred-claude-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude CLI for Alfred icon  Claude CLI for Alfred

An Alfred workflow that sends a prompt to the Claude CLI and renders the answer as Markdown — right inside Alfred.

👍 No API key or token billing - requests go through your existing Claude CLI login, so they use your current Claude plan (e.g. Pro/Max). There's no separate API key to manage and no per-token API charges to set up for this workflow.

Usage

Type cla followed by your prompt:

cla explain recursion in one line
cla write a git command to undo the last commit but keep the changes
cla summarise the difference between TCP and UDP

Typing a prompt after the cla keyword

Press Enter. The prompt is shown on top, followed by Claude's Markdown answer.

Claude's Markdown answer rendered inside Alfred

Requirements

  • macOS with Alfred 5.5 or later and the Powerpack (the Text View used to render answers was introduced in Alfred 5.5)
  • The Claude CLI installed and authenticated (check the path with which claude)

Install

  1. Download the latest alfred-claude-cli-vX.Y.Z.alfredworkflow from the Releases page.
  2. Double-click it to import into Alfred.
  3. Open the workflow's configuration and set:
    • Claude CLI Path — path to your claude binary (default ~/.local/bin/claude; find yours with which claude)
    • Model — the model to use (default sonnet)

License

MIT

Credits

Based on learnings from truongvinht/alfred-claude-workflow.

About

An Alfred workflow to process prompts via Claude CLI

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages