llm
last updated: Mar 13, 2024
https://github.com/simonw/llm
https://llm.datasette.io/en/stable/index.html
Simonw's llm tool for the command line.
I wrote my own gpt wrapper that I use for gpt, but I wanted to try out anthropic and I'm way too lazy to update it, so I thought I'd give Simon's tool a shot.
Setup:
brew install llmllm install llm-claude-3- Installs the llm-claude-3 plugin
- I wish the CLI could list/search plugins
- I found the plugin name here
llm keys set claudeand paste the claude API key from here- I didn't read the plugin readme, and added a key with the wrong name, but unfortunately there's no
llm keys removecommand
- I didn't read the plugin readme, and added a key with the wrong name, but unfortunately there's no
llm models default claude-3-sonnet
Now claude-3-sonnet (the middle tier claude 3 model, it goes haiku < sonnet < opus) is set as the default model and you can chat with llm 'prompt goes here'.
-cto continue a conversation; my tool has the opposite default, but I think this makes more sense.-sto give a system promptllm chatto have an interactive chat,llm chat -cto continue from the previous prompt
Backlinks: