caveman command-line program (also available as the short alias cave) is the primary interface for local wrapping, proxy control, tool management, and cloud-connected operations. Scripts should prefer caveman for clarity; cave is useful in interactive terminals. The npm CLI requires Node.js 22.13 or newer.
Run caveman help <command> for installed-version help. This page explains the command groups and important behavior.
Main commands
These are the most frequently used commands for running agents and inspecting state.
Supported agent shortcuts are
aider, claude, codex, gemini, hermes, kilo (kilocode alias), openclaw, opencode, pi, and qwen.
-- in caveman run are passed to the selected command.
Local tool namespace
caveman tools groups less frequent local commands by job.
compress
Compress text from standard input or a file. Compression is local. Lossy output contains a recovery handle when a recovery store is available.caveman start when an application needs an HTTP proxy instead of a one-shot command.
shrink
Reduce large command or tool output while preserving selected structure and a recovery reference. Input larger than the command limit is rejected rather than partially processed.toon
Encode or decode structured data using TOON. Encoding only wins on suitable data, commonly uniform arrays of objects. It is not a byte-preserving transformation.convert
Pack supported installed skills into pixel form for selected agent or project. Flags include--agent, --project, --skill, --dir, --density, --dry-run, --revert, and --force. Run a dry run before changing a large skill tree.
mem
Manage local durable memory. Available operations includeremember, recall, supersede, history, and forget. See Local tools.
mcp
Install or remove local Model Context Protocol registrations for detected agents. Server choices include recovery, browser, connected read-only evidence, and opt-in delegation tools.~/.qwen/settings.json. Caveman preserves sibling settings and refuses to replace or remove an entry that is not recorded as Caveman-owned.
caveman-mcp binary itself serves compression, recovery, statistics, and TOON tools over standard input and output.
hooks
Install or inspect supported agent hooks. Hooks add local context and compact output behavior to agent-native event systems. See Skills and agents.browse
Control a Chrome session through the local browser bridge.skills
List, preview, install, add, or import skills. Preview an external skill before installation.sdk
Print or apply integration recipes for supported SDKs and agent frameworks. Recipes cover Anthropic, OpenAI, Google Gen AI, Vercel AI SDK, LangChain, LiteLLM, CrewAI, Pydantic AI, OpenAI Agents SDK, and directcurl use.
stats, trial, and evals
statsreports local compression and usage records.trialexercises local features against fixtures or configured providers.evalsruns evaluation-related commands available in the installed build.
config
Read or change local feature configuration.Runtime commands
start
Start the loopback HTTP proxy. Default address is127.0.0.1:8787.
~/.caveman/caveman.yaml unless CAVEMAN_CONFIG names another file. It stores local operational data in ~/.caveman/caveman.db.
setup
Inspect or install local runtime components.--remove to an --agent-native command to remove that integration.
wrap
wrap is the explicit form used by agent shortcuts.
- Default mode enables supported local compression, structured-data encoding, recovery, and output shrinking.
--offruns byte-safe pass-through recording.--pixelenables lossy text-to-image context transport for models listed in configuration.--workflowselects a named workflow when the installed profile supports it.
Learning commands
caveman learn reads local observations and ranks possible improvements.
--all adds every sink, confirmed outcomes, per-repository observations, and advanced command hints. --repo filters sessions before analysis. apply prepares one candidate; simulate totals counterfactual scale over scanned history; applied records a completed, re-measured fix in Caveman’s outcome store. A recommendation remains an inferred opportunity until stronger evidence exists. Aider scanning remains opt-in through CAVEMAN_AIDER_ROOT because its history is repository-local. Full reference: caveman learn.
Connected namespace
caveman cloud is the account and network namespace. Its command groups cover:
- account:
whoami,projects,keys,providers,billing - evidence:
score,costs,plan,traces,experiments,receipts - governance:
audit,sync,agent
Exit and failure behavior
Commands use nonzero exit status for invalid arguments, rejected configuration, missing dependencies, and failed operations. Destructive or ambiguous local transformations should use--dry-run where offered. Compression paths prefer original input over unsafe or incomplete output.