llm-cli-gateway: Instructions file for Claude Code

CLAUDE.md

llm-cli-gateway CLAUDE.md is an instructions file for Claude Code, Codex from verivus-oss/llm-cli-gateway. It costs 6,982 tokens per session, scanned A, original, MIT.

Project instructions for llm-cli-gateway, an MCP server that gives one interface to several command-line AI tools such as Claude Code, Codex, Gemini, and Cursor. MCP is a standard way for an AI assistant to access tools and data.

In plain words
What is it for?
Use them when changing the gateway, running its Vitest tests, building it with Node, or working on sessions, background jobs, validation, retries, and token handling.
Why use it?
They help developers build and test the gateway while keeping its provider list, release process, and repository conventions consistent.

Instructions file for Claude CodeCodex

Written for Codex and Claude Code: reads ~/.codex or $CODEX_HOME, but also the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is verivus-oss/llm-cli-gateway's own configuration. It tells Claude Code and Codex how to work on llm-cli-gateway itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llm-cli-gateway configures →

Reuse

Borrowing it

Nothing to install: this file belongs to verivus-oss/llm-cli-gateway. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/verivus-oss/llm-cli-gateway/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/verivus-oss/llm-cli-gateway

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for llm-cli-gateway CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/verivus-oss/llm-cli-gateway/claude-md.svg)](https://agentmods.dev/instructions/verivus-oss/llm-cli-gateway/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/verivus-oss/llm-cli-gateway/claude-md"><img src="https://agentmods.dev/badge/instructions/verivus-oss/llm-cli-gateway/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 6,982 This file is loaded in full into every session.
When invoked 6,982 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.06982 $0.06982
Opus 5 $0.03491 $0.03491
Sonnet 5 $0.01396 $0.01396
Haiku 4.5 $0.00698 $0.00698

Measured 2d ago against content hash 4065206d9db4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

llm-cli-gateway CLAUDE.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Unit tests: complete mocks for isolation (fs, child_process)
CLAUDE.md · 336 lines

How it starts

The opening of the file, as written. The whole thing — 336 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Repository Overview

This repository contains the llm-cli-gateway (npm llm-cli-gateway, MCP name io.github.verivus-oss/llm-cli-gateway), a production-ready Model Context Protocol (MCP) server that provides unified access to multiple LLM CLI tools (Claude Code, Codex, Gemini, Grok, Mistral Vibe, Devin, and Cursor). The canonical provider list is CLI_TYPES in src/provider-types.ts. The gateway enables multi-LLM orchestration, session management, async job orchestration with durable results, cross-LLM validation, token optimization, and retry logic with circuit breakers. Requires Node >=24.4.0 (uses the built-in node:sqlite module).

The package is developed in this internal repo and released via a public GitHub mirror (verivus-oss/llm-cli-gateway) that publishes to npm. See the memory notes on the release flow before touching anything release related.

Development Commands

Build and Test

The test runner is vitest (npm test == vitest run). The default suite spans src/__tests__/**/*.test.ts and scripts/**/*.test.mjs.

# Build TypeScript to JavaScript (tsconfig.build.json excludes tests)
npm run build

# Run all tests
npm test

# Run a single test file (any path)
npx vitest run src/__tests__/executor.test.ts
# ...or a single test by name
npx vitest run -t "circuit breaker opens"

# Named suite shortcuts
npm run test:unit          # executor.test.ts
npm run test:session       # session-manager.test.ts
npm run test:integration   # real CLI calls (INTEGRATION_TESTS=1)
npm run test:fuzz          # fast-check property/fuzz tests
npm run test:pg            # Postgres-backed suites (spins up PG via scripts/test-pg.sh)
npm run test:all           # npm test + test:pg
npm run test:coverage      # v8 coverage (70% lines/functions/statements, 60% branches)

# Watch mode for development
npm run test:watch

# The full gate. `node scripts/check.mjs --list` prints the steps; they are
# declared in scripts/check-steps.mjs, not chained in package.json.
#
# EVERY step runs and every result is reported, which the previous 22-step
# `&&` chain could not do: one failure hid every step after it, and that is not
# hypothetical, `security:audit` sat at 21 of 22 failing on every developer tree
# so `verify:no-internal-mcp:check` never ran at all. A step blocked by a failed
# dependency is reported SKIPPED and fails the gate; not run is not the same as
# fine. `--fail-fast` restores the old stop-at-first behaviour when you want it.
npm run check
npm run check -- --only lint --only format:check   # one or more steps
npm run check -- --list                            # what the gate contains

Read the full file on GitHub · 336 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +50 lines · +1,960 tokens per session 4065206d9db4
  2. 6d ago First seen · 286 lines · 5,022 tokens per session scan A c75ad54710a6

Subscribe to this mod's changes

llm-cli-gateway CLAUDE.md is an instructions file published in the GitHub repository verivus-oss/llm-cli-gateway (15 stars, last pushed 3d ago), licensed MIT. It adds 6,982 tokens to every session, about $0.0349 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens