Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support subscription accounts (e.g. ChatGPT/Codex) with Coder Agents for better pricing #26866

Description

@bpmct

The Problem

Coder Agents does not natively support authentication with subscription accounts which are, for example, $20/mo subscriptions to a specific AI provider. These may have usage caps, but are great predictable ways to use lots of AI. This is because we do not properly support the OAuth sign-in flow to delegate and refresh the short-lived session token.

Because of this, many users find themselves paying much more in API pricing (e.g. $331 in a week vs fixed $20/mo) in tokens when using Coder Agents.

Solution

For AI providers that support external harnesses on subscription (e.g. OpenAI Codex), we should add a "sign in" flow (similar to OpenCode so that a user can use their subscription accounts.

Alternatively, for those not looking to use Coder Agents, see: #26864

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions