π¦
Rex CLI
Local-first AI agent bootstrap: Playwright Browser MCP + ContextDB for Codex CLI, Claude Code, Gemini CLI, and OpenCode.
0 installs
Trust: 39 β Low
Blockchain
Ask AI about Rex CLI
Powered by Claude Β· Grounded in docs
I know everything about Rex CLI. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
RexCLI (AIOS)
A local agent workflow layer that adds memory, collaboration, and verification to
codex/claude/gemini/opencode.
Docs | Quick Start | Case Library | GitHub
Install
macOS / Linux:
curl -fsSL https://github.com/rexleimo/rex-cli/releases/latest/download/aios-install.sh | bash
source ~/.zshrc
aios
Windows PowerShell:
irm https://github.com/rexleimo/rex-cli/releases/latest/download/aios-install.ps1 | iex
. $PROFILE
aios
Once started, select Setup, run Doctor, and you're ready to go.
Core Capabilities
| Capability | Description | Command |
|---|---|---|
| ContextDB | Cross-session project memory with events, checkpoints, and context packs | auto-loaded by codex / claude |
| Model Router | Intelligent multi-model dispatch for Agent Teams β match tasks to optimal model by capability, cost, and success rate | node scripts/aios.mjs model-router route --task "..." |
| Agent Team | Multi-agent parallel collaboration with HUD visual tracking | aios team 3:codex "task description" |
| Solo Harness | Single-agent overnight tasks with resume support and run journal | aios harness run --objective "goal" --worktree |
| Perception | Content outcome tracking + statistical insights + perception injection | aios perception record / insights / summary |
| Browser MCP | Stealth browser automation over CDP | aios internal browser doctor |
| Superpowers | Reusable workflow skills (brainstorm/plan/debug/verify) | Select from TUI |
| Privacy Guard | Auto-redact sensitive files before sharing | aios privacy status |
Quick Tour
# Launch TUI
aios
# Multi-agent collaboration
aios team 3:codex "Refactor the auth module and run tests"
# Single-agent overnight task
aios harness run --objective "Finish the handoff docs for tomorrow" --worktree
# Intelligent model routing
node scripts/aios.mjs model-router route --task "Review auth.js for security issues"
# Content outcome tracking
aios perception record --content-id note_001 --platform xiaohongshu --content-type note --title "Test" --metrics '{"likes":100}'
# Check task status
aios team status --provider codex --watch
How It Works
User β codex / claude / gemini
β zsh wrapper (transparent)
β ctx-agent.mjs (ContextDB integration)
β contextdb CLI (memory persistence)
β launch native CLI (with context pack)
β browser MCP (optional browser automation)
After installation, just use codex, claude, or gemini as usual β RexCLI automatically loads project memory in the background.
Docs
- Quick Start β Install, configure, first run
- Model Router β Multi-model dispatch for Agent Teams
- ContextDB β Project memory system
- Agent Team β Multi-agent collaboration guide
- Solo Harness β Overnight task guide
- Perception β Content outcome tracking & insights
- Architecture β System architecture
- Troubleshooting β Common issues
- Use Cases β Find commands by scenario
Requirements
- Git
- Node.js 22 LTS + npm
- Windows: PowerShell 5.x or 7
Development
git clone https://github.com/rexleimo/rex-cli.git
cd rex-cli
Verify:
cd mcp-server
npm test
npm run typecheck
npm run build
License
See CHANGELOG.md for version history.
