Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Shell function to open URLs in Kagi Summarizer

Tools #shell #kagi #search #summarizer #zsh #automation

I’m a fan and an avid user of Kagi Search. I’m an Ultimate plan subscriber and use their Summarizer frequently.

I needed a way to quickly open URLs in the Kagi Summarizer from my terminal. I wrote a small shell function to do that:

ksum() {
  local urlenc=$(jq -rn --arg x "$1" '$x|@uri')
  open "https://kagi.com/summarizer/index.html?target_language=&summary=takeaway&url=${urlenc}"
}