Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for LLM CLI utility #475

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dasevilla
Copy link

Overview

Add a shell plugin to support LLM:

A CLI utility and Python library for interacting with Large Language Models, both via remote APIs and models that can be installed and run on your own machine.

Depending on your usage, LLM needs access to several API keys that should be best kept in 1Password. This plugin supports importing from the keys.json file and provisions keys using environment variables. Instead of a 1Password item per service, this uses a single entry with a field per LLM API.

Example entry:

2024-07-21-screenshot-nZHgduWx

Type of change

  • Created a new plugin
  • Improved an existing plugin
  • Fixed a bug in an existing plugin
  • Improved contributor utilities or experience

How To Test

Once you've installed the plugin, you can import your existing keys.json using op plugins init llm and follow the prompts.

Once setup, you can invoke llm:

llm "Why should developers use the 1Password cli?"
llm -m claude-3-haiku "Pitch my boss on adopting 1Password"

Changelog

Add shell plugin for LLM CLI utility.

@dasevilla
Copy link
Author

Hmm, based on the CONTRIBUTING.md, this might be out of scope:

CLIs that authenticate to multiple different platforms depending on the project are also out of scope at this stage

If so, feel free to close and I'll continue to use it locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant