Skip to content

kAmmarah/HELLO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

# πŸ€– Gemini AI Agent

Welcome to the **Gemini AI Agent** project!  
A lightweight, modular AI assistant powered by **Google Gemini API** and optimized with **`uv`** for blazing-fast performance. πŸš€

---

## πŸ“ Project Structure

πŸ“¦ gemini-ai-agent/ β”œβ”€β”€ app.py # 🎯 Main app logic β”œβ”€β”€ gemini_agent.py # 🧠 Gemini API integration β”œβ”€β”€ main.py # πŸšͺ Entry point β”œβ”€β”€ pyproject.toml # πŸ› οΈ Project configuration β”œβ”€β”€ requirements.txt # πŸ“¦ Python dependencies β”œβ”€β”€ uv.lock # πŸ”’ uv lock file └── README.md # πŸ“– Project documentation


---

## πŸ” Gemini API Key Setup

To use the Gemini AI Agent, you need a valid **Google Gemini API key**:

1. πŸ”‘ **Get your API key** from the [Google AI Studio](https://makersuite.google.com/app/apikey).
2. πŸ› οΈ **Set your key as an environment variable**:

   On **Linux/macOS**:
   ```bash
   export GEMINI_API_KEY="your-api-key-here"

> βœ… The app will automatically pick up the API key from the `GEMINI_API_KEY` environment variable.

---

## ⚑ Features

* πŸ”₯ Super fast dependency management with [`uv`](https://github.com/astral-sh/uv)
* 🧠 Powered by Google **Gemini API** for intelligent completions
* 🧩 Clean and modular code architecture
* πŸ› οΈ Easy to configure and extend

---

## πŸš€ Getting Started

### 1. Install `uv` (if not already installed)

```bash
curl -LsSf https://astral.sh/uv/install.sh | sh

Install dependencies

uv pip install -r requirements.txt

Export your Gemini API key

export GEMINI_API_KEY="your-api-key-here"

Run the app

python main.py

πŸ§ͺ Example Usage

Once running, the agent can interact with Gemini and return intelligent outputs. Check main.py or app.py for usage examples.


πŸ“Œ Requirements

  • Python 3.9+
  • uv (optional but recommended)
  • A valid Google Gemini API key πŸ”

πŸ› οΈ Contributing

Found a bug or have a feature request? We welcome contributions! Fork this repo and submit a PR or open an issue. πŸ™Œ


πŸ“„ License

MIT License β€” see the LICENSE file for full details.


🌟 Support

If you like this project:

  • ⭐ Star this repo on GitHub
  • πŸ—£οΈ Share it with others
  • 🧠 Build something cool with it!

Perfect! Here's an updated macOS setup guide specifically for VS Code or Cursor (instead of PyCharm), since you're using those editors. I'll also show how to integrate your Gemini API key in a clean and dev-friendly way.


🧠 Gemini AI Agent – macOS + VS Code / Cursor Setup Guide

βœ… 1. Clone the Repository

Open Terminal (or use the built-in terminal in VS Code / Cursor) and run:

git clone https://github.com/your-username/gemini-ai-agent.git
cd gemini-ai-agent

⚑ Install uv – Fast Python Manager

Install uv on macOS with:

curl -LsSf https://astral.sh/uv/install.sh | sh

Verify:

uv --version

πŸ“¦ Install Dependencies

Use uv to install all project requirements:

uv pip install -r requirements.txt

Or, if you're using pyproject.toml:

uv pip install .

πŸ” Add Your Gemini API Key

πŸ‘‡ Option 1: Export Key Temporarily (for one terminal session)

export GEMINI_API_KEY="your-api-key-here"

πŸ’‘ Option 2: Store it in .env (Recommended for VS Code / Cursor)

  1. Create a .env file in the root of your project:
touch .env
  1. Add your API key:
GEMINI_API_KEY=your-api-key-here
  1. In your Python code, use dotenv to load it (add this to main.py or app.py):
from dotenv import load_dotenv
import os

load_dotenv()
api_key = os.getenv("GEMINI_API_KEY")
  1. Add .env to .gitignore:
echo ".env" >> .gitignore

πŸš€ 5. Run the App

Now run your agent:

python main.py

You’re now using Gemini AI securely on macOS with your favorite editor. πŸ§ πŸ’‘


πŸ§‘β€πŸ’» Bonus: Use VS Code or Cursor Like a Pro

  • Open the project folder:

    code .
    # OR
    cursor .
  • Use built-in terminal with Cmd + \ or `Ctrl + ``.

  • Install the Python extension for syntax highlighting, linting, and IntelliSense.

  • Add .env support in VS Code with the Python extension's built-in support.


About

πŸ€–βœ¨ Lightweight Python AI agent powered by Google 🌐 Gemini API, ⚑ optimized with uv for fast βš™οΈ, modular 🧩 development on macOS 🍎 + VS Code πŸ’».

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages