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.
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-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/glebis/claude-skills /tmp/claude-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-skills/llm-cli ~/.gemini/antigravity-cli/skills/llm-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
