Back to Home
google-gemini icon

gemini-cli

Verified Safe

by google-gemini

Overview

Provides an A2A (Agent-to-Agent) server for the Gemini CLI, enabling external agents to interact with and utilize the CLI's capabilities for executing tasks and accessing tools.

Installation

Run Command
npm run start --workspace @google/gemini-cli-a2a-server

Environment Variables

  • NODE_ENV
  • CODER_AGENT_PORT
  • GEMINI_API_KEY
  • GOOGLE_CLOUD_PROJECT
  • GCS_BUCKET_NAME
  • GEMINI_CLI_HOME
  • GEMINI_CONFIG_DIR
  • GEMINI_SANDBOX
  • IDE_AUTH_TOKEN_ENV_VAR
  • MCP_DEBUG
  • VERBOSE
  • DEBUG

Security Notes

The A2A server leverages the robust policy and sandboxing mechanisms of the underlying `gemini-cli-core` package. It uses `express` for HTTP communication with configurable CORS to restrict access. Input validation for task IDs is implemented to prevent path traversal in cloud storage paths. API keys and authentication tokens are expected to be provided via environment variables. The primary security risks would stem from a misconfiguration of the `gemini-cli-core` settings (e.g., enabling YOLO mode or overly permissive tool policies) or from vulnerabilities in underlying dependencies. No direct `eval` or blatant hardcoded secrets are evident, but reliance on the core CLI's runtime execution policies is critical.

Similar Servers

Stats

Interest Score100
Security Score8
Cost ClassMedium
Avg Tokens750
Stars91652
Forks10683
Last Update2026-01-19

Tags

A2AAgent-to-AgentGemini CLIServerCoder Agent