agentforce314/clawcodex
A Python coding agent with shared sessions and interchangeable model providers
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
ClawCodex ports a Claude Code-style architecture from a TypeScript reference to a Python 3.10+ runtime. The agent streams model responses, executes tool calls, and returns their results to the model over a multi-turn loop. The terminal, Desktop, and browser interfaces share the runtime, gateway, and durable sessions; WebSocket connections are exercised in the multi-agent integration tests.
The Python distribution is clawcodex-cli, built with setuptools. Runtime dependencies include anthropic>=0.116.0,<1, openai>=1.109.1,<3, rich, and python-dotenv. Native provider adapters and OpenAI-compatible endpoints feed the same execution loop. Project- and user-level SKILL.md files extend that loop with slash commands, named arguments, and tool allowlists.
Key Capabilities & Differentiators
In v1.7.0, a session-scoped supervisor manages foreground, background, team, and workflow workers. It can interrupt individual agents or pause new spawns, with defaults of 32 concurrent agents and a maximum depth of 3. Named teammates keep context between assignments and take work from a locked, dependency-aware task board. Background workers resume under the same ID with their history; requested worktree isolation must start in a real Git checkout or fail before the model runs.
/eco filters model-bound Bash output without rewriting commands and saves the raw result to disk when filtering is lossy. A replay of 27 captured outputs fell from 92,989 to 17,767 tokens (about 80%, measured with cl100k_base on output text, not total session usage). Independently, --nano uses six tools and roughly 2K fixed prompt tokens versus roughly 17K by default. In a same-model SWE-bench Verified comparison using Gemini 2.5 Pro, ClawCodex resolved 291 of 499 tasks (58.2%) versus openclaude's 265 (53.0%).
Trade-offs & Limitations
Against Claude Code, the clearest reason to adopt ClawCodex is provider choice without changing the agent workflow. That also means validating tool behavior, costs, and credential handling for each endpoint. The SDK upper bounds are functional constraints: the current transport and stream-abort handling rely on httpx, while the excluded major SDK versions move to httpx2. The package is classified as Alpha; test the permissions and worker lifecycle your team relies on before a broad rollout.
A stable request prefix can improve DeepSeek cache reuse, but the savings depend on the endpoint and workload. /eco lowers the amount of command output sent to the model by showing it less detail up front; raw logs remain available for diagnosis and need their own retention policy. Benchmark results are specific to the models, modes, and harnesses tested, not proof that switching from Claude Code will improve an existing workflow.
Hardware & Deployment Guide
The CLI runs on Python 3.10+. Installers are available for macOS, Linux, WSL, and Windows; native Windows needs Git for Windows because the shell tool executes through Git Bash. To install from source, create a virtual environment, install requirements.txt, and run python -m src.cli login followed by python -m src.cli. Provider setup writes to ~/.clawcodex/config.json. Review /permissions before working in a sensitive checkout: the CLI starts in Full Access mode by default.
For the first browser launch, clawcodex web --build builds and starts the local UI at http://127.0.0.1:8081. This hosts the agent interface, not the model: the documented path still calls a configured provider. Release v1.5.0 added Desktop with session resume and permission prompts; v1.6.0 added the Web UI on the shared runtime; v1.7.0 unified agent supervision and made persistent teams operational.
/eco reduced 27 captured command outputs from 92,989 to 17,767 tokens, with original output saved to disk when filtering is lossy.--nano uses six tools and cuts the fixed prompt payload from about 17K to 2K tokens.Developers and teams that want a Claude Code-style workflow across several model providers, with reusable skills, persistent sessions, and supervised delegation in Git repositories.
You need offline inference out of the box, an already validated locked-down team deployment, or verified drop-in compatibility with Claude Code.
Quick Start & Installation
curl -fsSL https://clawcodex.app/install.sh | bash
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| clawcodex ★ | 928 | +1 | TypeScript | MIT | A Python coding agent with shared sessions and interchangeable model providers |
| Codewhale | 41.2k | +38 | Rust | MIT | Rust coding agent with swappable models, sandboxed execution, and turn receipts |
| gemini-cli | 109.6k | +376 | TypeScript | Apache-2.0 | A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools |
| oh-my-pi | 40.5k | +483 | TypeScript | MIT | A Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/agentforce314/clawcodex.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about clawcodex
How do I integrate a model provider or add a project-specific workflow?
clawcodex login or configure them in ~/.clawcodex/config.json. The Python agent handles the tool loop and session state. For reusable project instructions, use a SKILL.md slash command with named arguments and an explicit tool allowlist. The browser UI uses the same agent and session layer; that does not establish a supported public API.Does ClawCodex need a GPU, and what drives local resource use?
Can we use it commercially and host it ourselves?
When would I choose ClawCodex over Claude Code?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy