
Cli Anything Ollama
- 415 installs
- 46.6k repo stars
- Updated August 3, 2026
- hkuds/cli-anything
cli-anything-ollama is an agent skill for the cli-anything-ollama CLI that runs and manages local Ollama models for developers who need pull, inference, chat, and embedding commands in build-time automation without custo
About
cli-anything-ollama is a hkuds/cli-anything skill wrapping the cli-anything-ollama Python package for local LLM operations via the Ollama REST API. Install with pip install cli-anything-ollama on Python 3.10+ while Ollama runs locally. Agents use it to pull models, list tags, generate text, run chat sessions, and create embeddings from terminal commands instead of hand-rolled HTTP clients. Reach for it when wiring on-device inference into CI checks, codegen scripts, or agent workflows that must stay offline or avoid cloud LLM costs.
- CLI control of local Ollama models
- Supports pull, run, and model listing flows
- On-device LLM for private agent tasks
- hkuds/cli-anything consistent command schema
- Reduces bespoke Ollama shell scripting
Cli Anything Ollama by the numbers
- 415 all-time installs (skills.sh)
- +17 installs in the week ending Aug 2, 2026 (Skillselion tracking)
- Ranked #1,937 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/hkuds/cli-anything --skill cli-anything-ollamaAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 415 |
|---|---|
| repo stars | ★ 46.6k |
| Last updated | August 3, 2026 |
| Repository | hkuds/cli-anything ↗ |
How do you call Ollama from agent shell workflows?
Run and manage local Ollama models from agent workflows: pull models, start inference, list tags, and wire on-device LLM calls into build-time automation without custom SDK glue.
Who is it for?
Developers automating local LLM tasks who want agent-ready Ollama commands instead of writing custom REST client code.
Skip if: Teams standardized on cloud-only OpenAI or Anthropic APIs without a local Ollama runtime should not use this skill.
When should I use this skill?
User asks to pull Ollama models, run local inference, chat, list tags, or generate embeddings from agent or shell automation.
What you get
Executed Ollama CLI commands, pulled model tags, local inference outputs, chat transcripts, and embedding vectors.
- Local inference outputs
- Model tag listings
- Embedding vectors
By the numbers
- Requires Python 3.10+
- Installed via pip install cli-anything-ollama
Files
cli-anything-ollama
Local LLM inference and model management via the Ollama REST API. Designed for AI agents and power users who need to manage models, generate text, chat, and create embeddings without a GUI.
Installation
This CLI is installed as part of the cli-anything-ollama package:
pip install cli-anything-ollamaPrerequisites:
- Python 3.10+
- Ollama must be installed and running (
ollama serve)
Usage
Basic Commands
# Show help
cli-anything-ollama --help
# Start interactive REPL mode
cli-anything-ollama
# List available models
cli-anything-ollama model list
# Run with JSON output (for agent consumption)
cli-anything-ollama --json model listREPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-ollama
# Enter commands interactively with tab-completion and historyCommand Groups
Model
Model management commands.
| Command | Description |
|---|---|
list | List locally available models |
show | Show model details (parameters, template, license) |
pull | Download a model from the Ollama library |
rm | Delete a model from local storage |
copy | Copy a model to a new name |
ps | List models currently loaded in memory |
Generate
Text generation and chat commands.
| Command | Description |
|---|---|
text | Generate text from a prompt |
chat | Send a chat completion request |
Embed
Embedding generation commands.
| Command | Description |
|---|---|
text | Generate embeddings for text |
Server
Server status and info commands.
| Command | Description |
|---|---|
status | Check if Ollama server is running |
version | Show Ollama server version |
Session
Session state commands.
| Command | Description |
|---|---|
status | Show current session state |
history | Show chat history for current session |
Examples
List and Pull Models
# List available models
cli-anything-ollama model list
# Pull a model
cli-anything-ollama model pull llama3.2
# Show model details
cli-anything-ollama model show llama3.2Generate Text
# Stream text (default)
cli-anything-ollama generate text --model llama3.2 --prompt "Explain quantum computing in one sentence"
# Non-streaming with JSON output (for agents)
cli-anything-ollama --json generate text --model llama3.2 --prompt "Hello" --no-streamChat
# Single-turn chat
cli-anything-ollama generate chat --model llama3.2 --message "user:What is Python?"
# Multi-turn chat
cli-anything-ollama generate chat --model llama3.2 \
--message "user:What is Python?" \
--message "user:How does it compare to JavaScript?"
# Chat from JSON file
cli-anything-ollama generate chat --model llama3.2 --file messages.jsonEmbeddings
cli-anything-ollama embed text --model nomic-embed-text --input "Hello world"
cli-anything-ollama embed text --model nomic-embed-text --input "Hello" --input "World"Interactive REPL Session
Start an interactive session for exploratory use.
cli-anything-ollama
# Enter commands interactively
# Use 'help' to see available commandsConnect to Remote Host
cli-anything-ollama --host http://192.168.1.100:11434 model listState Management
The CLI maintains lightweight session state:
- Current host URL: Configurable via
--host - Chat history: Tracked for multi-turn conversations in REPL
- Last used model: Shown in REPL prompt
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
--jsonflag): Structured JSON for agent consumption
# Human output
cli-anything-ollama model list
# JSON output for agents
cli-anything-ollama --json model listFor AI Agents
When using this CLI programmatically:
1. Always use `--json` flag for parseable output 2. Check return codes - 0 for success, non-zero for errors 3. Parse stderr for error messages on failure 4. Use `--no-stream` for generate/chat to get complete responses 5. Verify Ollama is running with server status before other commands
More Information
- Full documentation: See README.md in the package
- Test coverage: See TEST.md in the package
- Methodology: See HARNESS.md in the cli-anything-plugin
Version
1.0.1
Related skills
FAQ
How do you install cli-anything-ollama?
Install cli-anything-ollama with pip install cli-anything-ollama on Python 3.10 or newer, with the Ollama daemon installed and running locally for REST API access.
What Ollama operations does cli-anything-ollama support?
cli-anything-ollama supports model management, text generation, chat sessions, and embedding creation through CLI commands mapped to the Ollama REST API for agent and power-user workflows.