Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.
CLAUDE: normal entry and restoration
Use Claude Code, a plan and protected original auth/model configuration. Contract:
issue-spec/specs/agent-connections/spec.md. Minimum smoke saves one preset mapping
via UI, reopens, starts ordinary claude, selects that preset for a real request,
then disables and calls the original connection. Reuse the plan; install detection
is not model validation. Extend auth/enable changes with dual auth, override sources,
cycles and unrelated-field preservation; protocol/tools with real tool continuation.
No batch business script; saves and terminal calls retain separate checkpoints.
- Save/reopen Opus/Sonnet/Haiku mappings or deliberately retained original values. No extra launch command or invented arbitrary-plan menu is required.
- Start a fresh normal terminal and
claude, explicitly select a mapped preset, then execute real text/tool requests. Check current default and mappings separately. - Verify helper/auth environment provenance, no dual-auth warning, and actual routing rather than a configured label with the original endpoint still used.
- Run three enable cycles, restart the client, disable and use the original route; unrelated settings/MCP/permissions stay intact.
Report external overrides that cannot be safely replaced. Codex diagnoses actual configuration; Jev never deletes auth fields. Restore owned changes under credential rules. Killing a timed-out client is not success. Record actual ordinary-entry results in the Issue/PR, not just the configured label.