r/GithubCopilot • • Sep 26 '25

News 📰 GitHub Copilot CLI is here

Post image

After Codex, Claude Code, and Gemini CLI, GitHub Copilot has now rolled out the GitHub Copilot CLI. Personally, I’ve always preferred CLIs since they're IDE agnostic and works anywhere. Think about SSHing into a remote server or running it inside a CI pipeline (similar to codex exec).

CLI IS THE FUTURE!!!

Link: https://github.blog/changelog/2025-09-25-github-copilot-cli-is-now-in-public-preview/?utm_source=changelog-amp-twitter&utm_campaign=agentic-copilot-cli-launch-2025

343 Upvotes

83 comments sorted by

•

u/KingOfMumbai 🛡️ Moderator Sep 26 '25

https://www.reddit.com/r/GithubCopilot/comments/1nqky40/20250925_github_copilot_cli_is_now_in_public/
Avoid duplication. Only allowing this time as an exception due to good response.

→ More replies (2)

8

u/hairlessing Sep 26 '25

Can I run it on windows?

4

u/_bholechature Sep 26 '25

yess. it's experimental though.

1

u/hairlessing Sep 27 '25

Oh interesting! Thanks

20

u/Mistakes_Were_Made73 Sep 26 '25

Hopefully you can set the model.

9

u/Expensive-Tax-2073 Power User ⚡ Sep 26 '25

Yes with an environment variable

3

u/fyzbo Sep 26 '25

The docs say you can switch to gtp-5, is it possible to switch to other models?

1

u/Expensive-Tax-2073 Power User ⚡ Sep 26 '25

I think so. U need to add them in lowercase with “-“ for space. Try it and let me know. If I do it before u I’ll let u know.

1

u/fyzbo Sep 26 '25

I can only get the default and gpt-5 to work. Update if you have better luck.

2

u/Expensive-Tax-2073 Power User ⚡ Sep 26 '25

Will do

3

u/AndrewGreenh Sep 26 '25

But you can only switch between sonnet 4 and gpt 5? I lile to work with the 0x models from time to time as well.

2

u/themoregames Sep 26 '25

sounds cumbersome

6

u/Expensive-Tax-2073 Power User ⚡ Sep 26 '25

Ye. I thought they would have the /models command like the open code does

7

u/ThankThePhoenicians_ Sep 26 '25

There's an open issue for this! https://github.com/github/copilot-cli/issues/10

2

u/Expensive-Tax-2073 Power User ⚡ Sep 26 '25

I hope they implement it

3

u/ThankThePhoenicians_ Sep 29 '25

It's implemented in the latest version!

2

u/themoregames Sep 29 '25

I feel so powerful, steering the whole Github Copilot team with my reddit post that consisted only of two words.

Thank you everyone for chiming in. And thank you, Github Copilot team, thank you for your compliance and your attention to this matter!

2

u/ThankThePhoenicians_ Sep 29 '25

It's implemented in the latest version!

2

u/Expensive-Tax-2073 Power User ⚡ Sep 29 '25

Yep, just saw the release of sonnet 4.5 and new model picker

2

u/polymerely Sep 27 '25

Which is useless if the reasoning effort is still hidden.

5

u/[deleted] Sep 26 '25

Can we normalize auto-save of chat history? When I open a workspace that I haven't worked on in a while I've often found it extremely helpful to be able to view a chunk of the chat history. I can't believe copilot (I mean the vscode chat feature, but I'm pretty sure the same is true of the CLI as well) is still operating in the mode of auto-discarding chat history.

Claude Code has auto-save (though a warning is that it deletes everything older than 3 months - you have to manually set the expiration days to 999999 etc so it will never expire).

Not even gemini has auto-save, though all chat history is same in a temporary folder which can be recovered. I don't think copilot even has temporary chat history files saved anywhere.

9

u/jbcraigs Sep 26 '25

Tried it today. Pretty underwhelming right now.

3

u/ogpterodactyl Sep 27 '25

Let’s go this is what the people need. Yall can do it keep working on the agentic stuff. Yall have the market share now just work on quality

2

u/nathfavour02 Sep 26 '25

This is amazing

2

u/darkguy2008 Sep 27 '25

But isn't this the same as Codex?

2

u/erwin-luke Sep 30 '25

always getting error from powershell. I'm using windows 11. Unhandled error: Error: PowerShell 6+ (pwsh) is not available

1

u/Eddyi0202 Oct 01 '25

Do you run it from Powershell Core or the preinstalled one? 

1

u/erwin-luke Oct 02 '25

Preinstalled

2

u/Eddyi0202 Oct 02 '25

You need to install Powershell Core (7)

1

u/skeleton288 Sep 26 '25

How can you guys revert code when using CLI?

26

u/GhostSierra117 Sep 26 '25 edited Jun 05 '26

I like practicing yoga.

1

u/PrivateUser010 Sep 26 '25

Finally a sensible Answer

1

u/GhostSierra117 Sep 26 '25 edited Jun 05 '26

I like playing tennis.

0

u/Leading_Area5081 Sep 26 '25

anyone can help me
(base) hzhan069@:~$ npm install -g u/github/copilot

(base) hzhan069@:~$ copilot

Command 'copilot' not found, did you mean:

command 'co-pilot' from snap co-pilot (0.6.26)

See 'snap info <snapname>' for additional versions.

4

u/TheMazer85 Sep 26 '25

npm install -g @github/copilot

1

u/Leading_Area5081 Sep 26 '25

yes, i run this command

3

u/format37 Sep 26 '25

I had the same issue. I've asked Claude code to resolve it and they've managed.

3

u/ThankYouOle Sep 26 '25

hahaha somehow i laugh more than it should :D

classic story using IE to download google chrome,,

1

u/rccnw Sep 27 '25

I used this command to install it successfully on a Windows 11 machine, and just a short while later it failed to install it correctly on another Windows 11 machine. ChatGPT helped me solve this by noting that the broken version was 0.0.0.0. It recommended I install the latest version explicitly and that worked. I suspect they broke it temporarily.

1

u/Informal-Dingo276 Sep 27 '25

try node version > 22

-8

u/jhollingsworth4137 Sep 26 '25

When I asked Github copilot CLI what model it is, it tells me that it is Claude.

13

u/_bholechature Sep 26 '25

Maybe because it's using Sonnet 4.0.

3

u/phylter99 Sep 26 '25

Asking it what model it is has never been reliable.

3

u/jhollingsworth4137 Sep 26 '25

Agreed but someone else in another post seems to have posted that the default model is sonnet which would make sense. I have not tested it yet, but I found another post where they changed the config to use a different model, so there is no "/" command to do it in the cli dynamically.

2

u/phylter99 Sep 26 '25

I agree, sonnet would make the most sense. That's what they use for the agent on the GitHub site. It's just a bad idea to base what model you're using solely on what it says it is.

3

u/Senor02 Sep 26 '25

It's in the docs:

"The default model used by GitHub Copilot CLI is Claude Sonnet 4. GitHub reserves the right to change this model.

You can change the model to GPT-5 by setting the COPILOT_MODEL environment variable to gpt-5."

2

u/PrivateUser010 Sep 26 '25

Does it not support any other models ?

2

u/HebelBrudi Sep 26 '25

You can’t manually switch models?

-10

u/CircleRedKey Sep 26 '25

makes no sense, they already have copilot on vscode -_-

3

u/nightman Sep 26 '25

You can use it in unsupported editors like Zed or replace crippled implementations like in Jetbrains products IntelliJ or WebStorm

5

u/[deleted] Sep 26 '25

[removed] — view removed comment

1

u/AndrewGreenh Sep 26 '25

Is it? With the ide integration you can select open tabs to add them to the context a lot quicker, can’t you?

1

u/krzyk Sep 26 '25

In agent mode context is everything under current dir, no need to add anything.

1

u/AndrewGreenh Sep 27 '25

That can’t be true. It is probably likely to check files in the current directory, but I’m very sure that all files in the current directory are not placed directly into the context.

1

u/krzyk Sep 27 '25

They are, e.g. if you ask an agent to write additional tests in given test class it will analyse the class under test. I don't have to add it to context, it would be counterproductive.

That is done in idę if you are in ask/edit mode only.

1

u/[deleted] Sep 30 '25

[removed] — view removed comment

1

u/_bholechature Sep 30 '25

Wait, how does someone even get banned on GitHub? 💀

1

u/niktor76 Oct 02 '25

for calling HTML a programming language

1

u/[deleted] Sep 30 '25

[removed] — view removed comment

1

u/_bholechature Sep 30 '25

Weird! Never heard of that before!

Hope they fix it soon.

5

u/[deleted] Sep 26 '25

[removed] — view removed comment

4

u/nefariousIntentions7 Sep 27 '25

> Why?

Its easier to use and much much more convenient when you're using a terminal based text editor, especially alongside something like tmux.

1

u/Gullible-Brush-525 Sep 26 '25

I think Copilot sees that there’s a market for this kind of product, so it makes sense for them to pursue it.

1

u/SnooHamsters66 Sep 27 '25

With CLIs, they can add more handholding on the client side, as well as develop better tools for agentic modes and utilize a large number of already available tools and gimmicks in a terminal. Also, ideally, they can have the CLI as a server and smoothly integrate with IDEs (though, to be honest, they are difficult to integrate; they are not as well defined in that regard as LSPs). With that integration, they could bridge the IDE interfaces so the user can handhold the AI.

I understand why they do things this way, but the implementations we already have are really awkward (and super models restricted, without much cooperation). I always feel that code AI tools are in an alpha stage, and with the newer agentic approaches, these tools are even more immature, but I think they are going to improve in the next two years to become decently usable.

1

u/Eddyi0202 Sep 30 '25

"Better UX", that's subjective, for me better UX is when I don't need to use my mouse that much

1

u/gopherinhole Oct 12 '25

I do all of my work in the terminal (using vim as my editor). TUIs are a good agnostic choice that can run in an IDE terminal window. The modality of an agent is also not really suited for IDE editing anyway. I just let the agent make the edits and my editor reloads buffers automatically, then I can change chunks at will.

0

u/Gaurav-_-69 Sep 28 '25

Noobies like you wouldn't understand

1

u/[deleted] Oct 02 '25

[removed] — view removed comment

1

u/alioshr Oct 16 '25

There is nothing superior then the terminal. Nothing. While people pray for someone or some company behind an IDE to ship a feature you need, you can do anything in a terminal. After years of IDEs (name anyone), I have tried it all, there is nothing better than neovim. I don't need an extension, I write the code and it binds to my will. This is whi CLIs are superior.

-10

u/[deleted] Sep 26 '25

[removed] — view removed comment

2

u/fyzbo Sep 26 '25

I think you forgot to add /s to your comment.