Skip to content

aktagon/clify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clify

Build Status Release

Natural language to shell commands. Powered by Claude.

Demo

Install

brew tap aktagon/clify https://github.com/aktagon/clify
brew install clify
clify setup   # paste your Anthropic API key

From source:

git clone https://github.com/aktagon/clify && cd clify && go build -o clify

Use

clify "find large files in current directory"
🟡 find . -type f -size +100M -exec ls -lh {} \;
    Find files larger than 100MB and show their sizes

🟢 du -ah . | sort -hr | head -20
    Show top 20 largest files and directories by size

🟢 ls -laSh | head -20
    List files sorted by size (largest first)

Interactive mode (autocomplete, history):

clify

Configure

~/.clify/config.yaml:

api_key: "sk-ant-..."
cache_file: "~/.clify/cache.json"
model: "<claude-model-id>"

ANTHROPIC_API_KEY overrides the config file.

Behavior

  • Caches responses locally. No duplicate API calls.
  • Detects Linux, macOS, or Windows and adapts commands.
  • Returns ranked alternatives, not a single guess.

Build

Requires Go 1.21+.

go build -o clify   # or: make build
go test ./...

Built by Aktagon. Applied AI for regulated markets.