Skip to main content

Access large language models from the command-line

Project description

LLM

PyPI Documentation Changelog Tests License

Access large language models from the command-line

Full documentation: llm.datasette.io

See llm, ttok and strip-tags—CLI tools for working with ChatGPT and other LLMs for more on this project.

Installation

Install this tool using pip:

pip install llm

Or using Homebrew:

brew install simonw/llm/llm

Detailed installation instructions.

Getting started

First, create an OpenAI API key and save it to the tool like this:

llm keys set openai

This will prompt you for your key like so:

$ llm keys set openai
Enter key:

Now that you've saved a key you can run a prompt like this:

llm "Five cute names for a pet penguin"
1. Waddles
2. Pebbles
3. Bubbles
4. Flappy
5. Chilly

Read the usage instructions for more.

Help

For help, run:

llm --help

You can also use:

python -m llm --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm-0.4.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm-0.4.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file llm-0.4.1.tar.gz.

File metadata

  • Download URL: llm-0.4.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for llm-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1bafc4ade57bd7557dad4a7cffb406c7054906ff698109cb6aa996d3f53d41a9
MD5 544b8e8421a12b8330f03803e2e24d15
BLAKE2b-256 3094ba05f27ac047bc1bbed83ce59c1db040a7a8547c60330a636d501893082e

See more details on using hashes here.

File details

Details for the file llm-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: llm-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for llm-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18df92f5956193da1e4d63c217a8dc2debf758c6cd5ffb517285ed574e033e8e
MD5 bb5d136bd0b70a5cf377d2bd5ab675de
BLAKE2b-256 3e56ab6ebf97834443900f87d7b0b50d0740422466dcd335c9e221a18ec316d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page