Vibe.Codex.Usage (vibe v0.2.0)

Copy Markdown View Source

Codex subscription usage/limit awareness.

Uses the public Codex CLI app-server JSON-RPC method discovered in the open Codex/CodexBar implementations: account/rateLimits/read. This avoids screen scraping https://chatgpt.com/codex/settings/usage and reuses the user's existing Codex login.

Summary

Functions

account(opts \\ [])

@spec account(keyword()) :: {:ok, map()} | {:error, term()}

limits(opts \\ [])

@spec limits(keyword()) :: {:ok, map()} | {:error, term()}