Skip to main content
Glama

HarnessXGate

Free AI multi-engine router, live web dashboard, and MCP server — zero dependencies, one command to install.

Built so anyone (even without an expensive AI subscription) can combine free AI engines (OpenCode, GitHub Copilot CLI, FreeLLMAPI / OpenAI-compatible APIs, and Ollama) behind one simple web page, one CLI (hxg), and one MCP tool. When one model hits a rate limit or goes offline, HarnessXGate automatically switches to the next best free model without stopping your work.


One-Command Install (Opens the Web App Automatically)

Windows — Command Prompt (cmd)

curl -fsSL https://raw.githubusercontent.com/Eli-Mira/HarnessXGate/main/install.cmd -o "%TEMP%\hxg.cmd" && "%TEMP%\hxg.cmd"

Windows — PowerShell

irm https://raw.githubusercontent.com/Eli-Mira/HarnessXGate/main/install.ps1 | iex

macOS / Linux / WSL

curl -fsSL https://raw.githubusercontent.com/Eli-Mira/HarnessXGate/main/install.sh | bash

Or via pip

pip install git+https://github.com/Eli-Mira/HarnessXGate.git
hxg

Requirements: Only Python 3.10+ (zero extra pip packages needed!).


Related MCP server: forge-mcp

How to Use (For Beginners — 30 Seconds)

  1. Open the Dashboard: Type hxg in your terminal (opens http://127.0.0.1:7878 in your browser).

  2. Check Your Engines: You only need one green (Ready) engine to start:

    • OpenCode (Free): curl -fsSL https://opencode.ai/install | bash

    • Ollama (100% Offline & Free): Install from ollama.com and run ollama pull qwen2.5-coder

    • GitHub Copilot CLI: copilot login

    • FreeLLMAPI / OpenRouter / Groq: Run hxg setup and paste your URL + API key.

  3. Ask Anything: Type your question in the Quick Ask box on the web dashboard (or run hxg ask "Explain recursion simply" in your terminal).


CLI Commands

Command

What it does

hxg (or hxg ui)

Starts the live web dashboard at http://127.0.0.1:7878

hxg ask "your prompt"

Runs a prompt with automatic model & engine failover (--task quick|code|deep|review)

hxg health

Shows which AI engines are ready right now

hxg status

Shows active running workers, engine counts, and recent events

hxg watch

Opens a live auto-refreshing terminal monitor

hxg setup

30-second guided setup wizard for API URLs & keys

hxg mcp

Runs the stdio MCP server (fleet_health, fleet_status, fleet_ask, fleet_sessions)


Connect to AI Coding Tools (MCP)

Antigravity (agy)

agy mcp add harnessxgate hxg mcp

Claude Desktop / Cursor / Hermes

Add to your MCP config:

{
  "mcpServers": {
    "harnessxgate": {
      "command": "hxg",
      "args": ["mcp"]
    }
  }
}

Privacy & Safety

  • Runs 100% locally on 127.0.0.1 — zero cloud telemetry, zero tracking.

  • API keys are read from environment variables or ~/.harnessxgate/.env in memory only and never logged.

License

MIT — built by EliLain.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI clients to perform local code search, indexing, and analysis across Java, JavaScript/TypeScript, .NET/C#, and Python projects through the MCP protocol.
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A production-grade, LLM-agnostic local development engine over MCP, providing structured code intelligence and shared language server processes for AI coding agents.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients like Claude Code to delegate coding tasks to a local model through a configurable coding-agent CLI backed by any OpenAI-compatible endpoint, with tools for health checks, task execution, and context-aware file modifications.
      -