Local AI CLI Setup, Rotation, and Troubleshooting
Connect Claude Code, Codex, Grok, or OpenCode on your Mac, tune parallel workers and reasoning effort, and understand automatic rate-limit cooldown rotation.
Template Factory runs directly through the local AI coding CLIs you already use on your Mac — no cloud accounts or extra API token markups.

Supported Local CLIs
Open Settings to see which CLIs Template Factory detected on your Mac:
- Claude Code (
claude) — Supports model selection (Opus, Sonnet, Haiku) and reasoning effort (low, medium, high, max). - Codex (
codex) — Supports model selection and reasoning effort (low, medium, high, xhigh). - Grok (
grok) — Optional CLI rotation with model and reasoning effort overrides. - OpenCode (
opencode) — Optional CLI rotation usingprovider/modelformat.
Toggle any installed CLI on or off in the Local AI CLIs panel. You can run a single CLI exclusively or enable multiple CLIs for automatic round-robin rotation.
Automatic Rate-Limit Cooldowns
If a CLI hits a rate limit or usage window while processing your folder:
- Template Factory reads the reset time or retry delay from the CLI output.
- That provider enters cooldown on the Activity tab with a live countdown timer.
- The interrupted screenshot returns to Queued without losing an attempt, and another enabled CLI picks it up automatically.
- Once your usage window resets (or if you click Clear cooldown on the Activity tab), the CLI rejoins rotation.
Inspecting Live Worker Logs
If a build takes longer than expected or fails, open the Activity tab (or expand the bottom-right worker dock) and click Log to stream the worker's live output every 1.5 seconds.
Still stuck? Start from Getting Started with Template Factory or reach out via the Help & Feedback button on templatefactory.wynter.ai.
Frequently Asked Questions
Why does a CLI show as Missing even though I installed it?
Template Factory searches standard macOS paths including Homebrew, local bin, Cargo, Volta, asdf, and nvm. Verify the CLI runs in Terminal (for example claude --version or codex --version) and reopen Settings.
What happens if my AI CLI hits a usage cap overnight?
Template Factory detects rate-limit and usage-cap messages, puts that CLI on cooldown until its reset time, leaves the screenshot queued without burning a retry, and rotates work to your next enabled CLI.
How many parallel workers should I run?
Start with 2 parallel workers for a steady pace that stays easy on your Mac and your CLI usage limits, then adjust between 1 and 6 in Settings as needed.