#API session token for vs code?
4 messages · Page 1 of 1 (latest)
You get it from cookies.
I have downloaded 2 or 3 of the extensions that say this works in VS code, but have had no real luck. Might get it to work for a minute but get an error 403 or 429. Tried different PC and browsers too since apparently the plug ins don't like the userAgent. so I am left without this working...which is fine, but it seems like there should be a way to login from inside vscode to the api and not have to fight with keys and tokens.
And for what it is worth Zunari. You can visit the github page for each of the extensions. They have a pretty thorough walkthrough of how to get it. Essentially inside your browser(firefox or chrome) at least, you hit F12 to open the dev pane, then select the location of the cookie the main chatGPT page uses, then copy and paste a couple things from there, then you have to run a command in the console also from the dev pane and get navigator.userAgent info copied over, without the quotes.