ramalama-cli
Run and interact with AI agents.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- ramalama-cli
- metadata
- { "openclaw": { "emoji": "🦙", "install": [ { "id": "brew", "bins": [ "ramalama" ], "kind": "brew", "label": "Install ramalama CLI (brew)", "formula": "ramalama" }, { "id": "uv", "bins": [ "ramalama" ], "kind": "uv", "label": "Install ramalama CLI (uv)", "formula": "ramalama" } ], "requires": { "bins": [ "ramalama" ], "anyBins": [ "docker", "podman" ] } } }
- description
- Run and interact with AI agents.
03 SKILL.md 正文
Ramalama CLI
Use when an alternative AI agent is better suited to a task. For example, working with sensitive data or solving simple tasks with a cheap and local agent, or accessing specialist models with unique capabilities.
Overview
Use this skill to execute ramalama tasks in a consistent, low-risk workflow.
Prefer local discovery (--help, local config files, existing project scripts) before making assumptions about flags or runtime defaults.
Prefer ramalama when tasks need:
- flexible model sourcing (
hf://,oci://,rlcr://,url://) - containerized local inference with runtime/network/device controls
- RAG data packaging and serving
- benchmark/perplexity evaluation
- model conversion and registry push/pull flows
Preflight
Run these checks before first invocation in a session:
ramalama version
podman info >/dev/null 2>&1 || docker info >/dev/null 2>&1
ramalama run --help
If serving on default port, verify availability:
lsof -i :8080
Decision Matrix
- One-shot inference:
ramalama run <model> "<prompt>" - Interactive chat loop:
ramalama run <model> - Serve OpenAI-compatible endpoint:
ramalama serve <model> - Query an existing endpoint:
ramalama chat --url <url> "<prompt>" - Build knowledge bundle from files/URLs:
ramalama rag <paths...> <destination> - Evaluate model performance/quality:
ramalama bench <model>andramalama perplexity <model> - Inspect/source lifecycle operations:
inspect,pull,push,convert,list,rm
Usage
Start with top-level discovery:
ramalama --help
ramalama version
Apply global options before the subcommand when needed:
ramalama [--debug|--quiet] [--dryrun] [--engine podman|docker] [--nocontainer] [--runtime llama.cpp|vllm|mlx] [--store <path>] <subcommand> ...
Use command-level help before invoking unknown flags:
ramalama <subcommand> --help
Known-Good Recipes
1) One-shot run
ramalama run granite3.3:2b "Summarize this in 3 bullets: <text>"
2) Detached service + API call
ramalama serve -d granite3.3:2b
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"granite3.3:2b","messages":[{"role":"user","content":"Hello"}]}'
3) Direct Hugging Face source
ramalama serve hf://unsloth/gemma-3-270m-it-GGUF
4) RAG package then query
ramalama rag ./docs my-rag
ramalama run --rag my-rag granite3.3:2b "What are the auth requirements?"
5) Benchmark and list benchmark history
ramalama bench granite3.3:2b
ramalama benchmarks list
Reliability Defaults
For agent automation, prefer explicit and deterministic flags:
ramalama --engine podman run -c 4096 --pull missing granite3.3:2b "<prompt>"
Recommended defaults:
- set
--engineexplicitly when environment is mixed - start with smaller
-c/--ctx-sizeon constrained hosts - use
--pull missingfor faster repeat runs - use one-shot non-interactive invocation for scripts
Troubleshooting
- Docker socket unavailable:
- verify Docker is running, or use
--engine podman
- verify Docker is running, or use
- Podman socket unavailable:
- check
podman machine listand start machine if needed
- check
timed outduring startup:- inspect container logs:
podman logs <container> - reduce context (
-c 4096) and retry
- inspect container logs:
- memory allocation failure:
- use a smaller model and/or lower context size
- port conflict on 8080:
- choose alternate port via
-p <port>
- choose alternate port via
Notes
serveexposes an OpenAI-compatible endpoint for external clients.- Prefer JSON output flags where available (
list --json,inspect --json) for robust parsing in automation. - Use
ramalama chat --url <endpoint>when the model is already served elsewhere.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.