Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 1.46 KB

File metadata and controls

76 lines (51 loc) · 1.46 KB

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.