sync-openai-apis

sync-openai-apis is a command for Claude Code from enricoros/big-AGI. It costs 9 tokens per session (607 once invoked), scanned A, original, MIT.

A command that checks an OpenAI API integration against the latest official documentation. It focuses on the Responses API and also covers the older Chat Completions API.

In plain words
What is it for?
Use it to review message types, request-building adapters, and streaming or non-streaming response parsers for supported OpenAI APIs.
Why use it?
OpenAI APIs change over time, so request formats, response parsing, models, and prices can become outdated. This helps identify updates needed in existing code.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to review message types, request-building adapters, and streaming or non-streaming response parsers for supported OpenAI APIs.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/enricoros/big-agi/sync-openai-apis
About the project

Big-AGI is an open-source workspace for using multiple AI models through chat and other AI functions. It is intended for engineers, founders, researchers, and other users who want to work with AI personas, model comparisons, image generation, voice, documents, and code-related features. The catalogue entries provide commands, instructions, and a skill for working with Big-AGI.

enricoros/big-AGI · 7,118 stars · on GitHub · big-agi.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/enricoros/big-AGI

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-openai-apis

README.md
[![agentmods](https://agentmods.dev/badge/commands/enricoros/big-agi/sync-openai-apis/github.svg)](https://agentmods.dev/commands/enricoros/big-agi/sync-openai-apis)
Your own site
<a href="https://agentmods.dev/commands/enricoros/big-agi/sync-openai-apis"><img src="https://agentmods.dev/badge/commands/enricoros/big-agi/sync-openai-apis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync-openai-apis

Your own site · 80×15
<a href="https://agentmods.dev/commands/enricoros/big-agi/sync-openai-apis"><img src="https://agentmods.dev/badge/commands/enricoros/big-agi/sync-openai-apis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 607 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.00607
Opus 5 $0.00005 $0.00303
Sonnet 5 $0.00002 $0.00121
Haiku 4.5 $0.00001 $0.00061

Measured 9d ago against content hash e55c2aeb0b55, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

sync-openai-apis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/aix/sync-openai-apis.md · 36 lines

What it actually says

Please take a look at my API code for OpenAI: message wire types src/modules/aix/server/dispatch/wiretypes/openai.wiretypes.ts, assembly of the request messages (adapters) src/modules/aix/server/dispatch/chatGenerate/adapters/openai.chatCompletions.ts, and parsing of the response in streaming or not src/modules/aix/server/dispatch/chatGenerate/parsers/openai.parser.ts.

IMPORTANT: we prioritize the new Responses API, while Chat Completions is still supported but legacy. We do NOT support other APIs such as Realtime (incl. websockets), etc. We also do not support Agentic APIs (Agent SDK, AgentKit, ChatKit, Assistants API etc), as we perform similar functionality in AIX (server or client side).

Then take a look at the newest API information available. Try these sources, and be creative if some are blocked:

Primary Sources:

Alternative Sources if primary blocked:

If all blocked: Explain what you attempted and ask user to provide documentation manually.

Live endpoint (extra signal): If .env.api-keys has OPENAI_API_KEY, fire a real streaming request and inspect the raw SSE - ground-truth for new fields, event types, response shapes, and error formats that docs lag: POST https://api.openai.com/v1/responses (or legacy /v1/chat/completions), "stream":true. Never commit or echo the key.

$ARGUMENTS Check carefully and look if there are any discrepancies in the protocols, the available API surface, the structure of the messages, functionality, logic, etc. Make sure you look deep in the fields of the requests and responses, especially required fields, streaming event types, and any new response shapes.

Please point out all of the differences in the API whether it's in the final parsing and reassembly of the streaming message, or the protocol changed, etc. Prioritize breaking changes and new capabilities that would improve the user experience.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 36 lines · 9 tokens per session scan A e55c2aeb0b55

Subscribe to this mod's changes

sync-openai-apis is a command published in the GitHub repository enricoros/big-AGI (7,118 stars, last pushed today), licensed MIT. It adds 9 tokens to every session and 607 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.