Start here

Glider

Glider operates between your AI coding CLI and its backend. It can send a request to a local model in place of the cloud. It can also send a task from your CLI to a different CLI. If that CLI asks for a permission, Glider shows the question to you.

The setup procedure, step by step →

What Glider does

Glider does these three tasks:

  1. It sends a task to a different CLI. Type refactor this module /agy in Claude Code, and Antigravity does the task. You can do this from any supported CLI, to any other one. You stay in one terminal. If the other CLI asks for a permission, Glider shows the question in your own session. → Delegation
  2. It sends work to a local model. Simple tasks such as a rename, an explanation or a format operation can go to Ollama. This keeps your cloud tokens for the difficult work, which stays on the cloud backend. To select the route yourself, use /local or /cloud. → Routing
  3. It shows you what occurs. The local dashboard shows each intercepted request. It also shows the route decision and the cause of that decision. → HTTP API

How Glider gets between the CLI and the backend

There are two methods. You can change the method later:

ModeWhat you must doWhen to use it
Gateway Point the CLI at Glider. Use an environment variable or a base URL setting. Use this mode first. It is simple and easy to understand.
Transparent Nothing. Glider intercepts the traffic in the operating system. Use this mode for a CLI that ignores the proxy settings, or for a session that is open.

Transparent mode needs no help from the CLI. It operates on a CLI session that is already open, because it redirects the packets. The CLI does not change its own settings. This mode needs Administrator permission on Windows, or root permission on Linux. It applies to the full machine and selects the traffic by process name. Read MITM & interception before you turn it on.

How to start

Use pure local mode. You do not need a cloud key:

ollama serve
.\glider.exe --config configs\glider.local.yaml

# Dashboard:  http://127.0.0.1:8081
# Gateway:    http://127.0.0.1:8080/v1

Then point your CLI at the gateway. Or turn on transparent mode, and you do not have to do that step. Pure local gives the full procedure.

The CLIs that Glider supports

Glider supports three CLIs today. Each one operates in two directions. It can send a task to a different CLI, and it can do a task that a different CLI sends to it.

CLIAs the CLI you useAs a delegate
Claude Code (claude)YesYes
Cursor Agent (cursor-agent)YesYes
Antigravity (agy)YesYes

The number is three today, but it is not a limit in the design. Glider keeps the list of CLIs as data. It is configs/vendor_candidates.yaml, and it is not a condition on a vendor name in the shared Go code. To add a fourth CLI, you write one YAML entry and one adapter. You do not change the shared code. How to add a fourth vendor gives the full list of files.

Where to go next

Walkthrough

Twelve steps, from an empty machine to a task that goes from one CLI to a different CLI.

Architecture

The network interfaces, the shared pipeline, the packages and the failure conditions.

Configuration

Every setting that Glider reads, with its type, its default and its function.

Delegation

The flag format, the permission relay, and what each CLI can do.

Automatic rules

A template that makes your CLI send tasks to a different CLI without your help.

Routing

The full priority sequence, from the explicit flags to the default rule.

MITM & interception

CONNECT decryption, transparent redirection, and the risks you must know first.

NGL & interfaces

How Glider supports many CLIs with no vendor code in the core.

Context

The event log and the turn index that give sticky routing and data.

Pure local

glider.local.yaml — Ollama only. You do not need a cloud key.

HTTP API

The dashboard REST endpoints: config, context, vendors, MCP and workspace.

Tools & MCP

The internal tools, the workspace, and the GitHub MCP setup.

The planning/ directory gives the causes of the design decisions. It also records the results of the live tests. planning/README.md is the index.

How to serve this site

The files in docs/site/ are HTML and CSS only. There is no build step and no external JavaScript.

powershell -File scripts\serve-docs.ps1
# → http://127.0.0.1:8090