bailian-web-search

bailian-web-search is a skill for Claude Code, Codex from modelstudioai/cli. It costs 265 tokens per session (1,842 once invoked), scanned A, original, Apache-2.0.

A routing skill for web searches through Alibaba Cloud Bailian. It chooses between Bailian's search service and a model's built-in web-search tool based on the active account and connection.

In plain words
What is it for?
Use it when a Bailian workflow needs current information from the web, especially to determine the correct search command for the current model identity and credentials.
Why use it?
It prevents searches from being sent through the wrong account or an incompatible endpoint. It also defines a fallback when the primary search path cannot authenticate or connect.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when a Bailian workflow needs current information from the web, especially to determine the correct search command for the current model identity and credentials.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/modelstudioai/cli/bailian-web-search
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 modelstudioai/cli --skill bailian-web-search
Clone the repo
git clone --depth 1 https://github.com/modelstudioai/cli

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 bailian-web-search

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/modelstudioai/cli/bailian-web-search"><img src="https://agentmods.dev/badge/skills/modelstudioai/cli/bailian-web-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 265 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,842 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Oct 2026
  • Snyk warn 15 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00265 $0.01842
Opus 5.5 $0.00106 $0.00737
Sonnet 5.5 $0.00053 $0.00368
Haiku 4.5 $0.00026 $0.00184

Measured today against content hash f17f3578e6e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bailian-web-search scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/bailian-web-search/SKILL.md · 121 lines

How it starts

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

CRITICAL — Before executing, MUST read the shared protocol in ../bailian-protocol/SKILL.md: Provider selection and consent, Version & updates (pre-flight checklist), Setup & auth, and CLI errors: report an issue. If that protocol file is missing, stop and run bl skill init; do not guess auth/consent.

Scope: model-aware routing for web search inside Agent-driven bl workflows — this skill owns the routing decision only. Command flags / usage / examples: Read skill bailian-cli reference if installed; else bl search web --help / bl text chat --help — do not guess flags.

Install (supported): bl skill init

Token Plan keys do not authorize Bailian MCP search — never route them to bl search web.

Routing workflow

Step 1 — Identify the active model identity

Run (no auth needed):

bl config show --output json

Treat the connection as Token Plan when either condition holds — this mirrors the CLI's own endpoint detection (usesTokenPlanEndpoint), so routing stays consistent with command behavior:

  • config (active profile name) is token-plan, or
  • the hostname of base_url matches token-plan.<region>.maas.aliyuncs.com (e.g. https://token-plan.cn-beijing.maas.aliyuncs.com).

Do not rely on the profile name alone: users can create additional Token Plan profiles under custom names, and only the Base URL host check catches those. Anything else → default identity.

Step 2 — Route by identity

Condition Route Notes
Token Plan model identity Model-native path Preferred — the only path Token Plan keys authorize
Any other model / default MCP path Default for regular DashScope API keys
MCP path (eligible fail) Model-native path, exactly once Fallback — only for the failure classes below

Read the full file on GitHub · 121 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. today Changed f17f3578e6e4
  2. 2d ago Changed 3e008f45ca54
  3. 4d ago Changed 881d89a0c894
  4. 18d ago Changed c8f4bd7eab53
  5. 24d ago Changed 7ba6be9eccfc
  6. 26d ago Changed 978bce3a9ac8
  7. 28d ago Changed 3599cd839b9c
  8. 29d ago Changed 3e433bac3023
  9. 1mo ago Changed 17a055964b20
  10. 1mo ago First seen · 121 lines · 265 tokens per session scan A 5d2b362ede64

Subscribe to this mod's changes

bailian-web-search is a skill published in the GitHub repository modelstudioai/cli (478 stars, last pushed yesterday), licensed Apache-2.0. It adds 265 tokens to every session and 1,842 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

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

obsidian-bases

Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

kepano/obsidian-skills · 63 tokens

skillshare

Manage skills, agents, extras, hooks, plugins, and MCP connection settings with the Skillshare CLI. Use when the user asks to configure or run Skillshare, install or sync resources across AI tools, manage shared memory notes, review a session for lessons or dream over saved memories, import MCP settings, manage…

runkids/skillshare · 100 tokens

skillshare-implement-feature

Implement a feature from a spec file or description using TDD workflow. Use this skill whenever the user asks to: add a new CLI command, implement a feature from a spec, build new functionality, add a flag, create a new internal package, or write Go code for skillshare. This skill enforces test-first development…

runkids/skillshare · 114 tokens

skillshare-changelog

Generate CHANGELOG.md entry from recent commits in conventional format. Also syncs the website changelog page. Use this skill whenever the user asks to: generate a changelog, document what changed between tags, or create a new CHANGELOG entry. If you see requests like "write the changelog for v0.17", "what changed…

runkids/skillshare · 134 tokens