SkillsMay 13, 2026·2 min read

ClawCodex — Python Rebuild of Claude Code

ClawCodex is a Python rebuild of Claude Code with a working CLI agent, streaming REPL, optional TUI, and provider/model overrides for scripted runs.

Agent ready

Ready-to-run agent install

This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.

Native · 98/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Single
Trust
Trust: Established
Entrypoint
Asset
Direct install command
npx -y tokrepo@latest install eef3383a-7df1-54df-802f-119764939358 --target codex

Run after dry-run confirms the install plan.

Intro

ClawCodex is a Python rebuild of Claude Code with a working CLI agent, streaming REPL, optional TUI, and provider/model overrides for scripted runs.

Best for: teams who want a hackable Claude Code-like loop in Python

Works with: Python 3.10+, local repos, multiple LLM providers (per README), terminals (REPL/TUI)

Setup time: 10-20 minutes

Key facts (verified)

  • GitHub: 228 stars · 17 forks · pushed 2026-05-13.
  • License: MIT · owner avatar + repo URL verified via GitHub API.
  • README-verified entrypoint: pip install -r requirements.txt.

Main

  • Follow the README quick install to bootstrap a venv, run login (writes ~/.clawcodex/config.json), then start the REPL.

  • Use the CLI modes as building blocks: interactive REPL by default, --tui for a Textual UI, and -p for non-interactive scripting.

  • Treat provider/model overrides as a reproducibility tool in CI (README shows --provider and --model flags).

Source-backed notes

  • README quick install shows python -m src.cli login and python -m src.cli to start the REPL.
  • README lists a complete CLI including --tui, --stream, config, and -p scripting examples.
  • README documents permission-mode flags like --permission-mode plan and --dangerously-skip-permissions (with safety notes).

FAQ

  • Is it a runnable CLI or just a port?: README positions it as a working CLI agent, not just a source dump.
  • Where does it store config?: README says login writes to ~/.clawcodex/config.json.
  • Can I use it in scripts?: Yes — README shows clawcodex -p "..." with JSON outputs.
🙏

Source & Thanks

Source: https://github.com/agentforce314/clawcodex > License: MIT > GitHub stars: 228 · forks: 17

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets