hermes-agent-litellm-vertex-gateway

hermes-agent-litellm-vertex-gateway is a skill for Claude Code, Codex from davidtoby/agent-skills. It costs 70 tokens per session (1,303 once invoked), scanned A, original, MIT.

A configuration guide for adding a local LiteLLM Vertex Proxy as a model option in Hermes Agent. The proxy lets Hermes access Gemini models through a service running on your computer.

In plain words
What is it for?
Use it to verify the local proxy, find the Hermes configuration file, and add Gemini as an additional model choice.
Why use it?
It provides the checks and configuration changes needed to connect the two tools while keeping Hermes’s existing setup intact. It assumes the proxy and Hermes are already installed.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for hermes-agent. Also seen: mentions Claude Code; mentions Codex; built for hermes-agent.

Good fit Use it to verify the local proxy, find the Hermes configuration file, and add Gemini as an additional model choice.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davidtoby/agent-skills/hermes-agent-litellm-vertex-gateway
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add davidtoby/agent-skills --skill hermes-agent-litellm-vertex-gateway
Clone the repo
git clone --depth 1 https://github.com/davidtoby/agent-skills

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 hermes-agent-litellm-vertex-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/davidtoby/agent-skills/hermes-agent-litellm-vertex-gateway/github.svg)](https://agentmods.dev/skills/davidtoby/agent-skills/hermes-agent-litellm-vertex-gateway)
Your own site
<a href="https://agentmods.dev/skills/davidtoby/agent-skills/hermes-agent-litellm-vertex-gateway"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/hermes-agent-litellm-vertex-gateway/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hermes-agent-litellm-vertex-gateway

Your own site · 80×15
<a href="https://agentmods.dev/skills/davidtoby/agent-skills/hermes-agent-litellm-vertex-gateway"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/hermes-agent-litellm-vertex-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,303 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00070 $0.01303
Opus 5.5 $0.00028 $0.00521
Sonnet 5.5 $0.00014 $0.00261
Haiku 4.5 $0.00007 $0.00130

Measured 2mo ago against content hash 9d43077a3fe9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hermes-agent-litellm-vertex-gateway 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -H "Authorization: Bearer <LITELLM_MASTER_KEY>" http://127.0.0.1:4000/v1/models
skills/hermes-agent-litellm-vertex-gateway/SKILL.md · 163 lines

How it starts

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

Hermes Agent — Connect to Local LiteLLM Vertex Proxy

让 Hermes Agent 连接到本地已有的 LiteLLM Vertex Proxy,以使用 Gemini 模型,不影响现有配置。

Situation

本地已部署 LiteLLM Vertex Proxy(http://127.0.0.1:4000),现在需要让 Hermes Agent 在不更改当前配置的情况下,多一个调用本地 Gemini 的选项,并支持临时切换。


Prerequisites

  1. LiteLLM Vertex Proxy 已运行在 127.0.0.1:4000
  2. Proxy 已配置 LITELLM_MASTER_KEY
  3. 至少一个 Gemini 模型已暴露(通过 GET /v1/models 可验证)
  4. Hermes Agent 已安装并运行在 ~/.hermes/

Step 1 — Verify the LiteLLM Proxy

在配置 Hermes 之前,先验证 proxy 可用:

# 1. 检查端口监听
lsof -nP -iTCP:4000 -sTCP:LISTEN

# 2. 获取 master key(从 proxy 项目目录的 .env)
grep LITELLM_MASTER_KEY ~/GitHub-Codebase/litellm-vertex-proxy/.env

# 3. 验证 /v1/models 可访问
curl -s -H "Authorization: Bearer <LITELLM_MASTER_KEY>" http://127.0.0.1:4000/v1/models

# 4. 确认可用模型名
curl -s -H "Authorization: Bearer <LITELLM_MASTER_KEY>" http://127.0.0.1:4000/v1/models \
  | python3 -c "import sys,json; d=json.load(sys.stdin); [print(m['id']) for m in d.get('data',[])]"

输出类似:

gemini-3.1-pro-preview

Step 2 — Locate Hermes Config

~/.hermes/config.yaml

Step 3 — Add the Provider and Model to config.yaml

# 备份
cp ~/.hermes/config.yaml ~/.hermes/config.yaml.bak.$(date +%Y%m%d%H%M%S)

编辑 ~/.hermes/config.yaml,替换顶部的 model: 和 providers: 块:

model:
  default: gpt-5.4              # 保持原有默认不变
  provider: openai-codex        # 保持原有默认不变
  base_url: https://chatgpt.com/backend-api/codex

providers:
  local-litellm:
    name: local-litellm
    base_url: http://127.0.0.1:4000
    api_key: <LITELLM_MASTER_KEY>
    models:
      - gemini-3.1-pro-preview

⚠️ <LITELLM_MASTER_KEY> 替换为实际值,从 ~/GitHub-Codebase/litellm-vertex-proxy/.env 中读取。 不要把这个 key 打印到聊天里。


Step 4 — Restart Hermes Gateway

# 方式 A:如果是 Hermes Agent 运行在终端
# 按 Ctrl+C 停止,然后重新启动

# 方式 B:如果是通过 launchd/systemd 运行
# 查找并重启对应服务
launchctl list | grep hermes
# 或
ps aux | grep hermes

Step 5 — Verify the Connection

# 在 Hermes 对话中发送:
/model local-litellm/gemini-3.1-pro-preview

Read the full file on GitHub · 163 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 163 lines · 70 tokens per session scan A 9d43077a3fe9

Subscribe to this mod's changes

hermes-agent-litellm-vertex-gateway is a skill published in the GitHub repository davidtoby/agent-skills (11 stars, last pushed 3mo ago), licensed MIT. It adds 70 tokens to every session and 1,303 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

morph-ppt

Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style continuous motion, shapes that grow / move / rotate as the slide advances. Trigger on: 'morph', 'morph transition', 'smooth transition', 'continuous animation across slides', 'Keynote-style…

iOfficeAI/OfficeCLI · 169 tokens

officecli-academic-paper

Use this skill to build academic-style .docx output: journal / conference / thesis chapters carrying formal citation style (APA, Chicago, IEEE, MLA), numbered equations, figure & table cross-references, footnotes/endnotes, bibliography, or multi-column journal layout. Trigger on: 'research paper', 'journal paper'…

iOfficeAI/OfficeCLI · 141 tokens

officecli

Create, analyze, proofread, and modify Office documents (.docx, .xlsx, .pptx) using the officecli CLI tool. Use when the user wants to create, inspect, check formatting, find issues, add charts, or modify Office documents.

iOfficeAI/OfficeCLI · 56 tokens

new

Create a new project to start development quickly.

clacky-ai/openclacky · 10 tokens

officecli-word-form

Use this skill to create fillable Word forms (.docx) with real Content Controls (SDT) + legacy FormField checkboxes + MERGEFIELD mail-merge placeholders + document protection. Trigger on: 'fillable form', 'form fields', 'content controls', 'SDT', 'word form', 'fill in', 'only editable fields', 'protect document'…

iOfficeAI/OfficeCLI · 224 tokens

officecli-data-dashboard

Use this skill to build a multi-element Excel dashboard — Dashboard sheet on open, multiple formula-driven KPI cards, multiple charts, sparklines, and conditional formatting — from CSV or tabular input. Trigger on: 'dashboard', 'KPI dashboard', 'analytics dashboard', 'executive dashboard', 'metrics dashboard', 'CSV to…

iOfficeAI/OfficeCLI · 159 tokens