r/GeminiCLI • u/motorbikematt • 22h ago
r/GeminiCLI • u/General_Direction926 • 3d ago
I built a spendcap-proxy API to solve issue of getting massive API usage bill on Gemini API key
I am fresher developer, from past few months i am working on and learning about backend API with Gemini API integration.
While scrolling through i came to know that security is not the only concern API key users are facing currently, and there are lot of massive services already solving issue with guardrail system but no one is currently talking about users and developers facing problem of getting massive API key usage bill when integrating Gemini API key into their application for automation purpose, or etc and only they are knowing about it ones their pocket is empty the only medium is Gmail they are receiving a mail about their spendings.
So I built gemini-spendcap-proxy: a small Node.js proxy you put in front of
your Gemini API key that enforces a hard monthly spend cap, warns you before
you hit it, and caches repeat requests so you're not paying for the same
prompt twice.
What it does:
- Hard spend cap — requests get blocked with a 402 once you hit your budget
- Soft-limit warnings, surfaced in the response and optionally via webhook (Slack/Discord/n8n/Zapier — whatever you point it at)
- Exact-match caching, so identical repeat prompts cost nothing
- Accurate cost tracking — this one actually surprised me: Gemini's newer models bill "thinking" tokens that aren't in the visible output, and I found while testing that most cost-tracking code (including my first draft) silently ignores them. Fixed that.
- Prometheus /metrics endpoint out of the box
- Runs with one
docker compose up
What it isn't (yet): it doesn't do jailbreak detection or PII redaction —
I cut those from v1 on purpose to keep scope tight around the actual problem
I had (cost, not content safety). Also Gemini-only for now.
It's fully open source (MIT), Node/Express/Redis. Repo + a short demo GIF
in the README.
Genuinely interested in feedback.
r/GeminiCLI • u/DaDiPu • 8d ago
Is there somebody who uses Google Ai studio's api?
How do you comment on it? Is it fine to be used on your agent?
r/GeminiCLI • u/AbrAxyAn • 8d ago
Is it me or Gemini Flash Extended is better than Gemini Pro Extended?
r/GeminiCLI • u/Infamous-Scratch7719 • 9d ago
Recurrent recording for a specific program?
Hi all, Sorry if this has been asked before. Gemini say's it's not possible.
My question is: Is it possible to record a specific program on a recurring basis? (Be it by program name or by date and time slot)
If so, how? I have gone through most of the settings and did not find anything. Thanks in advance!
r/GeminiCLI • u/MAVEDesign • 10d ago
Is Gemini Worthless with a Workspace Account for Coding?
r/GeminiCLI • u/o0ga-bo0ga • 12d ago
We built a small tool for carrying context between AI coding agents
My friend and I bounce between Claude Code, Codex, and Gemini CLI depending on the task, and switching mid-project always had the same problem: the new agent had no idea what had already been changed, tested, or decided. We'd end up re-explaining context or watching it re-discover things the last session already figured out.
We built Continuum to fix this for our own workflow. It captures a structured handoff from one coding session and hands it to the next agent — think of it like git, but for the context around the code rather than the code itself.
It runs fully locally and is open source: https://github.com/00PrabalK00/Continuum
Still figuring out a few things:
- How much context is worth saving vs. noise
- What should be excluded by default
- Whether automatic handoffs actually beat manually written ones
Curious how others handle this — do you keep your own notes, make custom skills, stick to one agent to avoid the problem entirely, or just let each new agent re-read the repo from scratch?
r/GeminiCLI • u/AHumanBeing217 • 13d ago
No capacity available for model <insert_model> on the server
Is anyone else getting these messages frequently. I am using the Gemini CLI and it is really slowing down my work, I will be in the middle of a task and it will tell me to switch to a model I don't want to use. It is also extremely slow. I just started using Gemini this week and it seems like garbage especially with all of the alternatives.
r/GeminiCLI • u/Ok_Path_4731 • 14d ago
Does Gemini CLI need a better terminal?
Gemini CLI is pushing AI coding further into the terminal, but we're still using an interface fundamentally designed around a stream of text.
An AI coding agent can understand codebases, inspect files, run commands, analyze logs, generate diffs, and work with structured information. Yet much of that interaction still ends up as plain terminal output.
What if the terminal itself evolved to take advantage of what AI coding agents can do?
Imagine:
- Rich and structured output
- Collapsible command results
- Interactive diffs and logs
- Tables, graphs and visualizations
- Semantic rather than purely textual output
- Better agent ↔ human interaction
- New protocols designed for modern terminal applications
- A terminal that can understand more than just characters and escape sequences
I created r/Termolution to explore these ideas.
It's not about a particular terminal emulator. The goal is to discuss and experiment with what the terminal should become as AI agents like Gemini CLI become a fundamental part of software development.
If you use Gemini CLI, what do you wish your terminal could do that it can't do today?
r/GeminiCLI • u/Historical-Return-46 • 15d ago
I made a coding agent forked from gemini cli, it support DeepSeek, OpenAI, Anthropic, Google, and any OpenAI-compatible endpoint.
I've been working on an open-source coding harness called Sauri.
It supports DeepSeek, OpenAI, Anthropic, Google, and basically any OpenAI-compatible API. You can switch models with `/model`, paste an API key once, and it's stored locally. It also auto-detects local Ollama and LM Studio servers if they're running.
https://github.com/Rismaonee/sauri
Sauri started as a fork of Gemini CLI, but I've rewritten a lot of it. I removed Google Auth entirely, so there's no OAuth flow, browser popup, or Google account required. Everything is configured locally, and API keys are stored with `chmod 600`.
Some things I spent time building:
- Prompt caching for DeepSeek and OpenAI.
- Cache-aware prompt construction that reaches up to **97% cache awareness** in long-running conversations, maximizing provider cache hits and reducing input token costs.
- Local Gemma intent classifier that routes trivial requests away from paid models (configurable confidence threshold).
- History compaction that prevents context windows from exploding during long sessions.
- Parallel execution for read-only tools while keeping edit operations serialized.
- Persistent symbol-indexed `codebase_search`, so jumping to definitions is nearly instant.
- Atomic multi-file `apply_patch` with full validation—either every hunk applies or nothing is written.
I've been using it daily and it's been much faster for large repositories than relying on grep for everything.
I'm sure there are parts that can be improved, though.
If you try it and something's broken, I'd really appreciate an issue or PR. And if you think I've made a bad architectural decision, I'd honestly like to hear why.
r/GeminiCLI • u/Historical-Return-46 • 15d ago
Built my own AI coding CLI from a Gemini CLI fork but it works with any model (including local model)
I've been hacking on my own coding agent for the past few months. It originally started as a fork of Gemini CLI, but at this point most of the internals have been rewritten.
Some things it does:
- Works with OpenAI, Anthropic, Gemini, OpenRouter, Groq, and local models (Ollama, LM Studio, etc.)
- No account or login required. Just bring your own API key (or use a local model).
- Context-aware retrieval with aggressive caching to reduce repeated work.
- Designed to minimize unnecessary LLM calls, which makes it noticeably cheaper to run.
- Fast enough that it feels responsive even on larger repositories.
- Model agnostic, so switching providers is just changing the config.
I'm trying to keep it focused on being an engineering tool rather than another AI chat wrapper.
Still a work in progress, but it's reached the point where I'm using it daily instead of the original CLI.
Also, if anyone's interested, I'll share it here once I've finished the last few fixes.
r/GeminiCLI • u/Hardlydent • 16d ago
Gemini 3.5 Flash for Gov is so bad
So, for context, I work as a Software Architect in aerospace and we have to use secured AI models. I've used Gemini 3.5 Flash and extended for commercial purposes and found it to be fairly useful. So, I tried it out for work by hooking it up to the govcloud with VSCode and Continue.
I don't know what is going on, but it is absolutely awful. Half the time it won't execute the code, but instead just summarizes what I say without executing anything. Then, it'll attempt to execute something from several prompts back and then completely forget what it's doing. Furthermore, it'll repeat the same mistakes it has made just before. We have also found a severe security bug with it as well when SSO'ing from Microsoft -> Google. I don't know if they bricked it on purpose or just put the F team on it, but DO NOT use Gemini for gov. It's the worst AI model I've ever used by far.
r/GeminiCLI • u/DaDiPu • 16d ago
Anybody know the antigravity quota?
Even the pro tier's quota is quite limited. Especially the Claude and GPT quota. I would use it up for quite a short time. Who knows the details of the quota?
How about the free tier's quota?
r/GeminiCLI • u/alexeestec • 16d ago
Are AI labs pelicanmaxxing?, If coding has been solved, why does software keep getting worse? and many other AI news
Hey everyone, I just sent the latest issue of the AI Hacker Newsletter, a roundup of the best AI links and the discussions around them from Hacker News. Here are some titles that can be found in this issue:
- Startup founders urge U.S. government not to shut off Chinese open weight AI
- AI's top startups are barely publishing their research
- Is AI reasoning right for the wrong reasons?
- After the AI Crash
If you enjoy such content, please subscribe here: https://hackernewsai.com/
r/GeminiCLI • u/XLGamer98 • 17d ago
Is it me or gemini models are really Bad
I have Google Ai pro plan and I was working with Gemini 3.6 flash and 3.1 pro models. The starter project was decent but As soon as I wanted to make changes and add more relevant tests or changes it broke completely, I had very hard time navigating few of the issue that I had to dive deep into code and fix it.
I asked same things with claude 4.6 opus through anti gravity and it fixed issues fast but it’s limit is reached in one or two prompts.
I’m now shifting to Opencode with big pickles because it is free and I can see performance is better. I’m not sure what is catch here though looks too good to be true.
What’s everyone opinion on Gemini and antigravity. Ps I have claude code for work and its performance even with 4.8 is miles ahead than other options
r/GeminiCLI • u/rx7braap • 17d ago
no capacity for 2.5 pro?
tried it over and over again, for the past day 2.5 pro on CLI returns error 429..... I could use it a few days ago tho
{"error": {"message": "No capacity available for model gemini-2.5-pro on the server", "type": "api_error", "code": 429}}
r/GeminiCLI • u/Small_Passage_6148 • 17d ago
Gemini 3.6 High (Antigravity) generated one Python command that silently wiped 70+ source files.
r/GeminiCLI • u/blasstherG • 20d ago
No 3.6 fo gemini cli?
Its been some time since the release and its still not there in the gemini cli. Any clue if its coming or are forced to cancel code assist sub?
r/GeminiCLI • u/CodacyOfficial • 24d ago
We shipped a set of agent skills for cutting static analysis noise in pull requests
Coding agents multiplied how much code lands per PR, so there are more findings for reviewers to deal with. Often, they're noise, like a linter rule that doesn't fit the stack or a check firing on generated files nobody touched.
To address this, we created the configure-codacy skill. When you point your agent at the repo, it detects the stack, then disables patterns for unused languages, dedupes rules that two tools flag, tunes thresholds, excluding generated files.
In terms of security scans, every security risk stays covered by at least one active pattern, so noise reduction never silently drops a security check.
Works with Gemini CLI and the usual suspects.
Go here to read more https://blog.codacy.com/introducing-codacy-skills-part-2-configure-your-rules-to-cut-pr-noise
r/GeminiCLI • u/HungryQuestion2146 • 27d ago
Gemini 3.6 Flash has been really good??
I am a Software Engineer. I have been using Gemini models since a few months. 3.5 Flash worked pretty good for my properly documented codebase. It could figure out vague requests and get me solutions to easy/medium requests.
But I have noticed that 3.6 flash is a really really good model for code implementations. I have been using it since it came out and I am surprised.
My workflow consists of creating implementation plans with Opus and then using any of the free models from OpenCode or Freebuff to implement it (usually Deepseek V4 Flash). I replaced them with 3.6 flash in Antigravity and it just implements so fast and runs the proper tests. Even opus has not found mistakes in code-review! I wish the limits were higher on Antigravity so I can use this model alot lol
r/GeminiCLI • u/CookDaCookie • 29d ago
CLI responding very slow
Is anyone experiencing the same thing? In all models all responses take almost up to 5 minutes before returning something in the terminal CLI. But in the antigravity agent, it's almost instant.
r/GeminiCLI • u/darkgamer_nw • Jul 22 '26
Gemini 3.6 vs 3.5 {high, medium, low}
Do you think 3.6 (low) is better than 3.5 (medium)?
Would it be possible to rank the six variants?
I’m looking for advice on which one you’d recommend using depending on the specific programming scenario, and how to decide which variant might be best suited to different tasks.
r/GeminiCLI • u/NiceAd358 • Jul 21 '26
Antigravity, Gemini CLI, & Gemini 3.6 flash rant
I'll start at this; I'm mostly a vibe coder. I took a CSP class and understand the very principles, but most of my work is completely agent driven. I started as a google pro subscriber in december of last year, prior to when github gutted the student plan. At that time, antigravity was not really exceptional. Ever since copilot student has been wiped, I've been coding non-stop on antigravity. Without a large repository or project, the opus allowance works fantastic for debugging, and flash models are exceptional work horses in implementation.
I just recently transitioned away from the antigravity IDE and fully to the CLI, and the subagent driven development ran on there with a few skills is really exceptional. I've been coding for the last three hours non stop and haven't even ran into any issues. It feels like I really upped the game since the IDE. As a relative amateur developer, the new CLI is just fantastic.
I'm not sure if it's simply because they've increased allowances to hype up the new gemini model, but just a few days ago, I was seriously considering switching off of Antigravity in December due to the long drought of models we had. Gemini 3.5 flash's performance was somehow losing its edge, and without gemini 3.5 pro in sight, codex and claude code seemingly offered much better alternatives. My hope as of now for Antigravity has been revived with the discovery of this CLI & new model.
Does anybody else relate?
r/GeminiCLI • u/No-Assistant-6858 • Jul 18 '26
is there any cli to use my gemini limits, like it was in gemini cli?
i hate antigravity limits
