r/ChatGPTCoding • • Sep 19 '25

Resources And Tips Use YAML over JSON when dumping into prompts for ~2x token saving 🔥

Post image
222 Upvotes

May be hard to practically implement in some cases, but it will pay off when you can use this trick.

This is the original post on Medium.

EDIT: It's been pointed out in the comments (with sass) that minifying your JSON is another, perhaps even better, alternative than transforming to YAML. So now there's two options for saving tokens.


r/ChatGPTCoding • • May 06 '25

Community Cursor is offering 1-year free subscription for students

222 Upvotes

University and high school students can get a year free of Cursor - https://www.cursor.com/students


r/ChatGPTCoding • • Sep 03 '25

Community Aider leaderboard has been updated with GPT-5 scores

Post image
221 Upvotes

r/ChatGPTCoding • • Oct 26 '26

Discussion The day I stopped writing assembly, and why the "LLMs code better than us" debate feels familiar

217 Upvotes

I learned assembly long before I learned C. Back then I chased single clock cycles: reusing registers bit by bit, writing XOR A instead of loading zero, that kind of thing.

When I finally picked up C, I didn't trust it. Was the compiler really producing the fastest, tightest code? So I ran it with -S and read the assembly it generated.

It was perfect. Every trick I had been proud of, the register reuse and the XOR A, the compiler was doing as a matter of course. That was the day I graduated from assembly.

I've been thinking about that day because of two posts from this weekend. Arpit Bhayani wrote that no human will write code better than an LLM from here on, so we should accept it and move on. It got about 14k likes. The same day, Matt Pocock argued that the next language for agents should be as fast as Rust, leave as little design freedom as Go, and have the strictest type and verification system possible.

They sound like opposite camps, but they point the same way. On speed and volume, we've already lost. The real question now is how we direct that output and how we check it.

I'll admit it makes me a little sad, and I understand why so many engineers push back. But I suspect the move from assembly to C started the same argument: "Can we really trust a compiler with this?" That was before my time, though.

For those of you who were around for that shift, or any shift like it: did it feel like this? And what turned out to matter after the compiler won?


r/ChatGPTCoding • • Jul 24 '25

Resources And Tips Qwen3 Coder (free) is now available on OpenRouter. Go nuts.

217 Upvotes

I don't know where "Chutes" gets all their compute from, but they serve a lot of good models for free or cheap. On OpenRouter, there is now a free endpoint for Qwen 3 Coder. It's been working very well so far, even compared to the paid offerings. It's almost like having unlimited Claude 4 Sonnet for free. So, have fun while it lasts.


r/ChatGPTCoding • • Apr 14 '25

Discussion VS Code: GPT 4.1 available to all users

215 Upvotes

GPT 4.1 is now available to all VS Code users. Try it out and let us know what you think.
We are especially curious how it works for you in agent mode.

vscode team


r/ChatGPTCoding • • Mar 27 '25

Resources And Tips copilot-instructions.md has helped me so much.

214 Upvotes

A few months ago, I began experimenting with using LLMs to help build a website. As a non-coder and amateur, I’ve always been fairly comfortable with HTML and CSS, but I’ve struggled with JavaScript and backend development in general. Sonnet 3.7 really helped me accomplish some of the things I had in mind.

However, like many others have discovered, it often generates code based on outdated standards or older versions, and it tends to struggle with security best practices. There are other limitations as well.

That’s why that when I discovered we could use a "copilot-instructions.md" in VS Code It has helped me steer the LLM toward more modern coding standards and practices.

These are general guidelines I've developed from personal experience and best practices gathered from various sources.

I hope it will help other and maybe you can post your "copilot-instructions.md"?

(Remember to adapt these guidelines according to your project’s specific needs and always ensure your security standards are continuously reviewed by qualified professionals.)

Here’s what I’ve managed to put together so far:

//edit: place it in project-root/ └── .github/ └── copilot-instructions.md # Copilot will reference this file every time it code.

GitHub Copilot Instructions

-----------

# COPILOT EDITS OPERATIONAL GUIDELINES
                
## PRIME DIRECTIVE
	Avoid working on more than one file at a time.
	Multiple simultaneous edits to a file will cause corruption.
	Be chatting and teach about what you are doing while coding.

## LARGE FILE & COMPLEX CHANGE PROTOCOL

### MANDATORY PLANNING PHASE
	When working with large files (>300 lines) or complex changes:
		1. ALWAYS start by creating a detailed plan BEFORE making any edits
            2. Your plan MUST include:
                   - All functions/sections that need modification
                   - The order in which changes should be applied
                   - Dependencies between changes
                   - Estimated number of separate edits required
                
            3. Format your plan as:
## PROPOSED EDIT PLAN
	Working with: [filename]
	Total planned edits: [number]

### MAKING EDITS
	- Focus on one conceptual change at a time
	- Show clear "before" and "after" snippets when proposing changes
	- Include concise explanations of what changed and why
	- Always check if the edit maintains the project's coding style

### Edit sequence:
	1. [First specific change] - Purpose: [why]
	2. [Second specific change] - Purpose: [why]
	3. Do you approve this plan? I'll proceed with Edit [number] after your confirmation.
	4. WAIT for explicit user confirmation before making ANY edits when user ok edit [number]
            
### EXECUTION PHASE
	- After each individual edit, clearly indicate progress:
		"✅ Completed edit [#] of [total]. Ready for next edit?"
	- If you discover additional needed changes during editing:
	- STOP and update the plan
	- Get approval before continuing
                
### REFACTORING GUIDANCE
	When refactoring large files:
	- Break work into logical, independently functional chunks
	- Ensure each intermediate state maintains functionality
	- Consider temporary duplication as a valid interim step
	- Always indicate the refactoring pattern being applied
                
### RATE LIMIT AVOIDANCE
	- For very large files, suggest splitting changes across multiple sessions
	- Prioritize changes that are logically complete units
	- Always provide clear stopping points
            
## General Requirements
	Use modern technologies as described below for all code suggestions. Prioritize clean, maintainable code with appropriate comments.
            
### Accessibility
	- Ensure compliance with **WCAG 2.1** AA level minimum, AAA whenever feasible.
	- Always suggest:
	- Labels for form fields.
	- Proper **ARIA** roles and attributes.
	- Adequate color contrast.
	- Alternative texts (`alt`, `aria-label`) for media elements.
	- Semantic HTML for clear structure.
	- Tools like **Lighthouse** for audits.
        
## Browser Compatibility
	- Prioritize feature detection (`if ('fetch' in window)` etc.).
        - Support latest two stable releases of major browsers:
	- Firefox, Chrome, Edge, Safari (macOS/iOS)
        - Emphasize progressive enhancement with polyfills or bundlers (e.g., **Babel**, **Vite**) as needed.
            
## PHP Requirements
	- **Target Version**: PHP 8.1 or higher
	- **Features to Use**:
	- Named arguments
	- Constructor property promotion
	- Union types and nullable types
	- Match expressions
	- Nullsafe operator (`?->`)
	- Attributes instead of annotations
	- Typed properties with appropriate type declarations
	- Return type declarations
	- Enumerations (`enum`)
	- Readonly properties
	- Emphasize strict property typing in all generated code.
	- **Coding Standards**:
	- Follow PSR-12 coding standards
	- Use strict typing with `declare(strict_types=1);`
	- Prefer composition over inheritance
	- Use dependency injection
	- **Static Analysis:**
	- Include PHPDoc blocks compatible with PHPStan or Psalm for static analysis
	- **Error Handling:**
	- Use exceptions consistently for error handling and avoid suppressing errors.
	- Provide meaningful, clear exception messages and proper exception types.
            
## HTML/CSS Requirements
	- **HTML**:
	- Use HTML5 semantic elements (`<header>`, `<nav>`, `<main>`, `<section>`, `<article>`, `<footer>`, `<search>`, etc.)
	- Include appropriate ARIA attributes for accessibility
	- Ensure valid markup that passes W3C validation
	- Use responsive design practices
	- Optimize images using modern formats (`WebP`, `AVIF`)
	- Include `loading="lazy"` on images where applicable
	- Generate `srcset` and `sizes` attributes for responsive images when relevant
	- Prioritize SEO-friendly elements (`<title>`, `<meta description>`, Open Graph tags)
            
	- **CSS**:
	- Use modern CSS features including:
	- CSS Grid and Flexbox for layouts
	- CSS Custom Properties (variables)
	- CSS animations and transitions
	- Media queries for responsive design
	- Logical properties (`margin-inline`, `padding-block`, etc.)
	- Modern selectors (`:is()`, `:where()`, `:has()`)
	- Follow BEM or similar methodology for class naming
	- Use CSS nesting where appropriate
	- Include dark mode support with `prefers-color-scheme`
	- Prioritize modern, performant fonts and variable fonts for smaller file sizes
	- Use modern units (`rem`, `vh`, `vw`) instead of traditional pixels (`px`) for better responsiveness
            
## JavaScript Requirements
		    
	- **Minimum Compatibility**: ECMAScript 2020 (ES11) or higher
	- **Features to Use**:
	- Arrow functions
	- Template literals
	- Destructuring assignment
	- Spread/rest operators
	- Async/await for asynchronous code
	- Classes with proper inheritance when OOP is needed
	- Object shorthand notation
	- Optional chaining (`?.`)
	- Nullish coalescing (`??`)
	- Dynamic imports
	- BigInt for large integers
	- `Promise.allSettled()`
	- `String.prototype.matchAll()`
	- `globalThis` object
	- Private class fields and methods
	- Export * as namespace syntax
	- Array methods (`map`, `filter`, `reduce`, `flatMap`, etc.)
	- **Avoid**:
	- `var` keyword (use `const` and `let`)
	- jQuery or any external libraries
	- Callback-based asynchronous patterns when promises can be used
	- Internet Explorer compatibility
	- Legacy module formats (use ES modules)
	- Limit use of `eval()` due to security risks
	- **Performance Considerations:**
	- Recommend code splitting and dynamic imports for lazy loading
	**Error Handling**:
	- Use `try-catch` blocks **consistently** for asynchronous and API calls, and handle promise rejections explicitly.
	- Differentiate among:
	- **Network errors** (e.g., timeouts, server errors, rate-limiting)
	- **Functional/business logic errors** (logical missteps, invalid user input, validation failures)
	- **Runtime exceptions** (unexpected errors such as null references)
	- Provide **user-friendly** error messages (e.g., “Something went wrong. Please try again shortly.”) and log more technical details to dev/ops (e.g., via a logging service).
	- Consider a central error handler function or global event (e.g., `window.addEventListener('unhandledrejection')`) to consolidate reporting.
	- Carefully handle and validate JSON responses, incorrect HTTP status codes, etc.
            
## Folder Structure
	Follow this structured directory layout:

		project-root/
		├── api/                  # API handlers and routes
		├── config/               # Configuration files and environment variables
		├── data/                 # Databases, JSON files, and other storage
		├── public/               # Publicly accessible files (served by web server)
		│   ├── assets/
		│   │   ├── css/
		│   │   ├── js/
		│   │   ├── images/
		│   │   ├── fonts/
		│   └── index.html
		├── src/                  # Application source code
		│   ├── controllers/
		│   ├── models/
		│   ├── views/
		│   └── utilities/
		├── tests/                # Unit and integration tests
		├── docs/                 # Documentation (Markdown files)
		├── logs/                 # Server and application logs
		├── scripts/              # Scripts for deployment, setup, etc.
		└── temp/                 # Temporary/cache files


## Documentation Requirements
	- Include JSDoc comments for JavaScript/TypeScript.
	- Document complex functions with clear examples.
	- Maintain concise Markdown documentation.
	- Minimum docblock info: `param`, `return`, `throws`, `author`
    
## Database Requirements (SQLite 3.46+)
	- Leverage JSON columns, generated columns, strict mode, foreign keys, check constraints, and transactions.
    
## Security Considerations
	- Sanitize all user inputs thoroughly.
	- Parameterize database queries.
	- Enforce strong Content Security Policies (CSP).
	- Use CSRF protection where applicable.
	- Ensure secure cookies (`HttpOnly`, `Secure`, `SameSite=Strict`).
	- Limit privileges and enforce role-based access control.
	- Implement detailed internal logging and monitoring.

r/ChatGPTCoding • • Dec 18 '25

Question Did they vibecode the white house achievements webpage? 🤣

213 Upvotes

https://www.whitehouse.gov/achievements/

Random comments, console.logs, js, css in the same file, animations have the "vibecode feeling" etc.


r/ChatGPTCoding • • Aug 09 '25

Discussion GPT-5 is the strongest coding model OpenAI has shipped by the numbers

Post image
212 Upvotes

r/ChatGPTCoding • • Jun 23 '25

Discussion I don’t think I can write code anymore

211 Upvotes

After a year of vibe coding, I no longer believe I have the ability to write code, only read code. Earlier today my WiFi went out, and I found myself struggling to write some JavaScript to query a supabase table (I ended up copy pasting from code elsewhere in my application). Now I can only write simple statements, like a for loop, and variable declarations (heck I even struggle with typescript variable declarations sometimes and I need copilot to debug for me). I can still read code fine - I abstractly know the code and general architecture of any AI generated code, and if I see a security issue (like not sanitizing a form properly) I will notice it and prompt copilot to fix it until its satisfactory. However, I think I developed an over reliance on AI, and it’s definitely not healthy for me in the long run. Thank god AI is only going to get smarter and (hopefully cheaper) in the long run because I really don’t know what I will be able to do without it.


r/ChatGPTCoding • • May 29 '24

Discussion The downside of coding with AI beyond your knowledge level

210 Upvotes

I've been doing a lot of coding with AI recently, granted I know my way around some languages and am very comfortable with Python but have managed to generate working code that's beyond my knowledge level and overall code much faster with LLMs.

These are some of the problems I commonly encountered, curious to hear if others have the same experience and if anyone has any suggested solutions:

  • I asked the AI to do a simple task that I could probably write myself, it does it but not in the same way or using the same libraries I do, so suddenly I don't understand even the basic stuff unless I take time to read it closely

  • By default, the AI writes code that does what you ask for in a single file, so you end up having one really long, complicated file that is hard to understand and debug

  • Because you don't fully understand the file, when something goes wrong you are almost 100% dependent on the AI figuring it out

  • At times, the AI won't figure out what's wrong and you have to go back to a previous revision of the code (which VS Code doesn't really facilitate, Cmd+Z has failed me so many times) and prompt it differently to try to achieve a result that works this time around

  • Because by default it creates one very long file, you can reach the limit of the model context window

  • The generations also get very slow as your file grows which is frustrating, and it often regenerates the entire code just to change a simple line

  • I haven't found an easy way to split your file / refactor it. I have asked it to do it but this often leads to errors or loss in functionality (plus it can't actually create files for you), and overall more complexity (now you need to understand how the files interact with each other). Also, once the code is divided into several files, it's harder to ask the AI to do stuff with your entire codebase as you have to pass context from different files and explain they are different (assuming you are copy-pasting to ChatGPT)

Despite these difficulties, I still manage to generate code that works that otherwise I would not have been able to write. It just doesn't feel very sustainable since more than once I've reached a dead-end where the AI can't figure out how to solve an issue and neither can I (this is often due to simple problems, like out of date documentation).

Anyone has the same issues / have found a solution for it? What other problems have you encountered? Curious to hear from people with more AI coding experience.


r/ChatGPTCoding • • Sep 29 '25

Project Sonnet 4.5 vs Codex - still terrible

Post image
206 Upvotes

I’m deep into production debug mode, trying to solve two complicated bugs for the last few days

I’ve been getting each of the models to compare each other‘s plans, and Sonnet keeps missing the root cause of the problem.

I literally paste console logs that prove the the error is NOT happening here but here across a number of bugs and Claude keeps fixing what’s already working.

I’ve tested this 4 times now and every time Codex says 1. Other AI is wrong (it is) and 2. Claude admits its wrong and either comes up with another wrong theory or just says to follow the other plan


r/ChatGPTCoding • • Sep 27 '24

Project Cool program i built at work to not have to pay for adobe pdf editor

Post image
204 Upvotes

Needed a simple program to compile pdfs and allow me to delete certain pages. I havent done any coding in years, but chat gpt, damn very powerful tool to help code


r/ChatGPTCoding • • Sep 21 '24 This Helpful

Resources And Tips Claude Dev can now use a browser 🚀 v1.9.0 lets him capture screenshots + console logs of any url (eg localhost!), giving him more autonomy to debugging web projects on his own.

204 Upvotes

r/ChatGPTCoding • • Jan 05 '25

Resources And Tips How to Use Cursor More Efficiently!

203 Upvotes

Here are some methods I've found useful in my own usage for getting more accurate, precise, and efficient AI responses:

1) .cursorrules
The .cursorrules file contains project-specific instructions that are always in the AI's context. Adding custom rules helps AI provide better, more relevant suggestions.
- Example: "Always use strict types instead of any in TypeScript."
- More examples: cursor.directory

2) Pre-prompt
In Cursor settings, under "Rules for AI," you can define custom instructions to refine AI responses:
- Keep answers concise and direct
- Suggest alternative solutions
- Avoid unnecessary explanations
- Prioritize technical details over generic advice

3) Code Index
AI relies on your code index to understand your project. If you're frequently adding or deleting files, outdated indexing can lead to incorrect suggestions.
- AI might reference old files and produce incorrect code
- Manual resyncing keeps AI aware of your latest changes
- Go to Cursor Settings > Resync Index to update it

4: Reference Open Editors
For AI to stay focused, only relevant files should be added to the context.
- Close unnecessary tabs
- Open only the files you need
- Use / Reference Open Editors to quickly add them to context

5) Notepads
Notepads let you save frequently used prompts, file references, and explanations for quick reuse. Instead of manually re-explaining things, simply call a Notepad.
- Document feature setups (e.g., "How to Add a New API Route")
- Store common prompts like code reviews or security checks


r/ChatGPTCoding • • Oct 21 '24

Discussion Microsoft is introducing hidden APIs to VS Code only enabled for Copilot extension

202 Upvotes

TL;DR;

GitHub (aka Microsoft) has been quietly introducing new extension APIs to VS Code that are ONLY usable by their extension - Copilot.

Full story:

VS Code has a way of partially releasing new APIs, it's called Proposed APIs.

[...] Proposed APIs are a set of unstable APIs that are implemented in VS Code but not exposed to the public as stable APIs does. They are subject to change, only available in Insiders distribution and cannot be used in published extensions.

This makes sense, they give the community a way to play with the new APIs, receive feedback, and rapidly iterate on the API without breaking live extensions.

You can only use the APIs in dev mode, but you cannot publish an extension to the store that contains them.

Another quote from their website:

While you're not able to publish extensions using the proposed API on the Marketplace, you can still share your extension with your peers by packaging and sharing your extension.

Now, let's decompile the GitHub Copilot Chat extension and open its package.json.

Surprise surprise:

Hmm, it's a published extension with enabledApiProposals, how is that possible?

Oh ye, they are Microsoft...

Why it matters?

It looks like an anti-competition tactic. VS Code extension API is very limited, this is why startups like Cursor choose to fork VS Code and apply changes directly. GitHub is introducing many changes that would also benefit open-source Copilot alternatives like Continue but are using it only for themselves.


r/ChatGPTCoding • • Jun 27 '24

Discussion Claude Sonnet 3.5 is 🔥

199 Upvotes

GPT - 4o is not even close, I have been using new Claude model for last few days the solutions are crazy and it even generates nearly perfect codes.

Need to play with it more, how’s others experience?


r/ChatGPTCoding • • Apr 05 '25

Community Vibe coding be like...

Post image
198 Upvotes

r/ChatGPTCoding • • Jan 30 '25

Discussion AI is Creating a Generation of Illiterate Programmers

Thumbnail
nmn.gl
197 Upvotes

r/ChatGPTCoding • • Feb 23 '24

Project GPT-4 powered tool that builds web apps from start to finish by talking to you: what we learned building GPT Pilot (research + examples)

197 Upvotes

For the past 6 months, I’ve been working on GPT Pilot (https://github.com/Pythagora-io/gpt-pilot) to understand how much we can really automate coding with AI.

When I started, I posted here on r/ChatGPTCoding about how I approached building an AI developer. The idea was to set the main pillars on top of which it will be built. Now, after testing it in the real world, I want to share our learnings so far and how far it’s able to go.

Right now, you can create simple but non-trivial apps with GPT Pilot. One example is an app we call CodeWhisperer in which you paste a Github repo URL, it analyses it with an LLM, and provides you with an interface in which you can ask questions about your repo. The entire code was written by GPT Pilot, while the user only provided feedback about what was working and what was not working.

Here are examples of apps created with GPT Pilot with demo and the codebase (along with CodeWhisperer) - https://github.com/Pythagora-io/gpt-pilot/wiki/Apps-created-with-GPT-Pilot

While building GPT Pilot, I’ve made a lot of learnings (you can see a deep dive in this blog post) - here they are:

  1. It’s hard to get an LLM to think outside the box. This was one of the biggest learnings for me. I thought you could prompt GPT-4 by giving it a couple of solutions it had already used to fix an issue and tell it to think of another solution. However, this is not as remotely easy as it sounds. What we ended up doing was asking the LLM to list all the possible solutions it could think of and save them in memory. When we needed to try something else, we pulled the alternative solutions and told it to try a different but specific solution.

  2. Agents can review themselves. My thinking was that if an agent reviews what the other agent did, it would be redundant because it’s the same LLM reprocessing the same information. But it turns out that when an agent reviews the work of another agent, it works amazingly well. We have 2 different “Reviewer” agents that review how the code was implemented. One does it on a high level, such as how the entire task was implemented, and another one reviews each change before they are made to a file (like doing a git add -p).

  3. Verbose logs help. This is very obvious now, but initially, we didn’t tell GPT-4 to add any logs around the code. Now, it creates code with verbose logging so that when you run the app and encounter an error, GPT-4 will have a much easier time debugging when it sees which logs have been written and where those logs are in the code.

  4. The initial description of the app is much more important than I thought. My original thinking was that, with human input, GPT Pilot would be able to navigate in the right direction and get closer and closer to the working solution, even if the initial description was vague. However, GPT Pilot’s thinking branches out throughout the prompts, beginning with the initial description. And with that, if something is misleading in the initial prompt, all the other info that GPT Pilot has will lead in the wrong direction.

  5. Coding is not a straight line. Refactoring happens all the time, and GPT Pilot must do so as well. GPT Pilot needs to create markers around its decision tree so that whenever something isn’t working, it can review markers and think about where it could have made a wrong turn.

  6. LLMs work best when they can focus on one problem compared to multiple problems in a single prompt. For example, if you tell GPT Pilot to make 2 different changes in a single description, it will have difficulty focusing on both. So, we split each human input into multiple pieces in case the input contains several different requests.

  7. Splitting the codebase into smaller files helps a lot. This is also an obvious conclusion, but we had to learn it. It’s much easier for GPT-4 to implement features and fix bugs if the code is split into many files instead of a few large ones.

I'm super curious to hear what you think - have you seen a CodeGen tool that has abilities to create more complex apps with AI than these? Do you think there is a limit to what kind of an app AI will be able to create?


r/ChatGPTCoding • • Apr 04 '25 Mindblown

Resources And Tips A simple guide to setting up Gemini 2.5 Pro, free, without running into 3rd party rate limits

196 Upvotes

EDIT May 12: Google added new rate limits to AI studio this morning, 25 RPD, so this is effectively no longer working. We had a good run!
EDIT: The Open Router integration and google ai studio key method seems like the easiest way that works for everyone, especially if you already have an openrouter account. Pasting that method here for visibility:

  1. Get a Google AI Studio API key from https://aistudio.google.com/apikey

  2. Plug that API key into the Google AI Studio integration on https://openrouter.ai/settings/integrations, select enabled but not "Use as fallback"

  3. You can now use your Openrouter key anywhere and as long as you select Gemini 2.5 Pro Experimental as your model, it will use your key. (4. If you also add a GCP key and have Vertex AI enabled for the project, obtained as per the instructions below, you can add that to your integrations as well, and you will have two sources of 2.5 Pro backing your Openrouter calls.)

Hey all,
After dealing with Openrouter and Requesty giving me constant rate limits for Gemini 2.5 Pro, I got frustrated and decided to get things set up directly through Google's APIs. I have now sent over 60 million tokens in a single day without hitting any rate limits, all for $0—an equivalent usage with Claude would have cost $180. I also had a few other engineers confirm these steps. Here's how to do it and then integrate with Roo Code--but this should work for other tools like Cline, too:

Setting Up Google Cloud

  1. Create or log into your Google Cloud account.

  2. Open the Google Cloud Console.

  3. Create a new Google Cloud project (I named mine "Roo Code").

  4. Enable billing for your newly created Google Cloud project.

  5. Enable the Vertex AI API.

  6. Enable the Gemini API from the API overview page.

  7. In your project dashboard, navigate to APIs & Services → Credentials.

  8. Click "Create Credentials" → "API Key".

  9. Copy the generated API key and save it securely.

Integrating with Your IDE (Example: Roo Code)

  1. In VSCode or Cursor, navigate to the extensions marketplace (Shift + Cmd + X on Mac), search for and install "Roo Code" (or your preferred tool like Cline).

  2. Open Roo Code (Cmd + Shift + P, then type "View: Show Roo Code").

  3. Click to configure a new API provider, selecting "Google Gemini".

  4. Paste the API key you saved earlier into the API key field.

  5. Select "google/gemini-2.5-pro-exp-03-25:free" as the model.

  6. Click Save.

There you go! Happy coding. Let me know if you run into any issues.

Edit: looks like some are having issues. A few ideas/alternatives:

  1. Use a Vertex api key, but gemini api as provider in Roo Code. There is only one key, ignore this alternative.

  2. Use vertex api as the provider in Roo Code--its just a little more complicated, you'll have to create a service account in the credentials page of the project, and paste the json in Roo Code when configuring the provider

  3. If you have an OpenRouter account, you can go to the integrations page https://openrouter.ai/settings/integrations and add your vertex api key to the google vertex integration. You can also add a google ai studio api key to the Google AI Studio integration. In each setting window where you add the key, make sure it is enabled. Then, in Roo Code, you use your openrouter account, but whenever it uses Gemini 2.5 pro free, it will default to your API key, not one of theirs which is being rotated among many users.


r/ChatGPTCoding • • Apr 04 '25

Resources And Tips Principal Engineer here 35 you. Vibe coding a terrific tracker in one shot with roo

Thumbnail
gallery
196 Upvotes

I woke up this morning and decided to whip up a tariff tracker with Roo, gpt 4o, o3-mini,and 3.7 sonnet.

Postgres db powered by sqlalchemy backed python backend. Nextjs front-end, auth0 for authentication. Stripe for payments and registration.

Fully dockerized nextjs front-end and flask backend with deployment pipeline through github actions and deploying to GCP Kubernetties cluster.

Tested with pytest. There's an admin. There are premium tiers.

The full app was generated in a single multi step task. There were 5 bugs that the model one shot. All this was coded in github code spaces. Total cost $5.87. Took all of 30 minutes.

AMA.


r/ChatGPTCoding • • Oct 09 '25 Bless Up

Discussion I can’t stop vibe coding with Codex CLI. It just feels magical

195 Upvotes

I'm using Codex CLI with the gpt-5-codex model, and I can't stop enjoying vibe coding. This tool is great. I believe that the magic is not only in the model but in the application as well—in the way it’s thinking, planning, controlling, testing everything, and doing it again and again. But somehow, at the same time, despite consuming a lot of tokens, it makes minimal changes in the code, which together works like magic, and it’s really great. I really don’t need to debug and find errors in the code after Codex CLI. So, I love this tool.

Interestingly, the same model doesn’t produce the same result in Visual Studio Code as in the Codex CLI.


r/ChatGPTCoding • • Jan 20 '26

Discussion My company banned AI tools and I dont know what to do

192 Upvotes

Security team sent an email last month. No AI tools allowed. No ChatGPT, no Claude, no Copilot, no automation platforms with LLMs.

Their reasoning is data privacy and theyre not entirely wrong. We work with sensitive client info.

But watching competitors move faster while we do everything manually is frustrating. I see what people automate here and know we could benefit.

Some people on my team are definitely using AI anyway on personal devices. Nobody talks about it but you can tell.

I'm torn between following policy and falling behind or finding workarounds that might get me in trouble.

Tried bringing it up with my manager. Response was "policy is policy" and maybe they'll revisit later. Later meaning probably never.

Anyone dealt with this? Did your company change their policy? Find ways to use AI that satisfied security? Or just leave for somewhere else?

Some mentioned self hosted options like Vellum or local models but I dont have authority to set that up and IT wont help.

Feels like being stuck in 2020.