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

cli-anything-ollama

Skill by HKUDS

cli-anything-ollama is a command-line interface for managing local LLMs and running inference through the Ollama REST API. It is built for AI agents and power users who want to work without a GUI.

  • Score 91
  • 67k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cli-anything-ollama

Built from the published package, never by AI.

git clone --depth 1 https://github.com/HKUDS/CLI-Anything /tmp/CLI-Anything && mkdir -p ~/.claude/skills && cp -r /tmp/CLI-Anything/ollama/agent-harness/cli_anything/ollama/skills ~/.claude/skills/cli-anything-ollama

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

Step-by-step: install cli-anything-ollama in Claude Code

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

About

cli-anything-ollama is a command-line interface for Ollama, a tool for local LLM inference. It works through the Ollama REST API and covers model management, including listing, showing, pulling, removing, copying and checking loaded models. It also generates text, runs chat completions, and creates embeddings. The --host option lets it connect to a remote Ollama host.

Every command supports a human-readable default output and a --json flag for structured output. The source says it is designed for AI agents and power users who need to work without a GUI. It also offers an interactive REPL with tab-completion and history, and it keeps lightweight session state such as the host URL, chat history and the last used model. It is installed with pip and requires Python 3.10+ and a running Ollama server.

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

What it can do

  • Model managementList, show, pull, remove, copy and check models loaded in memory.
  • Text generationGenerate text from a prompt, streaming by default or with --no-stream.
  • ChatSend single-turn or multi-turn chat requests, or load messages from a JSON file.
  • EmbeddingsGenerate embeddings for one or more text inputs with an embedding model.
  • Server statusCheck whether the Ollama server is running and show its version.
  • Session stateShow current session state and chat history for the REPL.
  • Interactive REPLEnter commands interactively with tab-completion and history.

What you need

  • Python 3.10+
  • Ollama installed and running (ollama serve)

Try asking

  • List the Ollama models installed on this machine.
  • Create embeddings for this text with nomic-embed-text.
  • Ask llama3.2 a question and return the response as JSON.

Good to know

  • Ollama must be installed and running before other commands work.

Security check

A

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

Checked automatically: ollama/agent-harness/cli_anything/ollama/skills/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB

Alternatives to cli-anything-ollama

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

cli-anything-ollama: common questions

Does cli-anything-ollama need a GUI?

No. The source says it is designed to manage models, generate text, chat and create embeddings without a GUI.

Can it connect to a remote Ollama server?

Yes. The --host option sets the server URL, for example http://192.168.1.100:11434.

How can an agent get machine-readable output?

Add the --json flag, use --no-stream for complete responses, and check return codes for success or failure.

How do I install cli-anything-ollama?

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

Is cli-anything-ollama free?

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

Is cli-anything-ollama safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. 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 cli-anything-ollama?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

cli-anything-ollama Install

Add to stack

Loading.