# Subscription Tier Routing

> Use when routing LLM calls by subscription tier allowance — Codex/Claude weekly allowances, cache-aware routing, fast mode, banked resets, GLM $18 budget. Triggers on "subscription tier routing", "weekly allowance routing", "cache aware routing", "banked resets", "glm budget tier".

- Skill: `majinmagros/subscription-tier-routing` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add majinmagros/subscription-tier-routing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majinmagros/subscription-tier-routing/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: majinmagros (https://skillmd.com/u/majinmagros)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/majinmagros/subscription-tier-routing

---


# Skill: subscription-tier-routing — Roteamento Ciente de Tier de Assinatura

Roteamento que considera **weekly allowances por tier**, **cache hit rates**, **fast mode**, **banked resets** e **GLM como budget tier**. Implementação completa em `references/implementation.md`.

## Quando usar

- Você paga assinaturas (Codex Pro 5X/20X, Claude Max 5X/20X) e quer maximizar valor
- Precisa rotear por **allowance restante**, não só custo por token
- Quer aproveitar **cache hit rates** (94% Astra, 79% Sonnet) para estender allowance
- Precisa lidar com **banked resets** (OpenAI promotional one-time refills)
- Quer usar **GLM $18/mo** como tier orçamentário para volume
- Decide quando usar **fast mode** (~2x créditos) vs normal

## Quando NÃO usar

- Roteamento simples por custo/token → use `roteamento-modelos-baratos`
- Model routing genérico → use `claude-model-router`
- Cost tracking sem tier awareness → use `cost-aware-llm-pipeline`
- GLM patterns específicos → use `glm-integration-patterns`

---

## Validação Oficial (2026-09-09)

| Claim | Status | Fonte |
|---|---|---|
| Codex Pro 20X ~$4900 / Claude Max 20X ~$2013 API equiv/mês | ⚠️ Projetado (small sample) | Video + pricings oficiais |
| Cache: 94% Astra, 79% Sonnet input cached | ✅ | Video measurement |
| GLM $18: browser automation, C coding, trial quota | ✅ | Z.ai pricing |
| Banked resets: promocional, refresh 5h+weekly | ✅ | OpenAI usage settings |
| Fast mode: ~2x créditos, respostas mais rápidas | ✅ | OpenAI/Anthropic docs |
| Fable 5.1 esforço máximo = multi-agente caro; claim 2x rápido/metade tokens | Medicao do autor (validar) | Campelo `5tSGf1DYKe0` (Batch 16, #49) |

---

## Subscription Tier Matrix

| Provider | Plan | $/mês | Weekly | API equiv/mês | Cache | Ideal para |
|---|---|---|---|---|---|---|
| Codex | Plus | $20 | 1X | ~$240 | 94% | Light coding |
| Codex | Pro 5X | $100 | 5X | ~$1,200 | 94% | Daily coding |
| Codex | Pro 20X | $200 | 20X | ~$4,900 | 94% | Heavy volume |
| Claude | Pro | $20 | 1X (5h/dia) | ~$101 | 79% | Light coding |
| Claude | Max 5X | $100 | 5X | ~$503 | 79% | Daily coding |
| Claude | Max 20X | $200 | 20X | ~$2,013 | 79% | Heavy volume |
| GLM/Z.ai | Coding | $18 | Generous | N/A | N/A | Budget volume |
| GLM/Z.ai | Higher | $80/$168 | More | N/A | N/A | Scale |

---

## Exemplo

```text
Assinaturas: Claude Max 5X + Codex Pro 5X → roteia por allowance restante, não só $/token
Volume repetitivo: GLM $18 (cache alto estende a semana); fast mode só se urgência (~2x créditos)
Banked reset promocional: usa antes do refresh; alerta se feature passa de 50% do budget
```

## Enriquecimento 2026-09-26 — Opus 5.5 no tier (captura semanal)

- Opus 5.5 no mesmo allowance rende mais: ~40% economia real vs Opus 5
  (tabela + tokens + cache $0.20). Limites 5h Pro/Team/Enterprise subiram +
  **limit reset sob demanda** (não espera a janela) — para pico à tarde vale
  mais que benchmark. Fast mode (preview, extra usage on, +$/token) só quando
  cada reply trava entrega. Regra: medium-first no allowance; high/xhigh só
  com prova. Fontes: Maestros `XsRt-kwqtVA`, claude.dev 22/09.
