deepgem is a terminal agent that routes prompts between:
- DeepSeek V3.1 via its OpenAI-compatible API (fast chat or deliberate reasoning), and
- the official Gemini CLI for agentic tool-use (shell/file ops, web fetch/search, MCP).
It shows a fun ASCII banner: “deepgem by eeko systems”.
# Clone the repo
git clone https://github.com/eekosystems/deepgem
cd deepgem
# Run the one-click installer
quickinstall.bat
# IMPORTANT: Close and reopen your terminal after install!
# Set up authentication (one time only):
# For DeepSeek (required):
set DEEPSEEK_API_KEY=sk-your-key-here
# For Gemini (choose one):
gemini auth # OAuth login (recommended)
# OR
set GEMINI_API_KEY=your-gemini-key
# Then you can use:
deepgem chat "hello" # Talk to DeepSeek
dg "analyze this code" # Use Gemini for code analysisNote: The installer automatically:
- Installs deepgem
- Creates
deepgemanddgcommands - Adds them to your PATH
- Installs Gemini CLI (if npm is available)
- Fixes Windows-specific PATH and encoding issues
Prerequisites:
- Python 3.10+
- Node.js/npm (for Gemini CLI)
- DeepSeek API key
# Install deepgem
pip install deepgem
# or with pipx (recommended for isolation)
pipx install deepgem
# Install Gemini CLI
npm install -g @google/gemini-cli
# or
brew install gemini-cli
# Set up API keys
export DEEPSEEK_API_KEY="sk-..."
export GEMINI_API_KEY="..." # optional, can use OAuth instead
# Verify installation
deepgem doctorgit clone https://github.com/eekosystems/deepgem
cd deepgem
pipx install .
# or
pip install .# Navigate to any project folder
cd your-project
# Use the super simple 'dg' command (quotes required for multi-word prompts):
dg "what does this code do?"
dg "fix the bugs"
dg "add error handling"
dg "write unit tests"
dg "refactor this code"
# Single words work without quotes:
dg hello
dg test# DeepSeek chat
deepgem chat "Summarize the history of TCPA in 7 bullets."
# DeepSeek reasoner (heavier deliberation)
deepgem chat -m deepseek-reasoner "Design a minimal CRM schema; reason step-by-step."
# Use Gemini CLI (non-interactive)
deepgem gem -p "List files changed since yesterday and draft a PR summary." --include-directories .
# Smart router (chooses engine for you)
deepgem ask "Refactor this repo to add unit tests and a GitHub Actions workflow."export DEEPSEEK_API_KEY="sk-..." # required
# Gemini CLI auth (choose one):
# gemini # OAuth flow
# export GEMINI_API_KEY="..." && gemini
# Optional:
# export DEEPGEM_NO_BANNER=1 # hide ASCII banner
# export DEEPGEM_DEFAULT_GEMINI_MODEL="gemini-2.5-pro"
# export GEMINI_BIN="gemini" # custom path to gemini- Fixed: UTF-8 encoding is automatically set for Windows consoles
- If you see garbled characters, the fix is already included
- Fixed: Automatically detects
npm.cmdon Windows - If Node.js is installed but npm isn't found, run:
winget install OpenJS.NodeJS
- Fixed:
quickinstall.batnow automatically adds commands to PATH - If
dgorgeminicommands aren't found after install:# Add npm and user directory to PATH setx PATH "%PATH%;C:\Users\%USERNAME%\AppData\Roaming\npm;C:\Users\%USERNAME%" # Then restart your terminal
- Automatically created by
quickinstall.bat - Adds both
deepgemanddgcommands to your PATH - IMPORTANT: Always restart terminal after running
quickinstall.bat - Makes coding assistance super simple - just
dg "your request"
Get your API key from https://platform.deepseek.com/
set DEEPSEEK_API_KEY=sk-your-key-hereOption 1: OAuth (Recommended - opens browser for Google login)
gemini authOption 2: API Key
set GEMINI_API_KEY=your-key-hereGet key from: https://makersuite.google.com/app/apikey
Without authentication, you'll see error messages when trying to use the commands.
- DeepSeek API is OpenAI-compatible; model IDs:
deepseek-chat(non-thinking) anddeepseek-reasoner(thinking). - Streaming is enabled by default for DeepSeek (use
--no-streamto disable). - The router sends "code/tooling" prompts to Gemini CLI, long or "think step by step" prompts to DeepSeek Reasoner, and everything else to DeepSeek Chat.
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pre-commit install
pytest -qdocker build -t deepgem .
docker run --rm -it -e DEEPSEEK_API_KEY -e GEMINI_API_KEY deepgem deepgem chat "Hello from container"MIT