Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 10:37
· 41 commits to main since this release

agy-byom v1.2.0 — ChatGPT Subscription, Responses API & Agent-Ready CLI

🚀 What's New

1. ChatGPT Subscription — use your Plus/Pro plan in Antigravity (NEW)

Sign in with your ChatGPT account via OpenAI's PKCE OAuth flow and run subscription models side-by-side with native Gemini/Claude — no separate API billing.

agy-byom chatgpt login            # browser OAuth (PKCE S256)
agy-byom chatgpt models --add --sync
  • Sign in from BYOM Studio ("Sign in with ChatGPT") or CLI; multi-account support with activate/remove.
  • Tokens stored in a 0600 vault with atomic writes; automatic refresh; logout revokes tokens best-effort.
  • Strict ID-token verification: issuer/audience/nonce/expiry, JWKS host pinning, RSA ≥ 2048-bit.

2. OpenAI Responses API — third native dialect (NEW)

Beyond Anthropic Messages and Chat Completions, the gateway now speaks /v1/responses natively:

  • Streaming with encrypted reasoning replay (reasoning.encrypted_content) across turns.
  • Full tool-calling round-trip, reasoning summaries, and refusal mapping to Gemini SAFETY.
  • Preset: --preset openai-responses.

3. Agent-friendly CLI (NEW)

Every setup step is scriptable with --json output — built for AI agents and dotfiles:

agy-byom doctor --json
agy-byom detect-local --add --sync --json
agy-byom add-provider --preset openrouter --api-key-env OPENROUTER_API_KEY --model anthropic/claude-sonnet-4.5 --sync --json
agy-byom test-tools --provider openrouter --model anthropic/claude-sonnet-4.5 --json
agy-byom agy --model my-model      # isolated agy session routed via the gateway
  • Test Tools: verify function-calling compatibility before relying on a model for agent loops.
  • Detect Local: 1-click import of running Ollama / LM Studio / vLLM / llama.cpp.

4. BYOM Studio upgrades

  • ChatGPT account panel (sign-in, models, activate, remove) inside the IDE sidecar.
  • Live KPIs: requests, cache hit rate, TTFT/latency, per-model breakdown, traffic chart, context window.

🛡️ Reliability & Security Hardening

From a full multi-agent code review — all fixed with regression tests:

  • Circuit breaker: half-open probes are now released on every outcome (4xx/cancel) with a 10-minute safety timeout — a provider can no longer get stuck out of rotation.
  • Streaming honesty: upstream error events in OpenAI-compatible streams (rate limit, content filter) now surface as errors instead of a silent truncated "STOP"; garbage-only streams fail loudly; unary error bodies return 502.
  • Settings sync: cross-process file lock + in-process mutex around App 2.0 / IDE / CLI sync — concurrent syncs can no longer lose updates; a failed backup now aborts the write instead of proceeding.
  • ChatGPT OAuth: token refresh-and-retry on 401, fsync before token-file rename (crash-safe), non-blocking sign-in flow with status polling.
  • Installers fail-closed: SHA-256 verification against SHA256SUMS.txt now aborts on missing/mismatched checksums (explicit opt-out: AGY_BYOM_SKIP_CHECKSUM=1); pinned versions build from the pinned tag; exact checksum-file matching on Windows.

📦 Upgrade

# Linux / macOS
curl -fsSL https://raw.githubusercontent.com/minhdevtry/agy-byom/main/get.sh | bash
# Windows
irm https://raw.githubusercontent.com/minhdevtry/agy-byom/main/get.ps1 | iex

Config migrates automatically; existing providers/models are preserved. Restart Antigravity once after upgrade.

🧪 Quality

  • go vet clean; full test suite passes with -race; cross-built for linux/darwin/windows (amd64/arm64).
  • New regression tests: breaker probe lifecycle, OpenAI stream error events, concurrent settings sync, ChatGPT token refresh.

Full Changelog: v1.0.1...v1.2.0