Skip to content

VictorTaelin/AI-scripts

Repository files navigation

Taelin AI Scripts

Some AI scripts I use daily.

For VIM integration, this is my messy vimrc. Use Sonnet to extract the relevant functions for you (:

This repo in general is kinda gambiarra. Opus-4 might clean it up

Usage

Just npm install -g and run the given command the terminal.

You'll need to add Anthropic/OpenAI keys to a location. The CLI will inform where.

Note

Most of this scripts will save a log to ~/.ai. If you don't want this behavior, edit the scripts to suit your needs. (TODO: add a proper option.)

Using OpenRouter

To add fzf completion for openrouter models, put this in .bashrc or similar:

_fzf_complete_chatsh() {
  _fzf_complete --multi --reverse --prompt="chatsh> " -- "$@" < <(
    curl -s https://openrouter.ai/api/v1/models | jq -r '.data[].id' | sed 's/^/openrouter:/'
  )
}
[ -n "$BASH" ] && complete -F _fzf_complete_chatsh -o default -o bashdefault chatsh

Then type:

$ chatsh **<tab>

LICENSE

Everything here is MIT-licensed.