Changelog

What's new

Platform updates, new model additions, and infrastructure improvements — newest first.

NewStore order persistence with D1 database
  • All store purchases are now persisted in a Cloudflare D1 database, enabling order history and auditability.
  • Admin panel shows real-time order status and inventory levels per package.
  • Binance Pay webhook integration records payment confirmations against D1 order records.
NewDirect key creation from admin panel
  • Admins can now create and issue API keys directly from the admin panel without manual KV operations.
  • Removed Opus 5 Unlimited packages — replaced with time-based access plans with configurable token limits.
  • Pricing tiers updated across all providers to reflect current upstream costs.
NewModel registry and dynamic provider routing
  • Introduced the OfferedModel registry for explicit provider-to-model mappings with load-balancing support.
  • Dynamic 404 retry logic: when a model path returns 404, the proxy tries alternate path variants and caches the winner.
  • Model IDs are remapped back to the client-requested ID on every response to satisfy strict SDK validation.
NewxAI / Grok support added
  • Added xAI as a supported provider, enabling Grok model family access through the unified API.
  • OpenAI-compatible endpoint (/v1/chat/completions) now routes Grok requests through the same translation layer.
InfraMaskRules-driven response sanitization
  • Replaced hardcoded string masking with a provider-aware MaskRules system that scrubs upstream brand identifiers from errors and headers.
  • LLM-generated text (content, thinking, tool outputs) is explicitly excluded from sanitization to preserve model output integrity.
  • Response headers now pass through an allowlist — only known-safe header names reach the client.
NewGoogle Gemini provider integrated
  • Gemini model family (gemini-3.5-flash, gemini-3.1-pro, and others) accessible via the unified API.
  • Both Anthropic-native and OpenAI-compatible endpoints support Gemini model routing.
NewUsage dashboard and per-request history
  • Launched the balance dashboard at /dashboard — check your token balance and 7-day request history in real time.
  • Per-request logs store up to 200 entries per key per day, retained for 7 days.
  • Daily usage aggregates drive token-limit enforcement and admin reporting.
NewOpenAI-compatible API and Claude Code support
  • Added POST /v1/chat/completions with full OpenAI↔Anthropic translation layer, including streaming.
  • Claude Code, Cursor, and other tools work by pointing their base URL to https://lawthropic.xyz.
  • Anthropic beta headers (thinking, caching, extended context) are forwarded transparently upstream.
InfraInitial launch — Anthropic and OpenAI providers
  • Lawthropic launched on Cloudflare Workers with KV-backed masked key management (sk-law-… → upstream key).
  • Anthropic Messages API (/v1/messages) with full streaming support.
  • Binance Pay integration for USDT-based token balance purchases. Per-minute rate limiting enforced via USAGE KV.