Skip to main content Switch to mobile version clawagents 6.20.104 Lean, full-stack agentic AI framework with PTRL (Prompt-Time Reinforcement Learning)
pip install clawagents==6.20.104 Copy PIP instructions
Lean, full-stack Python agentic AI framework with PTRL & Harness²
ClawAgents is a production-ready agentic framework for Python that gives LLMs the tools to read, edit, and execute code with built-in planning, memory (AGENTS.md), skills (SKILL.md), sandboxing, Prompt-Time Reinforcement Learning (PTRL), recursive harness optimization (Harness²), and an optional HTTP/WebSocket gateway.
It supports OpenAI, Anthropic Claude, Google Gemini, Amazon Bedrock & Mantle, xAI Grok, Meta / Muse, and local OpenAI-compatible servers (Ollama, vLLM, LM Studio, Gemma Q4) through a unified provider architecture.
pip install -U clawagents # Core (OpenAI + OpenAI-compatible) pip install -U 'clawagents[gemini]' # + Google Gemini pip install -U 'clawagents[anthropic]' # + Anthropic Claude pip install -U 'clawagents[bedrock]' # + AWS Bedrock (IAM / Converse) & Mantle pip install -U 'clawagents[mcp,media,pty]' # + MCP client, media resizing, PTY tools pip install -U 'clawagents[gateway]' # + FastAPI / Uvicorn HTTP+WS gateway pip install -U 'clawagents[browser]' # + Playwright browser tools (then: playwright install chromium) pip install -U 'clawagents[all]' # All providers, gateway, observatory, MCP, browser, PTY Other optional extras: accurate-tokens (tiktoken), observatory (Streamlit Context Observatory), cron, watch, rl, acp, and dev.
30-Second Quick Start
clawagents --init # Scaffolds .env, run_agent.py, and AGENTS.md # Add an API key to .env clawagents --doctor # Verify config, keys, and model setup clawagents --task "Summarize this repository and run the test suite" Minimal Python
import asyncio from clawagents import create_claw_agent async def main(): # Reads .env (or CLAWAGENTS_ENV_FILE) and auto-discovers AGENTS.md + ./skills/ agent = await create_claw_agent() result = await agent.invoke("List the files in this project and summarize the architecture") print(result.result) asyncio.run(main()) Supported Providers & Models
See docs/model-catalog-audit.md for verified model IDs, context limits, request rules, and pricing sources.
Built-in coding tools: Filesystem (ls, read_file, write_file, edit_file, grep, glob), sandboxed shell execute, think, structured todolist, isolated subagent, web_fetch / web_search, and optional Playwright browser tools.
PTRL & Harness²: Trajectory logging, rethink-on-failure, cross-run lesson extraction (CLAW_LEARN), and Propose–Probe–Compose workspace harness optimization with rollback (clawagents --adapt / --rollback-harness).
Skills & Memory: Progressive-disclosure SKILL.md skills with tool allowlists, AGENTS.md project memory, pinned context, and automatic context compaction.
MCP & Gateway: Connect external MCP servers (stdio, SSE, Streamable HTTP) and expose agents via a loopback-authenticated FastAPI/WebSocket gateway (clawagents --serve).
Security by default: Command allowlists/blocklists, macOS Seatbelt / workspace sandboxing, SSRF-checked web_fetch, and explicit workspace profile trust gates. See SECURITY.md.
Configuration & Core Environment Variables
ClawAgents looks for .env in ./.env, parent directories, and ~/.clawagents/.env, or at an explicit path via CLAWAGENTS_ENV_FILE.
See docs/configuration.md for provider recipes (Bedrock, Azure, Local, MCP, Browser, Cron, Advisor, GRPO) and the full environment variable reference.
clawagents --init # Scaffold starter .env, run_agent.py, AGENTS.md clawagents --doctor # Check environment, credentials, and endpoints clawagents --task "..." # Run a one-shot task clawagents --trajectories # Inspect recorded run summaries clawagents --adapt # Run Harness² workspace optimization clawagents --rollback-harness # Restore workspace from Harness² backup clawagents --serve --port 8080 # Start the HTTP/WebSocket gateway See docs/cli-and-gateway.md for full CLI flags, gateway authentication, and channel allowlists.
Testing & Development
pip install -e ".[dev]" pytest tests/ -q # Full unit test suite ./scripts/run_tests.sh # Hermetic CI-parity runner ruff check . # Linter mypy # Static type check License
Released: Dec 4, 2026
Author: ClawAgents Contributors
MIT View SPDX License List
accurate-tokens acp all anthropic bedrock browser browser-browserbase browser-cloud cron dev gateway gemini mcp media observatory pty rl watch
Development Status 4 - Beta
Intended Audience Developers
License OSI Approved :: MIT License
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Release files for clawagents 6.20.104
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 2.4 MB
Release files / clawagents-6.20.104.tar.gz
Release files / clawagents-6.20.104-py3-none-any.whl
Security for clawagents 6.20.104
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
6.20.104 This release
Dec 4, 2026 2 release files No provenance
Nov 16, 2026 2 release files No provenance
Nov 14, 2026 2 release files No provenance
Nov 12, 2026 2 release files No provenance
Nov 7, 2026 2 release files No provenance
Oct 27, 2026 2 release files No provenance
Oct 17, 2026 2 release files No provenance
Oct 16, 2026 2 release files No provenance
Oct 15, 2026 2 release files No provenance
Oct 14, 2026 2 release files No provenance
Oct 7, 2026 2 release files No provenance
Oct 6, 2026 2 release files No provenance
Oct 3, 2026 2 release files No provenance
Sep 27, 2026 2 release files No provenance
Sep 12, 2026 2 release files No provenance
Sep 7, 2026 2 release files No provenance
Sep 6, 2026 2 release files No provenance
Sep 5, 2026 2 release files No provenance
Sep 4, 2026 2 release files No provenance
Aug 29, 2026 2 release files No provenance
Aug 19, 2026 2 release files No provenance
Aug 18, 2026 2 release files No provenance
Aug 7, 2026 2 release files No provenance
Aug 6, 2026 2 release files No provenance
Aug 5, 2026 2 release files No provenance
Aug 2, 2026 2 release files No provenance
Jul 31, 2026 2 release files No provenance
Jul 25, 2026 2 release files No provenance
Jul 23, 2026 2 release files No provenance
Jul 22, 2026 2 release files No provenance
Jul 21, 2026 2 release files No provenance
Jul 20, 2026 2 release files No provenance
Jul 19, 2026 2 release files No provenance
Jul 18, 2026 2 release files No provenance
Jul 16, 2026 2 release files No provenance
Jul 14, 2026 2 release files No provenance
Jul 13, 2026 2 release files No provenance
Jul 12, 2026 2 release files No provenance
Jul 11, 2026 2 release files No provenance
Jul 5, 2026 2 release files No provenance
Jul 1, 2026 2 release files No provenance
Jun 18, 2026 2 release files No provenance
Jun 7, 2026 2 release files No provenance
May 2, 2026 2 release files No provenance
Apr 26, 2026 2 release files No provenance
Apr 25, 2026 2 release files No provenance
Apr 24, 2026 2 release files No provenance
Apr 14, 2026 2 release files No provenance
Apr 11, 2026 2 release files No provenance
Apr 1, 2026 2 release files No provenance
Mar 22, 2026 2 release files No provenance
Mar 17, 2026 2 release files No provenance
Mar 14, 2026 2 release files No provenance
Mar 13, 2026 2 release files No provenance
Mar 12, 2026 2 release files No provenance
Mar 10, 2026 2 release files No provenance
Mar 8, 2026 2 release files No provenance
Mar 7, 2026 2 release files No provenance
Mar 6, 2026 2 release files No provenance
Mar 4, 2026 2 release files No provenance
Mar 3, 2026 2 release files No provenance
Feb 26, 2026 2 release files No provenance
Feb 22, 2026 2 release files No provenance
Feb 21, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 107c339











