Skip to content

Route and compliance

Christian Trey Rowell edited this page Dec 3, 2026 · 1 revision

Route and compliance

English | 简体中文

This page states exactly what the plugin sends and to whom, what it never touches, and how that lines up with OpenAI's Sign in with ChatGPT Terms. It describes the code at release 2.3.0; it is not legal advice.

Where requests go

This section lists every network destination the plugin uses.

Destination Used for
https://auth.openai.com/.well-known/openid-configuration Discovery of the live OAuth endpoints
The authorization, token, JWKS, and revocation endpoints named by discovery (fallbacks: https://auth.openai.com/api/accounts/authorize, https://auth.openai.com/api/accounts/oauth/token, https://auth.openai.com/.well-known/jwks.json; no fallback for revocation) Sign-in, token exchange and refresh, ID-token verification, sign-out
https://api.openai.com/v1/models Your account's model catalog
https://api.openai.com/v1/responses Model calls
http://127.0.0.1:<port>/auth/callback A local listener that exists only while a sign-in is waiting for its callback

The plan token is attached only to https://api.openai.com or a loopback host (for local testing). This is checked when the configuration is loaded and again before every request that carries the token. Every token-bearing request is made with redirects refused, so a 307 or 308 cannot carry a token or a prompt to another origin.

What a model call contains

This section lists the complete request, so you can see that nothing extra rides along.

Headers: authorization: Bearer <your token>, content-type: application/json, the user-agent that DSH assigns to its own requests, and session-id when DSH supplied a session id.

The body can contain only these keys:

Key Value
model The model you picked
instructions The leading system prompt, when there is one
input The conversation: user, assistant, and developer messages, function calls and their outputs, and replayed reasoning items
tools, tool_choice Your DSH function tools as type: "function", with tool_choice: "auto"; omitted when there are no tools
reasoning { effort }, plus summary: "auto" unless the effort is none or the model does not support summaries; omitted when no effort applies
include ["reasoning.encrypted_content"] when an effort other than none applies
prompt_cache_key The DSH session id (hashed when longer than 64 characters)
service_tier "priority" only, and only under the conditions in Configuration; otherwise absent
store Always false
stream Always true

The request type has no other fields, so these are never sent: max_output_tokens, temperature, top_p, prompt_cache_retention, truncation, metadata, user, previous_response_id, background, conversation. A system message is never sent as a role: "system" input item; a later system prompt goes in as a developer item.

What the plugin never touches

This section is the list of things the code does not do, each of which other ChatGPT plugins for DSH do in some form.

  • It never calls chatgpt.com/backend-api/codex or any other Codex backend endpoint.
  • It never reads or writes ~/.codex/auth.json or any other Codex CLI state, and never uses the Codex CLI's app_EMoam… client id.
  • It never routes requests through a relay such as sub2api, a shared account, or a token pool.
  • It never sends one account's client id with another account's tokens, and has no logic that rotates accounts to get around limits.
  • It does not open an HTTP endpoint for other programs. The only listener is the loopback sign-in callback, and it closes when the sign-in settles.
  • It does not offer hosted tools (image generation, file search, code interpreter, hosted MCP). Only your DSH function tools are sent.

The plugin does read some response headers whose names start with x-codex-primary-, x-codex-secondary-, and x-ratelimit-. These come back from api.openai.com on ordinary Responses calls; the plugin stores the non-secret ones as the Observed usage window shown on the card. It skips any value shaped like a credential and never stores x-codex-turn-state. It sends no Codex headers.

Your tokens stay local

This section covers where credentials live and where they never appear.

  • Tokens are stored only in the local accounts file (0600, directory 0700), described in Sign-in and accounts.
  • No CLI command prints a token. doctor and discover output is token-free and safe to paste into an issue; discover also leaves out email and name.
  • The card's account view crosses DSH's remote-call boundary through a strict schema. Catalog rows are projected through an allowlist, so the raw catalog row and any base_instructions never reach the browser.
  • During reauthorization, the stored ID token is removed from the URL that is printed and handed to the browser.

SIWC Terms, clause by clause

This section maps the parts of OpenAI's Sign in with ChatGPT Terms (effective November 4, 2026; read on 2026-12-03) that bear on a plan-usage client to what the code does.

Terms say What the plugin does
"Use your app's own name during sign-in and activation. Do not impersonate OpenAI, another application or entity, or another open-source project." (§1) Registers as DSH SIWC by default (agentNameHint). The name is yours to change; do not set it to another product's name.
"Obtain and use SIWC access and refresh tokens … only through OpenAI's supported sign-in flow" (§1) Uses the documented open-source flow: client_id=dynamic_agent_client, PKCE, no client secret, resource=https://api.openai.com/v1.
"Any persistent storage of Authentication Tokens must be local and under the user's control" (§1) Tokens are stored only in the local accounts file on your machine.
No "pooling, transferring, reselling, gifting, or sharing ChatGPT plan usage or Authentication Tokens"; no "rotating accounts" (§3.1) One account's tokens are only used for that account's requests; there is no pooling, sharing, or rotation code.
"Requests must originate from the user's local runtime or a remote runtime only that user controls." (§3.1) Requests come from the DSH process you run, for the account you signed in with.
"Use the user's plan only for the application they connected. Do not provide general-purpose API access for other tools" (§3.1) The plan is used only by this DSH provider route; there is no proxy endpoint.
"Users must be able to use their ChatGPT plan through SIWC without paying you" (§3.1) MIT licensed, free, no paid tier.
"Do not imply OpenAI sponsorship or endorsement" (§5) The repository and this wiki state that the project is not affiliated with or endorsed by OpenAI.
OpenAI "may suspend or disable your application's access to SIWC if it violates these Terms or presents a security, safety, or abuse risk." (§7) Nothing in the plugin can prevent that. Plan eligibility and plan limits are OpenAI's.

OpenAI's preview limitations for plan usage require store: false and stream: true, reject role: "system" input items, and list unsupported fields; the request above follows those rules.

Known differences from OpenAI's documentation

This section lists where the plugin and OpenAI's current plan-usage documentation do not line up yet.

  • Files and tool-result attachments. OpenAI's preview page says text, images, and files are supported when the model accepts them. In 2.3.0 the plugin sends surface user images as input_image data: URLs to models whose catalog row discloses image input, while files and attachments inside tool results continue to use DSH's placeholder text; see Models and catalog.
  • Tool layout. The preview page describes grouping function tools in namespaces or supplying them as additional_tools input items. The plugin sends top-level tools of type: "function". This has not been reconciled against that wording.

Clone this wiki locally