# Preset Skill Openrouter

> Use when revising the built-in openrouter TUI preset.

- Skill: `lingtai-ai/preset-skill-openrouter` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lingtai-ai/preset-skill-openrouter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lingtai-ai/preset-skill-openrouter/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: lingtai-ai (https://skillmd.com/u/lingtai-ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/lingtai-ai/preset-skill-openrouter

---


# openrouter preset revision

Use this child for the named built-in openrouter preset. openrouterPreset in
tui/internal/preset/preset.go:1418 ships gateway provider openrouter, model
z-ai/glm-5.3, provider-resolved base_url, OPENROUTER_API_KEY, web_search,
and skills; the stock manifest has no vision capability.

The stock template is text-only. A saved preset that explicitly adds
`capabilities.vision` may attempt the selected downstream model's endpoint
and only then may the vision tool attempt that endpoint; gateway-wide
multimodality alone does not change this template.

## Template-specific settings

Read the official [OpenRouter model guide](https://openrouter.ai/docs/guides/overview/models)
and [multimodal guide](https://openrouter.ai/docs/guides/overview/multimodal/image-understanding).
For the live gateway catalog, authenticated GET
https://openrouter.ai/api/v1/models is the lookup; inspect each returned id,
input_modalities, supported parameters, and endpoint details. The website is
useful for browsing but the API response is the served-list evidence. Do not
confuse a downstream provider model or gateway-wide multimodality with the
stock preset's capability wiring.

## TUI surfaces to revise

Start at openrouterPreset in tui/internal/preset/preset.go. OpenRouter
intentionally has no providerModels picker or modelHasVision binding, so the
model remains free text and a catalog update does not automatically edit the
TUI. Recheck the constructor's provider-resolved base_url, credential, and
absent vision key; inspect the fixed capability rendering only if that
constructor contract changes. Follow tui/CONTRACT.md.

## Reviewed deterministic revision

Prepare an evidence-bound manifest and explicit input, then run
lingtai-tui presets revise --manifest PATH --input PATH --mode dry-run|check|apply
[--output-dir PATH]. Review the JSON plan, use dry-run/check before apply, and
apply only to a new explicit output directory. revision.go validates hashes,
route bindings, and evidence and preserves unowned bytes. This amendment
revises the constructor default to z-ai/glm-5.3. GLM 5.3, 5.3 Flash, and 5.2
remain documented choices only; batch variants are excluded from interactive
use and no universal picker is introduced.

Maintenance: If the relevant TUI preset/page is revised, check whether this sub-skill also needs revision and, if so, include it in the same PR.

## Operations

For save, endpoint/capability, availability, activation/refresh, or
troubleshooting, use the five shared operation children under
`reference/operations/`; this child owns OpenRouter gateway and capability
facts.

