copilot-api: Skill for Claude Code

.agents/skills/copilot-api-web-search/SKILL.md

copilot-api-web-search is a skill for Claude Code, Codex from caozhiyuan/copilot-api. It costs 134 tokens per session (1,518 once invoked), scanned A, original, MIT.

A web-search tool for finding information online, opening pages, inspecting their contents, following links, and querying data such as weather, finance, sports, or time.

In plain words
What is it for?
Use it for web research, reading linked pages, finding text on a page, and looking up structured information. It is not for searching files in a local code repository or private sites the search service cannot reach.
Why use it?
It gives an agent a way to research current information instead of relying only on its existing knowledge. It also supports page references so findings can be checked.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions Codex; mentions OpenCode.

This is caozhiyuan/copilot-api's own configuration. It tells Claude Code and Codex how to work on copilot-api 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 copilot-api configures →

About the project

caozhiyuan/copilot-api is a local AI gateway that exposes OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages interfaces for multiple providers. It lets clients such as Claude Code, OpenCode, and Codex connect through one endpoint to GitHub Copilot, the built-in Codex provider, and other configured services.

caozhiyuan/copilot-api · 1,136 stars · on GitHub · caozhiyuan.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to caozhiyuan/copilot-api. 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/caozhiyuan/copilot-api/dev/.agents/skills/copilot-api-web-search/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/caozhiyuan/copilot-api

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 copilot-api-web-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/caozhiyuan/copilot-api/copilot-api-web-search/github.svg)](https://agentmods.dev/skills/caozhiyuan/copilot-api/copilot-api-web-search)
Your own site
<a href="https://agentmods.dev/skills/caozhiyuan/copilot-api/copilot-api-web-search"><img src="https://agentmods.dev/badge/skills/caozhiyuan/copilot-api/copilot-api-web-search/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 copilot-api-web-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/caozhiyuan/copilot-api/copilot-api-web-search"><img src="https://agentmods.dev/badge/skills/caozhiyuan/copilot-api/copilot-api-web-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,518 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.00134 $0.01518
Opus 5.5 $0.00054 $0.00607
Sonnet 5.5 $0.00027 $0.00304
Haiku 4.5 $0.00013 $0.00152

Measured 3d ago against content hash 910384212b02, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

copilot-api-web-search 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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/web_search.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

- Use `scripts/web_search.mjs` directly; do not write one-off curl/fetch wrapper scripts unless the user asks for one.
.agents/skills/copilot-api-web-search/SKILL.md · 88 lines

How it starts

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

Copilot API Web Search Skill

Run structured, session-aware web search and page inspection through a running copilot-api gateway (/v1/alpha/search) via the bundled zero-dependency Node.js/Bun CLI (scripts/web_search.mjs).

When to use

  • Run one or more web searches and retrieve grounded snippets with ref_id citations
  • Open a URL or a previously returned ref_id to inspect page content
  • Find a specific text pattern inside an opened page or URL
  • Follow a numbered link (click) from an opened page snapshot
  • Query structured lookups: finance, weather, sports, or time
  • Run combined multi-command alpha-search requests in a single turn (raw)

When not to use

  • Searching local repository code or reading local files (use local file/search tools)
  • Inspecting GitHub PRs/issues when gh or a dedicated GitHub integration is better suited
  • Tasks that require authenticated private intranet sites the upstream search backend cannot reach

Quick start

Resolve <SKILL_DIR> relative to this SKILL.md (in this repository: .agents/skills/copilot-api-web-search):

export WEB_SEARCH=".agents/skills/copilot-api-web-search/scripts/web_search.mjs"

Run with node (Node.js 20+) or bun — no npm install or Python packages required:

node "$WEB_SEARCH" search --query "copilot-api web search" --response-length medium

Decision tree

  1. Need web discovery? Start with search --query "<q>" (repeatable for multiple queries).
  2. Need to read a returned result? Reuse the printed Session ID with open --session-id <id> --ref turn0search0 (or open any direct https://... URL).
  3. Need a specific passage on a page? Reuse --session-id with find --ref turn0view0 --pattern "<term>".
  4. Need to follow a link from an opened snapshot? Reuse --session-id with click --ref turn0view0 --link-id <n>.
  5. Need finance / weather / sports / time? Use structured with the matching flags.
  6. Need multiple command types in one turn? Use raw --commands-json '...' or --commands-file <path>.

Read the full file on GitHub · 88 lines

Files

What ships with it

3 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. 3d ago First seen · 88 lines · 134 tokens per session scan A 910384212b02

Subscribe to this mod's changes

copilot-api-web-search is a skill published in the GitHub repository caozhiyuan/copilot-api (1,136 stars, last pushed yesterday), licensed MIT. It adds 134 tokens to every session and 1,518 once invoked, about $0.0005 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-11-27.

Related

copilot-api-web-search compared with skills from other repositories

copilot-api-web-search next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
copilot-api-web-searchcaozhiyuan/copilot-apiSkill1.1kyesterdayMITA134Claude Code, Codex
zenrouter-videoZenRouter/ZenRouterSkill51mo agoMITA73Claude Code, Codex
zenrouter-web-searchZenRouter/ZenRouterSkill51mo agoMITA73Claude Code, Codex
zenrouter-imageZenRouter/ZenRouterSkill51mo agoMITA73Claude Code, Codex
zenrouterZenRouter/ZenRouterSkill51mo agoMITA82Claude Code, Codex
zenrouter-embeddingsZenRouter/ZenRouterSkill51mo agoMITA65Claude Code, Codex
zenrouter-web-fetchZenRouter/ZenRouterSkill51mo agoMITA62Claude Code, Codex