@x-otto/plugin-openai-codex
v0.1.0-alpha.0
Published
> OAuth-based OpenAI ChatGPT (Codex) subscription provider plugin.
Downloads
144
Readme
@x-otto/plugin-openai-codex
OAuth-based OpenAI ChatGPT (Codex) subscription provider plugin.
Provides access to OpenAI GPT models via a ChatGPT subscription OAuth flow (PKCE). Previously built-in, now a first-party plugin. Uses the openai-responses wire protocol with JWT-derived request headers from the ChatGPT OAuth tokens.
How it works
This plugin combines declarative OAuth (PKCE flow in otto-plugin.json contributes.oauth) with declarative provider (contributes.providers). It uses tokenDerivedHeaders to extract the chatgpt-account-id from the JWT claims in the OAuth tokens — a requirement for the ChatGPT Codex backend API.
The OAuth loopback ports (1455, 1457) and the assumesLoopbackAlways flag handle the browser-less CLI redirect flow.
Installation
otto extension install plugin-openai-codexRequires plugin-otto-wire-protocols to be installed and trusted.
Configuration
otto auth login openai-codexProvided models
| Model | Context | Strengths |
|-------|---------|-----------|
| openai/gpt-5.1-codex | 400K | reasoning, knowledge, coding, planning |
Dependencies
plugin-otto-wire-protocols(runtime peer)
