agentforce314/clawcodex
Token efficient Claude Code full Python rebuild. AI Coding Agent in 310K LoC Python.
What it solves
ClawCodex is a production-oriented, open-source Python rebuild of Claude Code. It provides a reliable CLI agent for coding tasks, offering a high-performance alternative to the TypeScript reference implementation with a native Python runtime.
How it works
The project implements a CLI agent that can be run headlessly or via a TUI, Desktop app, or Web UI. It supports multiple LLM providers (including DeepSeek, OpenAI, and Anthropic) and includes specialized features to reduce costs and token usage, such as byte-stable request prefixes for DeepSeek's prompt cache and a token compression system for Bash output.
Who it’s for
It is designed for developers who want a powerful, agentic coding assistant that can be integrated into their terminal, browser, or as a native desktop application, particularly those looking for cost-efficient ways to run long coding sessions.
Highlights
- High Performance: Achieved 80.9% on Terminal-Bench 2.1 using Claude Opus 5.
- Cost Optimization: Includes
/ecotoken compression (reducing Bash-output tokens by up to 80%) and DeepSeek Prefix Cache support for significantly cheaper input bills. - Flexible Interfaces: Available as a CLI, TUI, Web UI, and a native Desktop application.
- Fusion Models: Allows pairing a text-only model with a vision-capable model to give the base model vision capabilities.
- Broad Provider Support: Supports various API providers and allows usage via existing ChatGPT and Claude subscriptions to avoid metered API billing.
- Nano Mode: A minimal harness for low-cost, high-efficiency task execution.
Related
- Project
- Project
- Project
- Project
- Project