warp icon indicating copy to clipboard operation
warp copied to clipboard

OAuth Support for ChatGPT Plus/Pro (Bypass BYOK API Costs)

Open Patrik88 opened this issue 9 months ago • 16 comments

Pre-submit Checks

Describe the solution you'd like?

I want to use Warp as my full-time coding agent, but relying on standard per-token API keys (BYOK) is too expensive for heavy daily use. Implementing a flexible provider layer—similar to the open-source @mariozechner/pi-ai library—would solve this perfectly.

Key Requests:

  • OAuth Integration (High Priority): Support logging in directly with OpenAI ChatGPT Plus/Pro (Codex) via OAuth. This allows users to leverage their existing flat-rate subscriptions and extended context windows instead of paying API fees.
  • Broader Ecosystem: Support for local models (e.g., Ollama), enterprise setups (Azure), and other OAuth providers (GitHub Copilot, Google Cloud).

Why it matters: The current cost barrier forces me to switch to other tools for heavy tasks just to save money. Letting users authenticate with their existing premium subscriptions would allow me, and many others, to stay in Warp full-time.

Is your feature request related to a problem? Please describe.

No response

Additional context

No response

Operating system (OS)

macOS

How important is this feature to you?

5 (Can't work without it!)

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

Patrik88 avatar Feb 24 '26 16:02 Patrik88

+1. I dropped Warp because i cannot login with my 200 bucks a month plan... they insist on selling AI but they do not build one... go figure.

paulo-advent avatar Mar 02 '26 23:03 paulo-advent

Same. I'm sticking with opencode until this becomes a thing.

neocody avatar Mar 11 '26 14:03 neocody

Same, Dropped since I can't use OAuth...

antunes145 avatar Apr 23 '26 02:04 antunes145

Will this change with the shift to OSS?

siraht avatar Apr 29 '26 16:04 siraht

100% agree, this would be invaluable.

aberemia24 avatar Apr 30 '26 10:04 aberemia24

Thanks for raising this. @zachlloyd started a discussion for BYO LLM support across BYOK, arbitrary OpenAI-compatible endpoints, local model support, and ACP. Here's the latest update: https://github.com/warpdotdev/warp/discussions/9619#discussioncomment-16831279

bholmesdev avatar May 06 '26 21:05 bholmesdev

+1 really need it

mikhailmits avatar May 07 '26 06:05 mikhailmits

+1

bc-op avatar May 15 '26 01:05 bc-op

+1

ConnorCorrigan avatar Jun 05 '26 20:06 ConnorCorrigan

+1 - should be also easy to add by pointing a coding agent to the opencode source code

marcusschiesser avatar Jul 15 '26 13:07 marcusschiesser

+1

https://github.com/warpdotdev/warp/issues/12289

okocsis avatar Aug 12 '26 15:08 okocsis

+1 - should be also easy to add by pointing a coding agent to the opencode source code

https://github.com/warpdotdev/warp/issues/12289#issuecomment-5268599060

@marcusschiesser you can use my rebased branch and build a WarpOss app yourself like I did. It works for me there like a charm.

okocsis avatar Aug 12 '26 15:08 okocsis

Yes , I’d like to see the ability to use other coding harnesses as the base harness inside warp. No offense but the warp agent harnesses with orchestration is very lacking in ability and features. Orchestration had me exited but was very weak.

Thanks Wagner Antunes

On Wed, Aug 12, 2026 at 11:07 AM Oliver Kocsis @.***> wrote:

okocsis left a comment (warpdotdev/warp#8759) https://github.com/warpdotdev/warp/issues/8759#issuecomment-5268644421

+1 - should be also easy to add by pointing a coding agent to the opencode source code

#12289 (comment) https://github.com/warpdotdev/warp/issues/12289#issuecomment-5268599060

@marcusschiesser https://github.com/marcusschiesser you can use my rebased branch and build a WarpOss app yourself like I did. It works for me there like a charm.

— Reply to this email directly, view it on GitHub https://github.com/warpdotdev/warp/issues/8759?email_source=notifications&email_token=ADBGGQVZ4G5ECCFZ5OD6IW35JSB4XA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRWHA3DINBUGIY2M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5268644421, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBGGQUOYTQJJQCOT27SUTL5JSB4XAVCNFSNUABFKJSXA33TNF2G64TZHMZTQNBSGE4TSOJQHNEXG43VMU5TGOJYGQ3TAMRZHA3KC5QC . You are receiving this because you commented.Message ID: @.***>

antunes145 avatar Aug 12 '26 15:08 antunes145

Posting on behalf of @ArdurAI.

@oss-maintainers — we would like to request a readiness and architecture decision on this issue before preparing any implementation.

We reviewed prior attempts #12683 and #13804 and the latest maintainer clarification in #12289. We understand that routing ChatGPT/Codex subscription credentials through the current server-backed Warp harness is blocked because the server half is not open source. We are not proposing to revive that design.

OpenAI documents codex app-server as the supported integration surface for embedding Codex in another product. It can run locally over stdio and owns the supported authentication lifecycle:

  • managed ChatGPT login (account/login/start with type: "chatgpt" or beta chatgptDeviceCode), including token persistence and refresh;
  • API-key login (type: "apiKey").

Would Warp consider a spec for a separate, fully client-side Codex runtime/provider with this boundary?

Warp UI → local codex app-server (stdio) → Codex

The scope would:

  • leave the existing OpenAI BYOK provider and server-backed Agent route unchanged;
  • keep ChatGPT credentials inside Codex instead of adding OAuth tokens or account IDs to Warp protobufs or server code;
  • avoid reading or rewriting ~/.codex/auth.json;
  • expose explicit ChatGPT-versus-API-key auth state, logout/cancellation, and rate-limit/plan status;
  • treat the current experimental status of app-server as a rollout constraint.

Official OpenAI references:

If this architecture aligns with the Warp client-side harness or ACP direction, would you mark #8759 ready-to-spec so we can prepare specs/GH8759/product.md and specs/GH8759/tech.md? If not, a clear blocked-until-server-open decision would prevent another duplicate PR.

gnanirahulnutakki avatar Aug 12 '26 20:08 gnanirahulnutakki

Posting on behalf of @ArdurAI.

@oss-maintainers — we would like to request a readiness and architecture decision on this issue before preparing any implementation.

We reviewed prior attempts #12683 and #13804 and the latest maintainer clarification in #12289. We understand that routing ChatGPT/Codex subscription credentials through the current server-backed Warp harness is blocked because the server half is not open source. We are not proposing to revive that design.

OpenAI documents codex app-server as the supported integration surface for embedding Codex in another product. It can run locally over stdio and owns the supported authentication lifecycle:

  • managed ChatGPT login (account/login/start with type: "chatgpt" or beta chatgptDeviceCode), including token persistence and refresh;
  • API-key login (type: "apiKey").

Would Warp consider a spec for a separate, fully client-side Codex runtime/provider with this boundary?

Warp UI → local codex app-server (stdio) → Codex

The scope would:

  • leave the existing OpenAI BYOK provider and server-backed Agent route unchanged;
  • keep ChatGPT credentials inside Codex instead of adding OAuth tokens or account IDs to Warp protobufs or server code;
  • avoid reading or rewriting ~/.codex/auth.json;
  • expose explicit ChatGPT-versus-API-key auth state, logout/cancellation, and rate-limit/plan status;
  • treat the current experimental status of app-server as a rollout constraint.

Official OpenAI references:

If this architecture aligns with the Warp client-side harness or ACP direction, would you mark #8759 ready-to-spec so we can prepare specs/GH8759/product.md and specs/GH8759/tech.md? If not, a clear blocked-until-server-open decision would prevent another duplicate PR.

To me this sounds like an avoidable roundrip of control flow, that makes more room for bugs and make to integration potentionally clunkier. I think it's much easier to just create a warpium build that has no TOS incompatibilites and has closed source warp backend integration as an opt in option amongst others.

https://github.com/warpdotdev/warp/issues/12289#issuecomment-5278422056

That being said, I mean no disrespect to warp's creators. I do appreciate all the effort you guys put into this, and am grateful for making it opensource.

I just have the feeling that the benefit for even more liberation in terms of features like this or similar outweight the potential downs sides, I guess being that warp is still a company that wants to sell it's services and make well deserved profit.

Me personally I like UX and UI of warp much better then other tools like opencode, but still was made to jump back and forward between them.

Thanks for reading all this, Best, Oliver

okocsis avatar Aug 13 '26 09:08 okocsis

Hey all, I'm happy to announce that we now have support for connecting your ChatGPT plan in Warp! Here are our docs explaining how to link your plan to your existing Warp account: https://docs.warp.dev/agents/inference/chatgpt-subscription/#link-an-existing-warp-account.

danielpeng2 avatar Oct 06 '26 06:10 danielpeng2