SHIFT native proxy — Rust HTTP server that intercepts AI API requests,
optimizes image payloads via shift-preflight, and forwards to upstream
providers. Replaces the Node.js/Hono proxy with a single-binary server.
Architecture
Client (OpenCode, Claude Code, Codex, etc.)
│
├── POST /v1/messages → Anthropic (optimize + forward)
├── POST /v1/chat/completions → OpenAI (optimize + forward)
├── POST /v1beta/models/* → Google (passthrough)
├── GET /health → Status
├── GET /stats → Session stats
└── POST /* → Auto-detect provider (passthrough)