| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains the configuration files for the Gemini CLI, a powerful command-line tool for AI-assisted software development. It provides a structured, configuration-driven workflow that enables developers to analyze, plan, and execute coding tasks with the help of AI, ensuring consistency and high-quality output.
This repository provides a powerful set of configurations to enhance your Gemini CLI. Follow these steps to set up your environment.
First, clone this repository to a location of your choice on your local machine.
git clone https://github.com/ksprashanth/gemini-cli-config.git
cd gemini-cli-configYou have two options for installing these configurations. You can either copy the files directly or use symbolic links to automatically sync any changes from this repository.
This method is straightforward and involves copying the files into your Gemini configuration directory.
Copy the Core Protocol Files: These files provide the foundational instruction set for the AI.
cp AGENTS.md ~/.gemini/AGENTS.md
cp GEMINI.md ~/.gemini/GEMINI.mdCopy the Command Palettes: You can copy all command palettes or pick and choose the ones you want.
cp -r commands/* ~/.gemini/commands/mkdir -p ~/.gemini/commands
cp -r commands/repo ~/.gemini/commands/
cp -r commands/mode ~/.gemini/commands/
cp -r commands/setup ~/.gemini/commands/Copy the Settings File: This file includes pre-configured MCP (Multi-Context Prompt) servers for GitHub and Context7.
Warning: This will overwrite your existing settings.json. If you have existing settings, you should merge the files manually.
cp settings.json ~/.gemini/This method links the configuration files from this repository directly to your Gemini setup. Any time you run git pull to get the latest updates, your CLI is instantly updated.
Note: Make sure you are in the root of this cloned repository before running these commands.
Link the Core Protocol Files: This links the base AI instructions and the user-facing configuration file.
# Remove the old files if they exist
rm -f ~/.gemini/AGENTS.md
rm -f ~/.gemini/GEMINI.md
# Create the symbolic links
ln -s "$(pwd)/AGENTS.md" ~/.gemini/AGENTS.md
ln -s "$(pwd)/GEMINI.md" ~/.gemini/GEMINI.mdLink Your Desired Command Palettes: Instead of linking the entire commands folder, you can link specific command palettes. This allows you to choose which sets of commands you want to use.
# Create the commands directory if it doesn't exist
mkdir -p ~/.gemini/commands
# Example: Link the 'repo', 'mode', and 'setup' palettes
ln -s "$(pwd)/commands/repo" ~/.gemini/commands/repo
ln -s "$(pwd)/commands/mode" ~/.gemini/commands/mode
ln -s "$(pwd)/commands/setup" ~/.gemini/commands/setupA Note on settings.json: We do not recommend symlinking the settings.json file, as it contains your personal preferences which you don't want to overwrite. Instead, you should manually merge the mcpServers configuration from this repository's settings.json into your own ~/.gemini/settings.json file.
To use the powerful GitHub integration (which enables the AI to interact with GitHub repositories), you need to create a Personal Access Token (PAT).
Create a GitHub PAT:
Set the Environment Variable: The settings.json file is configured to read the token from an environment variable named GITHUB_PERSONAL_ACCESS_TOKEN. You need to add this to your shell's startup file.
For Zsh (macOS default):
echo 'export GITHUB_PERSONAL_ACCESS_TOKEN="YOUR_TOKEN_HERE"' >> ~/.zshrc
source ~/.zshrcFor Bash:
echo 'export GITHUB_PERSONAL_ACCESS_TOKEN="YOUR_TOKEN_HERE"' >> ~/.bash_profile
source ~/.bash_profileRemember to replace YOUR_TOKEN_HERE with the actual token you copied from GitHub.
You're all set! Restart the Gemini CLI. Once it has loaded, type the following command in the Gemini CLI prompt to see if the new commands are available:
/help
You should see the new commands like /repo:save, /repo:sync, and /mode:think listed in the output.
This project does not contain an automated test suite. The configurations are tested by executing the commands within the Gemini CLI.
Contributions are welcome! If you have ideas for new commands or improvements to existing ones, please follow this workflow:
This is not an officially supported Google product.
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |