# llm-cli-gateway [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/verivus-oss/llm-cli-gateway  
**GitHub Stars:** 19  
**npm Downloads (last month):** 818  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/llm-cli-gateway

## Description
Unified MCP gateway to Claude Code, Codex, and Gemini CLIs with sessions and async jobs.

## Tools
Capabilities this server exposes over MCP:

- **validate_with_models**
- **second_opinion**
- **compare_answers**
- **red_team_review**
- **consensus_check**
- **ask_model**
- **synthesize_validation**
- **list_available_models**
- **job_status**
- **job_result**
- **claude_request**
- **codex_request**
- **codex_fork_session**
- **gemini_request**
- **grok_request**
- **mistral_request**
- **claude_request_async**
- **codex_request_async**
- **gemini_request_async**
- **grok_request_async**
- **mistral_request_async**
- **llm_job_status**
- **llm_job_result**
- **llm_job_cancel**
- **llm_request_result**
- **llm_process_health**
- **approval_list**
- **list_models**
- **cli_versions**
- **upstream_contracts**
- **cli_upgrade**
- **session_create**
- **session_list**
- **session_set_active**
- **session_delete**
- **session_get**
- **session_clear_all**

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "llm-cli-gateway": {
    "command": "npx",
    "args": ["-y","llm-cli-gateway"]
  }
}
```

## Documentation

## What llm-cli-gateway MCP server does

The llm-cli-gateway MCP server provides one MCP entry point for several command-line coding agents. Its currently listed provider tools are `claude_request`, `codex_request`, `gemini_request`, and `grok_request`. These execute requests through Claude Code, Codex, the Google Antigravity CLI (`agy`), and a Grok CLI respectively.

Codex also has a dedicated `codex_fork_session` tool. It creates a new branch from an existing Codex session using the equivalent of `codex fork`, retaining the source session's history while allowing the new branch to diverge. The fork operation uses an argument-bound prompt and rejects prompts that exceed its supported UTF-8 input size.

## How it works

The gateway runs as a local MCP process and dispatches each tool call to the selected provider CLI. Request tools can use provider sessions, allowing callers to continue work rather than starting every request from scratch. Codex session forking accepts an existing session identifier or the most recent session and starts a separate continuation.

The project describes the gateway as a single-user control plane rather than a general chat proxy. It can preserve native CLI sessions and local credentials, and its broader design includes synchronous and asynchronous request handling, durable jobs, cancellation, deduplication, and workspace-scoped execution. Those capabilities are part of the gateway architecture; the listed tool surface here identifies the provider request and Codex fork operations.

## Setup and configuration

Install the package globally with npm:

```bash
npm install -g llm-cli-gateway
```

Alternatively, configure an MCP client to launch it through `npx`:

```json
{
  "mcpServers": {
    "llm-gateway": {
      "command": "npx",
      "args": ["-y", "llm-cli-gateway"]
    }
  }
}
```

The provider CLIs and their authentication are external prerequisites. The optional `LLM_GATEWAY_SKILLS_PATH` variable configures additional local skill-pack directories; it is not required for the basic MCP launch configuration.

## Tools and capabilities

- `claude_request`: sends a Claude Code request with optional session management.
- `codex_request`: sends a Codex request with optional session tracking.
- `codex_fork_session`: branches an existing Codex session while preserving the original.
- `gemini_request`: sends a request through the Google Antigravity CLI.
- `grok_request`: sends a request through a Grok CLI with session support.

## Limitations and notes

The llm-cli-gateway MCP server is documented for a single trusted user operating local or remote clients through an owned machine or volume. It depends on the provider CLIs being available and configured. Codex fork prompts have an input-size limit, and an oversized UTF-8 prompt is reported as a non-retryable input error.

_Full upstream README: https://allmcps.com/mcp/llm-cli-gateway/readme_

