Output SDKs

Supercompat returns a client that looks like one of two SDKs — whichever one your application already knows how to use. This is the output SDK.
OpenAI — import from supercompat/openai. You get an OpenAI instance with full TypeScript types. Exposes the Responses API (client.responses.create) and the Assistants API (client.beta.threads.*, client.beta.assistants.*).
Anthropic — import from supercompat/anthropic. You get an Anthropic instance. Exposes the Messages API (client.messages.create).
The backend provider is independent of the output SDK — that's decided by the client adapter. You can point an OpenAI-shaped client at Anthropic, Groq, or Gemini, and you can point an Anthropic-shaped client at OpenAI.

Pick one

Quick comparison

SurfaceImport pathEntry callStateful?
Responses APIsupercompat/openaiclient.responses.create()Optional (conversations)
Assistants APIsupercompat/openaiclient.beta.threads.runs.create()Yes (threads + runs)
Messages APIsupercompat/anthropicclient.messages.create()No
Most new code should use the Responses API. The Assistants API is there for existing applications built on OpenAI's threads/runs surface. The Messages API is for apps already structured around Anthropic.