Does Gemini cli supports auto-allow permissions set up in a .gemini.local like Claude? #26966
-
|
Hi everyone, I’ve been exploring Gemini CLI recently and was wondering whether there’s currently any support, or plans for support for something similar to Claude Code’s local permission configuration system. Specifically, I’m curious about the possibility of defining auto-allowed actions inside something like a .gemini.local file for trusted repositories. For example, in long development sessions, repeatedly approving safe actions like:
can sometimes interrupt workflow quite a bit. I’m wondering:
Claude Code seems to lean toward configurable local trust, while other tools stay more restrictive by default. Curious how the Gemini CLI team and other developers here think about this balance. Would love to hear thoughts, especially from people running longer agentic coding sessions or automation-heavy workflows. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @Suzukijs, i am also deep researching Gemini cli and here are what i think maybe helpful for you:
Approval Modes: In your workspace settings.json, you can set general.defaultApprovalMode to:
Permanent Tool Approval: You can enable security.enablePermanentToolApproval in your settings. This allows you to select "Always allow for this session/workspace" the first time a tool (like npm or pytest) is called.
|
Beta Was this translation helpful? Give feedback.
-
|
This is a great topic — permission configuration at the agent level is something a lot of us are thinking about. For the tool auditing side of the equation, we have been working on open-source MCP servers that scan for security issues before they reach the permission prompt. The env-security-scanner and wallet-security-checker packages can run alongside Gemini CLI as MCP servers and flag credential exposure, unsafe defaults, or config drift before you need to approve potentially risky actions. They are on npm: https://www.npmjs.com/search?q=mcp-security Might be a useful complement to whatever permission system Gemini lands on! |
Beta Was this translation helpful? Give feedback.
Hi @Suzukijs, i am also deep researching Gemini cli and here are what i think maybe helpful for you:
Yes, but with a different architecture. You can create a .gemini/settings.json file inside your project and this file overrides your global user settings for that specific directory.
Approval Modes: In your workspace settings.json, you can set general.defaultApprovalMode to:
"auto_edit": This automatically approves file modifications (editing/writing) without prompting you.
"yolo": This can be enabled via the --yolo flag or security.disableYoloMode: false in settings. It auto-approves all actions, including shel…