Repository navigation
Releases
v1.0.1
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
systemmessages within Anthropic conversation history as in-place developer instructions. - Accept
temperature,top_p, andtop_kon/v1/messagesfor 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_MODELforclaude-*models,CODEX_AS_API_COMPACT_MODELfor compaction, andCODEX_AS_API_FALLBACK_ON_UNKNOWN_MODELfor unknown or omitted models. - Append usage records for completed streaming and non-streaming
/v1/messagesrequests to the JSONL file set byCODEX_AS_API_USAGE_LOG(orMAGI_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
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/responsesfor streaming and non-streaming responses andPOST /v1/responses/compactfor remote compaction) across Python, TypeScript, and Rust (create_response/create_responses_stream/compact_responses,createResponse/createResponsesStream/compactResponses, andcreate_native_response/stream_prepared_native_responses/compact_native_responsesonChatGPTOAuthProvider), including localprevious_response_idchain replay/commit (includinginput: []continuations),reasoning.summary(auto,concise,detailed,none),subagent/memgen_requestheaders, function and hostedweb_searchtool normalization, and synthesizedoutput_text. - Bridge hosted Anthropic
web_searchtools (web_search,web_search_20250305,web_search_20260209, includingallowed_domains,user_location,tool_choice: {"type": "tool", "name": "web_search"}, and positive integermax_usesvalidated and accepted for Anthropic compatibility without upstream enforcement) on Classic Responses (responses_lite: falseor"auto"when the selected model uses Classic Responses) to Codex hostedweb_searchwithinclude: ["web_search_call.action.sources"], and map upstreamweb_search_callitems (searchincluding multi-queryaction.queries,open_page, andfind_in_pageactions) into Anthropicserver_tool_useandweb_search_tool_resultblocks plususage.server_tool_usewhile preserving rawweb_search_callitems on/v1/responses. - Accept replayed Anthropic
document(plain-text/content sources),search_result,server_tool_use, andweb_search_tool_resultcontent blocks in user, assistant, andtool_resultmessage 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: []andstop_sequences: [],store: false,usermetadata on/v1/chat/completionsand/v1/images/generations,stream_options: {"include_usage": true | false | null}on streaming endpoints (andstream_options: null), Anthropicmetadataobjects with arbitrary string ornullentries, andcitations: []or{"enabled": false}on Anthropic content blocks. - Accept full Anthropic
MessageCreateParamsenvelopes onPOST /v1/messages/count_tokensandPOST /v1/messages/compact(temperature,top_p,top_k,stop_sequences, all validtool_choicevariants, and optionalmax_tokenson/v1/messages/compact) so callers can pass their existing request payload directly.
v0.10.2
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 viatimeoutMsandsignal)
covering the request and SDP answer read so silent or trickling upstream responses
abort with504instead of waiting indefinitely. - Bound each WebSocket sideband join handshake in
relayRealtimeSideband/
attachRealtimeSidebandwith a wall-clock deadline (SIDEBAND_HANDSHAKE_TIMEOUT_MS = 10_000,
configurable viahandshakeTimeoutMs; cleared immediately onopen), close the
client with4504(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-idheader inattachRealtimeSideband. - Reject whitespace-only
CODEX_AS_API_ADMIN_KEYvalues with503(management_disabled)
in TypeScript and Rust, matching Python. - Align Rust
POST /auth/loginrequest body limit to4,096bytes and return400
(invalid_request) when exceeded, matching Python and TypeScript. - Derive session-scoped
prompt_cache_keyfromx-claude-code-session-idon
POST /v1/messages/compactin Python and TypeScript, matching Rust.
v0.10.1
Preserve late system notes across Python, TypeScript and Rust chat histories
- Keep initial
systemmessages in top-levelinstructions, and preservesystem
messages appended after conversation history starts at their original positions as
developerinput items across Python, TypeScript and Rust chat requests.
Appending per-turn runtime notes after tool results no longer mutates
instructionsor invalidates the cached prefix of the prior conversation history. - Remote compaction (
/v1/compactand/v1/messages/compact) remains unchanged so
system directives continue to forminstructionsduring compaction. - Document current preview constraints of OpenAI's public "Sign in with ChatGPT"
(chatgpt.tokens.use.direct) route inREADME.md.
v0.10.0
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