Skip to content

Releases

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 18 Nov 09:49

GPT-6.2 reasoning replay and Anthropic/Claude Code compatibility

  • Extend signed reasoning replay to GPT-6.2 Sol, GPT-6.2 Astra, and GPT-6.1 Terra.
  • Accept system messages within Anthropic conversation history as in-place developer instructions.
  • Accept temperature, top_p, and top_k on /v1/messages for SDK compatibility; Codex does not apply these sampling controls.
  • Strip Unicode property escape patterns (\p{...} and \P{...}) from Anthropic tool schemas for upstream compatibility.
  • Opt into Anthropic model routing with CODEX_AS_API_SUBAGENT_MODEL for claude-* models, CODEX_AS_API_COMPACT_MODEL for compaction, and CODEX_AS_API_FALLBACK_ON_UNKNOWN_MODEL for unknown or omitted models.
  • Append usage records for completed streaming and non-streaming /v1/messages requests to the JSONL file set by CODEX_AS_API_USAGE_LOG (or MAGI_USAGE_LOG).
  • Image generation accepts partial image items and empty assistant placeholders, and returns redacted protocol diagnostics for malformed upstream responses. TypeScript and Rust no longer inherit text-model reasoning defaults for images; Python keeps its existing default, and all three still accept explicit reasoning.

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 05:00

Native OpenAI Responses HTTP endpoints, hosted Anthropic WebSearch bridge, and SDK default compatibility across Python, TypeScript, and Rust

  • Add native OpenAI Responses HTTP endpoints (POST /v1/responses for streaming and non-streaming responses and POST /v1/responses/compact for remote compaction) across Python, TypeScript, and Rust (create_response/create_responses_stream/compact_responses, createResponse/createResponsesStream/compactResponses, and create_native_response/stream_prepared_native_responses/compact_native_responses on ChatGPTOAuthProvider), including local previous_response_id chain replay/commit (including input: [] continuations), reasoning.summary (auto, concise, detailed, none), subagent/memgen_request headers, function and hosted web_search tool normalization, and synthesized output_text.
  • Bridge hosted Anthropic web_search tools (web_search, web_search_20250305, web_search_20260209, including allowed_domains, user_location, tool_choice: {"type": "tool", "name": "web_search"}, and positive integer max_uses validated and accepted for Anthropic compatibility without upstream enforcement) on Classic Responses (responses_lite: false or "auto" when the selected model uses Classic Responses) to Codex hosted web_search with include: ["web_search_call.action.sources"], and map upstream web_search_call items (search including multi-query action.queries, open_page, and find_in_page actions) into Anthropic server_tool_use and web_search_tool_result blocks plus usage.server_tool_use while preserving raw web_search_call items on /v1/responses.
  • Accept replayed Anthropic document (plain-text/content sources), search_result, server_tool_use, and web_search_tool_result content blocks in user, assistant, and tool_result message history by rendering structured text representations instead of rejecting multi-turn conversations.
  • Accept standard SDK default/no-op controls that match Codex OAuth behavior: empty stop: [] and stop_sequences: [], store: false, user metadata on /v1/chat/completions and /v1/images/generations, stream_options: {"include_usage": true | false | null} on streaming endpoints (and stream_options: null), Anthropic metadata objects with arbitrary string or null entries, and citations: [] or {"enabled": false} on Anthropic content blocks.
  • Accept full Anthropic MessageCreateParams envelopes on POST /v1/messages/count_tokens and POST /v1/messages/compact (temperature, top_p, top_k, stop_sequences, all valid tool_choice variants, and optional max_tokens on /v1/messages/compact) so callers can pass their existing request payload directly.

v0.10.2

Choose a tag to compare

@github-actions github-actions released this 13 Nov 11:06

Realtime call & sideband deadlines and cross-runtime parity fixes

  • Bound createRealtimeCall (POST /v1/realtime/calls) with a wall-clock deadline
    (REALTIME_CALL_TIMEOUT_MS = 15_000, configurable via timeoutMs and signal)
    covering the request and SDP answer read so silent or trickling upstream responses
    abort with 504 instead of waiting indefinitely.
  • Bound each WebSocket sideband join handshake in relayRealtimeSideband /
    attachRealtimeSideband with a wall-clock deadline (SIDEBAND_HANDSHAKE_TIMEOUT_MS = 10_000,
    configurable via handshakeTimeoutMs; cleared immediately on open), close the
    client with 4504 (realtime sideband unavailable (timeout)) on timeout, and
    reject the returned Promise on join or validation failure so callers never mark a
    call live when the sideband WebSocket fails to attach. Forward the HTTP upgrade
    voice-session-id header in attachRealtimeSideband.
  • Reject whitespace-only CODEX_AS_API_ADMIN_KEY values with 503 (management_disabled)
    in TypeScript and Rust, matching Python.
  • Align Rust POST /auth/login request body limit to 4,096 bytes and return 400
    (invalid_request) when exceeded, matching Python and TypeScript.
  • Derive session-scoped prompt_cache_key from x-claude-code-session-id on
    POST /v1/messages/compact in Python and TypeScript, matching Rust.

v0.10.1

Choose a tag to compare

@github-actions github-actions released this 10 Nov 08:27

Preserve late system notes across Python, TypeScript and Rust chat histories

  • Keep initial system messages in top-level instructions, and preserve system
    messages appended after conversation history starts at their original positions as
    developer input items across Python, TypeScript and Rust chat requests.
    Appending per-turn runtime notes after tool results no longer mutates
    instructions or invalidates the cached prefix of the prior conversation history.
  • Remote compaction (/v1/compact and /v1/messages/compact) remains unchanged so
    system directives continue to form instructions during compaction.
  • Document current preview constraints of OpenAI's public "Sign in with ChatGPT"
    (chatgpt.tokens.use.direct) route in README.md.

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 10:28

Standalone browser login — no Codex installation required

Python, TypeScript and Rust now support ordinary browser OAuth with PKCE and a local callback. Applications start POST /auth/login, open the returned auth_url, and poll or cancel through the management API. Set the independent CODEX_AS_API_ADMIN_KEY to enable management.

Upgrade notice: codex-as-api now owns its credentials; existing Codex authentication is not discovered or imported. Sign in once for codex-as-api after upgrading. Credentials use CODEX_AS_API_AUTH_PATH, CODEX_AS_API_HOME/auth.json, or ~/.codex-as-api/auth.json.

Browser and server must run on the same machine (callback port 1455, then 1457). Explicit {"method":"device"} remains available for remote/headless use; no automatic fallback. Model configuration and existing inference/Realtime behavior are unchanged.

Login API and migration guide · Detailed release notes

Full Changelog: v0.9.6...v0.10.0

v0.9.6

Choose a tag to compare

@github-actions github-actions released this 28 Oct 12:54

Full Changelog: v0.9.5...v0.9.6

v0.9.5

Choose a tag to compare

@github-actions github-actions released this 27 Oct 12:34

Full Changelog: v0.9.4...v0.9.5

v0.9.4

Choose a tag to compare

@github-actions github-actions released this 27 Oct 03:32

Full Changelog: v0.9.3...v0.9.4

v0.9.3

Choose a tag to compare

@github-actions github-actions released this 26 Oct 19:19

Full Changelog: v0.9.2...v0.9.3

v0.9.2

Choose a tag to compare

@github-actions github-actions released this 24 Oct 00:54

Full Changelog: v0.9.1...v0.9.2