Claw is a lightweight, open-source LLM agent that runs on any Linux system with only POSIX sh, curl, and jq installed. It is a single shell script — no Node, no npm, no Python, no package managers. The project is released under the MIT license and is currently at version 0.
What it does
Claw provides a full LLM agent in a terminal: streaming chat, shell tool calls, rolling memory, and a mentor mode. It works with OpenAI or Anthropic models, and you can switch providers with a single flag. Configurable base URLs let you point at any OpenAI-compatible endpoint.
Key features:
- Shell tool calls: The model emits
<shell>…</shell>blocks. Claw runs them and feeds results back. By default it runs commands without confirmation (YOLO mode); pass--confirmto be prompted before execution. - Rolling memory: Prompts and replies are journaled to JSONL. When the context window overflows, an LLM compacts them into durable session rules and a per-session markdown journal.
- Mentor mode: A second assistant pass critiques the first answer against your original request, then revises. Toggle with
--mentoror/mentoron. - Named sessions: Run isolated sessions with
claw -s myproject. Each has its own history, compacted rules, and journal — switch instantly with/load. - Skills: Drop any
.mdfile into~/.config/clawlite/instructions/and it becomes part of the system prompt — project context, tool guides, domain knowledge. No restart needed.
How to install
Three steps, no build system, no package manager:
- Download the script:
wget -qO /usr/local/bin/claw https://getclaw.site/claw && chmod +x /usr/local/bin/claw - Set your API key in
~/.profileor~/.bashrc:export OPENAI_API_KEY=sk-... # or for Anthropic: export ANTHROPIC_API_KEY=sk-ant-... - Run:
$ claw # one-shot: $ claw "what is my IP?" # pipe stdin: $ cat error.log | claw
You can also try it live in the browser at linuxontab.com — open a terminal, run claw, done.