Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

llm-cli

Skill by glebis

Processes text and files with LLM providers through the llm CLI. It is for users who want to pick between OpenAI, Anthropic, Gemini or Ollama models, in one-off or interactive mode.

  • Score 70
  • 416 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install llm-cli

Built from the published package, never by AI.

git clone --depth 1 https://github.com/glebis/claude-skills /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/llm-cli ~/.claude/skills/llm-cli

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install llm-cli in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

llm-cli is a skill that lets an AI assistant process textual and multimedia input with LLM providers through the llm command-line tool. It names OpenAI, Anthropic, Google Gemini and Ollama as supported providers and lists model aliases such as claude-opus and gpt-4o. Input can come from stdin, a file path or inline text, and the skill covers both one-off runs and interactive conversation modes.

The skill checks environment variables for provider API keys and remembers the last model chosen in a JSON config file under ~/.claude. When a model is ambiguous it shows a selection menu, and it falls back to inline text if a file cannot be read. It is aimed at users who want to choose between several LLMs for document work, text analysis or chat, including local Ollama models.

Written from the project's SKILL.md and checked against it.

What it can do

  • Provider detectionChecks environment variables for OpenAI, Anthropic, Google and Ollama settings.
  • Model selectionAccepts model and provider aliases and shows a menu when the choice is ambiguous.
  • Input processingTakes stdin, file paths or inline text as input.
  • Non-interactive modeRuns a single prompt and returns the result.
  • Interactive modeKeeps a conversation loop open with the selected model.
  • Config persistenceSaves the last used model to a JSON config file under ~/.claude.
  • Slash commandSupports a /llm command with optional --model and --interactive flags.

What you need

  • An API key for at least one provider (OpenAI, Anthropic, Google) or an Ollama base URL
  • The llm CLI installed

Try asking

  • Process this file with Claude
  • Start an interactive chat with OpenAI
  • Use Gemini to summarize this document

Good to know

  • Only the SKILL.md file is included, so the Python modules it lists are not in the source
  • The model list is written into the skill text and may need manual updates

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: llm-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • .claude-plugin/plugin.json289 B
  • FILES.md9 KB
  • GROQ_INTEGRATION.md6 KB
  • IMPLEMENTATION_SUMMARY.md9 KB
  • INSTALL.md5 KB
Show all 17 files
  • OPENROUTER_INTEGRATION.md10 KB
  • QUICKSTART.md3 KB
  • QUICK_REFERENCE.md6 KB
  • README.md7 KB
  • SKILL.md6 KB
  • START_HERE.md7 KB
  • executor.py5 KB
  • input_handler.py5 KB
  • llm_skill.py7 KB
  • models.py8 KB
  • providers.py5 KB
  • requirements.txt143 B

Alternatives to llm-cli

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

llm-cli: common questions

Which LLM providers does llm-cli support?

The source lists OpenAI, Anthropic, Google Gemini and Ollama, with aliases such as openai, claude, gemini and local.

Where is the selected model saved?

The last used model is stored in ~/.claude/llm-skill-config.json.

How does it decide which model to use?

It uses a model named in the request if one is given, shows a menu when the choice is ambiguous, and otherwise uses the last remembered choice.

How do I install llm-cli?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is llm-cli free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is llm-cli safe to use?

It scores 70 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to llm-cli?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

llm-cli Install

Add to stack

Loading.