AIToday

claw: a single-shell-script LLM agent that runs on any Linux box with just curl and jq

Hacker NewsMay 5, 20261 min read
claw: a single-shell-script LLM agent that runs on any Linux box with just curl and jq

Summaries like this, in your inbox every morning.

Sign up free →

3 Key Points

  1. claw is a pure POSIX shell script (v0, MIT license) that provides a full LLM agent — streaming chat, shell tool calls, rolling memory, and mentor mode — against OpenAI or Anthropic, requiring only sh, curl, and jq with no Node, npm, or Python.

  2. The agent executes shell commands emitted by the model in <shell>…</shell> blocks (YOLO by default; --confirm flag enables prompts), journals prompts and replies to JSONL, and compacts overflow windows into durable session rules and markdown journals. A mentor mode flag toggles a second-pass critique-and-revise loop.

  3. Installation takes 30 seconds: download the script from getclaw.site/claw, set OPENAI_API_KEY or ANTHROPIC_API_KEY, and run; also available live in the browser at linuxontab.com for immediate testing without installation.

Discussion

No comments yet. Be the first to share your thoughts!

Log in to join the discussion

Related Articles

Stay ahead with AI news

Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.

Get Started Free

Free · takes 30 seconds · unsubscribe anytime

1 minute a day. The AI essentials.

200+ sources · Email / LINE / Slack

Get it free →