Back to Home
sauravchandra icon

gemini-agent

by sauravchandra

Overview

Provides a REST API service and Python client for Google's Gemini CLI agentic capabilities, enabling programmatic control over AI agent tasks.

Installation

Run Command
podman-compose up -d --build

Environment Variables

  • GEMINI_API_KEY
  • GEMINI_MODEL
  • GEMINI_TIMEOUT
  • REDIS_URL
  • CELERY_BROKER_URL
  • CELERY_RESULT_BACKEND

Security Notes

The server relies heavily on `subprocess.run` to execute external `gemini` CLI commands. Several endpoints, specifically for MCP server management (add/remove) and session deletion, directly pass user-controlled strings (e.g., MCP server name, URL, arguments, session ID) into these `subprocess.run` calls without explicit input sanitization in the Python code. This introduces a potential for command injection if the underlying `gemini` CLI does not robustly sanitize all its arguments against shell exploits, or if a malicious input could escape its intended interpretation. The main task submission also passes the `prompt` directly.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2025-12-14

Tags

GeminiAI AgentCLI WrapperREST APIPython