Skip to content

[FEATURE]:Expose GitHub Copilot "Auto" option in model selector #25239

Closed as not planned

Description

@Khnx-ai

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Can you please give "Auto" option in model selector for github copilot. it has 10% discount.

Image Image

thanks

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 1, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 1, 2026
  3. github-actions commented on May 1, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please review those issues and consider adding your upvote or comments there instead.

  4. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. juliendf commented on Jun 1, 2026

    @juliendf

    With the recent change to the GitHub Copilot subscription, this might be an interesting feature to implement.

  6. m0wer commented on Jun 11, 2026

    @m0wer

    Implemented a plugin that enables this! See: https://github.com/m0wer/opencode-github-copilot-auto-model

  7. avishefi commented on Jun 11, 2026

    @avishefi

    @m0wer that doesn't use /models/session/intent

  8. m0wer commented on Jun 11, 2026

    @m0wer

    @m0wer that doesn't use /models/session/intent

    I’ve since updated it to follow Copilot auto-session flow via /models/session (with Copilot-Session-Token + runtime model override), which fixed the auto behavior/rate-limit mismatch in opencode.

    It still does not directly call /models/session/intent itself; it relies on Copilot’s returned auto session selection. But works!

  9. avishefi commented on Jun 11, 2026

    @avishefi

    Looking better, so the gap is now on "chat.params" doing the call to /models/session/intent?

  10. mathomp4 commented on Jun 11, 2026

    @mathomp4

    I just tried the plugin and I don't see auto in the /models picker...maybe I'm doing it wrong...

  11. m0wer commented on Jun 12, 2026

    @m0wer

    I just tried the plugin and I don't see auto in the /models picker...maybe I'm doing it wrong...

    Should be called github-copilot/auto.

  12. m0wer commented on Jun 12, 2026

    @m0wer

    Looking better, so the gap is now on "chat.params" doing the call to /models/session/intent?

    Now auto is exposed with a stable id: "auto", and chat.params/chat.headers reliably apply the runtime model override plus Copilot-Session-Token. There is a special session handling for the auto model.

    But there is no gap left. opencode -m github-copilot/auto works and shows the auto assigned model in the TUI.

    Image
  13. avishefi commented on Jun 12, 2026

    @avishefi

    m0wer/opencode-github-copilot-auto-model#1 fixes the routing based on first message using /models/session/intent and scoping the selection to the session instead of globally. It follows the VSCode convention of sticking to the same model family and uses candidate_models instead of selected_model.

  14. mathomp4 commented on Jun 13, 2026

    @mathomp4

    I just tried the plugin and I don't see auto in the /models picker...maybe I'm doing it wrong...

    Should be called github-copilot/auto.

    Huh. I mean I have:

        "github:m0wer/opencode-github-copilot-auto-model",

    in my opencode.jsonc but when I try and run:

    opencode -m github-copilot/auto
    

    the TUI opens and I get in the upper right corner a popup saying:

    Image

    🙁

  15. CharlesAttend commented on Jun 30, 2026

    @CharlesAttend

    This feature is also very important now that Copilot Student only accept auto model selection :/

  16. m0wer commented on Jun 30, 2026

    @m0wer

    The plugin is now working fine with the npm package instead of the GitHub install. And auto model works even after hitting 5h or weekly rate limits.

    See https://github.com/m0wer/opencode-github-copilot-auto-model for the new install instructions.

  17. binbalenci commented on Jul 14, 2026

    @binbalenci

    The plugin is now working fine with the npm package instead of the GitHub install. And auto model works even after hitting 5h or weekly rate limits.

    See https://github.com/m0wer/opencode-github-copilot-auto-model for the new install instructions.

    So I put this in my opencode.jsonc file

    "plugin": [
        [
          "opencode-github-copilot-auto-model",
          {
            "autos": [
              {
                "preferredModels": ["claude-sonnet-4.6", "claude-haiku-4.5"],
              },
              {
                "name": "Auto GPT/Codex",
                "preferredModels": ["gpt-5.4", "gpt-5.4-mini"],
              },
              {
                // Limited/best-effort: see "Gemini and other non-session models".
                "name": "Auto Gemini",
                "preferredModels": ["gemini-3.1-pro-preview", "gemini-3.5-flash"],
              },
            ],
          },
        ],
      ],
    

    I'm able to see these options in the models list

    • Auto
    • Auto Claude
    • Auto GPT/Codex
    • Auto Gemini

    No matter which one I chose, I'm still getting the error model is not supported. One thing I noticed is that if I start a new session with the Auto model, I saw briefly the notification stating a model like GPT 5.4 and reasoning something before this error appears.

    Image
  18. mathomp4 commented on Jul 14, 2026

    @mathomp4

    No matter which one I chose, I'm still getting the error model is not supported. One thing I noticed is that if I start a new session with the Auto model, I saw briefly the notification stating a model like GPT 5.4 and reasoning something before this error appears.

    That is weird. It is working just fine for me. I can do

    Maybe try:

    "opencode-github-copilot-auto-model@0.2.0"
    

    to force the latest version? Maybe? I just tried and "Auto Claude", "Auto GPT", and "Auto Gemini" work for me just fine. And I see the toast popup with the model chosen.

  19. mathomp4 commented on Jul 14, 2026

    @mathomp4

    @binbalenci One thought. Maybe you need the "first" section for it to work? Not sure. But maybe:

    "plugin": [
        [
          "opencode-github-copilot-auto-model",
          {
            "preferredModels": ["claude-sonnet-4.6", "gpt-5.3-codex"],
            "reasoning": ["claude-sonnet-4.6", "gpt-5.3-codex"],
            "noReasoning": ["gpt-5.3-codex", "claude-sonnet-4.6"],
    
            "autos": [
              {
                "preferredModels": ["claude-sonnet-4.6", "claude-haiku-4.5"],
              },
              {
                "name": "Auto GPT/Codex",
                "preferredModels": ["gpt-5.4", "gpt-5.4-mini"],
              },
              {
                "name": "Auto Gemini",
                "preferredModels": ["gemini-3.1-pro-preview", "gemini-3.5-flash"],
              },
            ],
          },
        ],
        "opencode-claude-auth@latest",
      ],
  20. binbalenci commented on Jul 15, 2026

    @binbalenci

    @mathomp4 I did both of those and still not working. Which Copilot plan are you using?

  21. m0wer commented on Jul 15, 2026

    @m0wer

    It's for copilot pro+ annual subscription (only for the existing annual subscriptions).

  22. mathomp4 commented on Jul 15, 2026

    @mathomp4

    It's for copilot pro+ annual subscription (only for the existing annual subscriptions).

    ohhhhh. I'm on enterprise through work. Well, uh, it works for that too.

  23. github-actions commented on Sep 14, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  24. SebbeJohansson commented on Sep 14, 2026

    @SebbeJohansson

    I think that this is still valid.

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

Metadata

Metadata

Assignees

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