본문으로 건너뛰기
Skillpedia
에이전트58k · #3234

cli-anything-ollama

하는 일

이 스킬은 AI 에이전트가 Ollama를 써서 사용자의 컴퓨터에서 AI 모델을 직접 실행하도록 합니다. 글을 개인 컴퓨터 안에 두고 싶은 사람에게 맞습니다.

사용하는 경우

  • ✓온라인 서비스에 글을 보내지 않고 AI 모델에게 질문하고 싶을 때.
  • ✓설치된 모델이 무엇이고 어떻게 설정되어 있는지 확인하고 싶을 때.
  • ✓검색이나 매칭 작업을 위해 임베딩을 만들고 싶을 때.

스킬 링크

https://github.com/HKUDS/CLI-Anything/blob/main/ollama/agent-harness/cli_anything/ollama/skills/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/CLI-Anything/blob/main/ollama/agent-harness/cli_anything/ollama/skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Ollama 모델로 이 비공개 회의록을 요약해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 컴퓨터에서 실행 중인 Ollama 서버에 요청을 보내고 답을 받아 옵니다. 스킬이 작동하려면 Ollama가 먼저 실행되어 있어야 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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-ollama

Prerequisites:

  • 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 list

REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

cli-anything-ollama
# Enter commands interactively with tab-completion and history

Command 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.2

Generate 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-stream

Chat

# 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.json

Embeddings

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 commands

Connect to Remote Host

cli-anything-ollama --host http://192.168.1.100:11434 model list

State 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 (--json flag): Structured JSON for agent consumption
# Human output
cli-anything-ollama model list

# JSON output for agents
cli-anything-ollama --json model list

For 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
자주 묻는 질문

Ollama가 실행 중이어야 하나요?

네. 스킬에는 ollama serve 명령으로 시작하는 Ollama 서버가 실행 중이어야 합니다.

새 모델을 내려받을 수 있나요?

네. pull 명령으로 Ollama 라이브러리에서 모델을 내려받을 수 있습니다.

지금 메모리에 올라온 모델을 볼 수 있나요?

네. 메모리에 현재 로드된 모델을 나열하는 명령이 있습니다.

상세 정보

작성자의 원본 설명

Command-line interface for Ollama - Local LLM inference and model management via Ollama REST API. Designed for AI agents and power users who need to manage models, generate text, chat, and create embeddings without a GUI.

repo: HKUDS/CLI-Anything

인기도

GitHub 스타
58k
순위
#3234
라이선스
Apache-2.0
업데이트
2026. 9. 21.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬