LLamb logo

LLaMB

The command-line tool for interacting with Large Language Models. Fast, secure, and supports multiple providers.

llamb@macbook:~$
npm install -g llamb
View on GitHub

Features

llamb@macbook:~$
Usage: llamb [options] [command] [question...] Ask a question to the LLM Options: -V, --version output the version number -m, --model <model> Specify the model to use -p, --provider <provider> Specify the provider to use -u, --baseUrl <baseUrl> Specify a custom base URL for this request -s, --stream Stream the response as it arrives (default: true) -n, --no-history Do not use conversation history for this request -f, --file <path> Path to a file to include with your question -o, --output [path] Save the response to a file (will prompt for filename) --overwrite Overwrite existing files without prompting -h, --help display help for command Commands: providers List configured LLM providers provider:add Add or update a provider configuration provider:apikey Update API key for a provider provider:default Set the default provider models [options] List available models for a provider model:default [options] Set the default model for a provider context:clear Clear the current conversation context context:new Start a new conversation context context:history Display the current conversation history context:debug Display terminal and session debugging information Examples: $ llamb "What is the capital of France?" Ask a simple question $ llamb -f script.js "Explain this code" Include a file with your question $ llamb "Summarize this" -f document.txt Process file contents $ llamb "Generate JSON" -o Save response (prompts for filename) $ llamb "Generate JSON" -o result.json Save response to a specific file $ llamb -n "What is 2+2?" Ask without using conversation history $ llamb /history View conversation history $ llamb /clear Clear conversation history $ llamb /new Start a new conversation $ llamb /debug Show terminal session debug info $ llamb /model Change the default model for current provider $ llamb model:default Select default model for the current provider $ llamb model:default -p openai Select default model for a specific provider

Get Started with LLaMB

llamb@macbook:~$
npm install -g llamb

For full documentation, visit the npm page or GitHub.