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 account access. Internal transport route names are not separate providers and are not shown in normal model pickers.Where to set it up
Use the same two OpenAI methods in every setup surface:- 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. Choose OpenAI (OpenAI sign-in + API key), then pick OpenAI sign-in or OpenAI API key.
- CLI: Use
fased onboard --auth-choice openai-codexfor sign-in,fased onboard --auth-choice openai-api-key, orfased onboard --openai-api-key "$OPENAI_API_KEY"for API key setup.
- Sign in uses the Fased-managed, version-matched OpenAI sign-in runtime.
- API key uses the direct OpenAI API route and account model discovery.
- Available: models reported for the authenticated account or endpoint.
- Recommended: Fased’s ranked subset of those available models.
- Assigned: models saved for this Agent’s primary, fallback, cheap, strong, escalation, coding, and summarizer roles.
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.
fased update updates core, Gateway, dashboard assets, and the managed
runtime together. If a matching runtime is missing, authenticated discovery or
execution repairs it before listing or running a sign-in model.
Sign-in onboarding setup
Sign-in CLI setup
Sign-in model selection
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). - Model availability can differ between ChatGPT sign-in and an OpenAI API key. The UI groups both under OpenAI while preserving the exact credential route internally.
- The Gateway owns the authenticated model catalog. Agent > Models and Chat and Tasks consume that same canonical catalog and persisted assignment records; they do not maintain separate entitlement lists.
- 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.