Skip to content
Docs
GitHub

ChatGPT Plan

Use the ChatGPT Plan driver in a custom Everruns framework host.

1 min readEdit on GitHub

Applies toFrameworkSelf-hosted (not available)Everruns Demo (not available)

The chatgpt framework driver can run supported models through a personal ChatGPT Plan allowance. It requires an OpenAI Sign in with ChatGPT grant from the account owner. The Everruns Platform UI does not offer this provider or its models because Everruns does not have a registered web OAuth client and callback for this flow.

OpenAI’s open-source sign-in flow requires a 127.0.0.1 browser callback. If the host runs elsewhere, use the framework’s local login helper on the computer running the browser and transfer the resulting credentials to the host over a protected channel. The driver package includes a chatgpt-login example for this purpose. Hosts are responsible for securing tokens and binding each connection to its owner. The loopback helper returns a plain-text completion message by default. A host can call LoginAttempt::with_success_page_html before finish to show its own branded completion page after a valid callback.

When the host already supplies authentication implementing ProviderAuth, use everruns::ChatGpt::new(auth) (chatgpt feature), or everruns::Codex::new(auth) for the legacy Codex route (codex feature), and pass the value to .provider(...). The host continues to own sign-in, token storage and refresh.

For token-store composition, everruns_drivers::codex::driver(store) builds one provider for chat and model listing from a host token store, and codex::driver::ephemeral(grant) does the same for a grant held only in memory. Select the grant’s route with TokenRoute::Codex or TokenRoute::ChatGptPlan. Settings the route cannot use fail when the provider is built, with a CodexDriverError that names the setting.

The driver uses streaming, stateless Responses requests with store=false. Local function and custom tools use namespaces. Web search is available when the selected model and account support it. Text, image, and file inputs depend on the selected model. API-only hosted capabilities, audio, and video are unavailable. See OpenAI’s preview limitations and models and inference.