OpenAI
OpenAI provides developer APIs for GPT models. Fased exposes one OpenAI brand with two auth methods: OpenAI API key for Platform API access and OpenAI sign-in for ChatGPT OAuth access through the legacy internalopenai-codex
compatibility route.
Where to set it up
Use the same two OpenAI methods in every setup surface:| Surface | What to do |
|---|---|
| Control UI | Open Agents, select an Agent, then use Agent > Models. Choose OpenAI, then Sign in or API key, and assign the Agent’s model roles there. Chat can override the model for the current session. |
| Onboarding | Choose Set up model providers only if you want provider setup during onboarding, then choose OpenAI (OpenAI sign-in + API key) and pick OpenAI sign-in or OpenAI API key. |
| CLI | Use fased onboard --auth-choice openai-codex for sign-in, fased onboard --auth-choice openai-api-key, or fased onboard --openai-api-key "$OPENAI_API_KEY" for API key setup. |
- Sign in stores OAuth credentials for
openai-codexand exposesopenai-codex/*model refs. - API key stores an API-key profile for
openaiand exposesopenai/*model refs.
Option A: OpenAI API key (OpenAI Platform)
Best for: direct API access and usage-based billing. Get your API key from the OpenAI dashboard.API key control UI setup
- Open Agents and select the Agent.
- Open Agent > Models.
- Open OpenAI.
- Use API key and paste an OpenAI Platform key.
- Choose the Agent’s OpenAI model roles.
openai:default.
API key onboarding setup
API key CLI setup
API key config snippet
Option B: OpenAI sign-in (ChatGPT)
Best for: using ChatGPT OAuth access instead of an API key.Sign-in control UI setup
- Open Agents and select the Agent.
- Open Agent > Models.
- Open OpenAI.
- Choose Sign in.
- Open or copy the sign-in URL shown in the modal.
- Finish OpenAI login in the browser.
- Return to Agent > Models after the modal reports success, then choose a model role for the Agent or use Chat to override a single session.
openai-codex compatibility route. This is
why the model refs are openai-codex/... even though the user-facing provider
brand is OpenAI.
Sign-in onboarding setup
Sign-in CLI setup
Sign-in config snippet
Sign-in transport default
Foropenai-codex/* sign-in models, Fased uses its managed OpenAI sign-in
transport. You can set
agents.defaults.models.<provider/model>.params.transport when you need to
force the streaming path:
- Default is
"auto"(WebSocket-first, then SSE fallback). "sse": force SSE"websocket": force WebSocket"auto": try WebSocket, then fall back to SSE
OpenAI Responses server-side compaction
For direct OpenAI Responses models (openai/* using api: "openai-responses" with
baseUrl on api.openai.com), Fased now auto-enables OpenAI server-side
compaction payload hints:
- Forces
store: true(unless model compat setssupportsStore: false) - Injects
context_management: [{ type: "compaction", compact_threshold: ... }]
compact_threshold is 70% of model contextWindow (or 80000
when unavailable).
Enable server-side compaction explicitly
Use this when you want to forcecontext_management injection on compatible
Responses models (for example Azure OpenAI Responses):
Enable with a custom threshold
Disable server-side compaction
responsesServerCompaction only controls context_management injection.
Direct OpenAI Responses models still force store: true unless compat sets
supportsStore: false.
Notes
- Model refs always use
provider/model(see /concepts/models). - Auth details + reuse rules are in /concepts/oauth.
- Agent > Models owns OpenAI credentials and that Agent’s model roles. Chat can choose a session-level model from the authenticated provider catalog.