google-gemini / google-gemini/gemini-cli

🛡️ Security & Trust

Open
#18,264 2 comments 1 reaction 0 assignees View on GitHub
🗓️ Public Roadmap 🚀 Launched area/security kind/bug priority/p1 status/bot-triaged
Dominant language
TypeScript
Stars
107k
Forks
14.6k
Avg merge
2d 3h
Merged PRs (30d)
45

Description

This epic establishes a "safety-first" framework for the Gemini CLI, ensuring the agent operates within strictly defined boundaries.

Key security pillars include:

**Folder Trust** The Trusted Folders feature is a security setting that gives you control over which projects can use the full capabilities of the Gemini CLI. It prevents potentially malicious code from running by asking you to approve a folder before the CLI loads any project-specific configurations from it.

**Isolation:** Supports platform-specific isolation methods, including macOS Seatbelt for lightweight, built-in restrictions and Container-based (Docker/Podman) sandboxing for complete, cross-platform process isolation.

**Risk Mitigation:** By restricting write access and isolating shell commands, the system prevents accidental data loss or system damage, providing a consistent and secure environment for executing experimental AI-generated code.

These measures ensure users can leverage agentic capabilities with full confidence in their system's integrity.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.