Install claude-codex with auto-sync on a new machine
Installs the Claude Codex development environment with auto-sync on a new machine.
/plugin marketplace add https://www.claudepluginhub.com/api/plugins/aventerica89-claude-codex/marketplace.json/plugin install aventerica89-claude-codex@cpd-aventerica89-claude-codexInstalls the full claude-codex system with auto-sync daemon. One command to set up a new machine.
Check if already installed:
if [ -L ~/.claude ] && [ -d ~/claude-codex ]; then
echo "Claude Codex already installed"
exit 0
fi
Clone repository (if not present):
if [ ! -d ~/claude-codex ]; then
git clone https://github.com/Aventerica89/claude-codex.git ~/claude-codex
fi
Run install script:
cd ~/claude-codex
./sync/install.sh
Report results:
User: /codex-install
Claude: Installing Claude Codex...
Cloning repository to ~/claude-codex
Running install script...
[Install script output]
Installation complete:
- Repository: ~/claude-codex
- Symlink: ~/.claude -> ~/claude-codex
- Auto-sync: Running (commits every 30s, pushes every 5min)
Verify with: git -C ~/.claude remote -v
View logs: tail -f ~/.claude/sync.log
User: /codex-install
Claude: Claude Codex is already installed.
Location: ~/claude-codex
Symlink: ~/.claude -> ~/claude-codex
To reinstall, run:
rm -rf ~/claude-codex ~/.claude
/codex-install
To just sync: /sync
Execute these bash commands in sequence:
# Check if already installed
if [ -L "$HOME/.claude" ] && [ -d "$HOME/claude-codex/.git" ]; then
echo "Already installed"
exit 0
fi
# Clone if needed
if [ ! -d "$HOME/claude-codex" ]; then
git clone https://github.com/Aventerica89/claude-codex.git "$HOME/claude-codex"
fi
# Run installer
cd "$HOME/claude-codex" && ./sync/install.sh
/codex-fetch - View remote config (read-only, works in browser)/sync - Bidirectional sync (after installation)