routerbase-api-integration-cn

routerbase-api-integration-cn is a skill for Claude Code, Codex from YangsonHung/awesome-agent-skills. It costs 44 tokens per session (446 once invoked), scanned A, original, MIT.

Guidance for connecting an application to RouterBase, a gateway that accepts the OpenAI-compatible API format. It covers moving SDK calls, setting the gateway address, and configuring requests and credentials.

In plain words
What is it for?
Use it to write Python, JavaScript, curl, LangChain, LlamaIndex, Vercel AI SDK, Cursor, or Continue examples for chat requests, streaming, tool calls, JSON responses, and image input.
Why use it?
It helps when an existing OpenAI-style integration must use RouterBase without rewriting the whole client. It also explains how to check requests, handle errors, and keep API keys out of source code.

Skill for Claude CodeCodex

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

Good fit Use it to write Python, JavaScript, curl, LangChain, LlamaIndex, Vercel AI SDK, Cursor, or Continue examples for chat requests, streaming, tool calls, JSON responses, and image input.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yangsonhung/awesome-agent-skills/routerbase-api-integration-cn
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 YangsonHung/awesome-agent-skills --skill routerbase-api-integration-cn
Clone the repo
git clone --depth 1 https://github.com/YangsonHung/awesome-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 routerbase-api-integration-cn

README.md
[![agentmods](https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/routerbase-api-integration-cn/github.svg)](https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/routerbase-api-integration-cn)
Your own site
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/routerbase-api-integration-cn"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/routerbase-api-integration-cn/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 routerbase-api-integration-cn

Your own site · 80×15
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/routerbase-api-integration-cn"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/routerbase-api-integration-cn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 446 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.00044 $0.00446
Opus 5 $0.00022 $0.00223
Sonnet 5 $0.00009 $0.00089
Haiku 4.5 $0.00004 $0.00045

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

Security

Grade A, and why

routerbase-api-integration-cn 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 10d 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.

- 为 Python、JavaScript、curl、LangChain、LlamaIndex、Vercel AI SDK、Cursor、Continue 等客户端编写 RouterBase 接入示例
skills/zh-cn/routerbase-api-integration-cn/SKILL.md · 36 lines

What it actually says

RouterBase API 集成

Overview

使用 routerbase 作为 OpenAI 兼容模型网关接入应用。本技能覆盖 SDK 迁移、base URL 配置、流式输出、tool calling、JSON mode、视觉输入、请求校验、错误处理和凭据安全。

何时使用

当用户提出以下需求时使用本技能:

  • 将 OpenAI 兼容 SDK 调用迁移到 RouterBase
  • base_urlbaseURL 设置为 https://routerbase.com/v1
  • 安全配置 RouterBase API Key,避免泄露密钥
  • 实现 chat completions、流式输出、tool calling、JSON mode 或视觉输入
  • 为 Python、JavaScript、curl、LangChain、LlamaIndex、Vercel AI SDK、Cursor、Continue 等客户端编写 RouterBase 接入示例

不要使用

以下场景不应使用本技能:

  • 发布、记录或保存真实 API Key
  • 猜测用户未提供且上游文档没有说明的供应商行为
  • 用户只需要模型选择建议时,重写已有可用的供应商集成

使用说明

  1. 识别用户当前使用的客户端、语言、模型 ID 和部署环境。
  2. 尽量保留现有 OpenAI 兼容 SDK,只改 base URL、模型和本地密钥配置。
  3. 示例中使用 <ROUTERBASE_API_KEY> 等占位符。
  4. API Key 必须保留在服务端或本地安全环境中,不写入 git。
  5. 在建议大范围改动前,优先提供一个小型测试请求。
  6. 输出校验清单,覆盖预期状态码、响应结构、超时处理和日志脱敏要求。
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. 10d ago First seen · 36 lines · 44 tokens per session scan A a4017d81f6ec

Subscribe to this mod's changes

routerbase-api-integration-cn is a skill published in the GitHub repository YangsonHung/awesome-agent-skills (18 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 446 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

houtu-dependencies

Skill "houtu-dependencies" from lujiafa/houtu-project-skills, covering houtu framework — ai agent coding guide, core principles, code generation workflow (must be executed in order), step 1 — detect version & dependencies and step 2 — identify scenario & select module.

lujiafa/houtu-project-skills · 283 tokens

ag-ui

React hook that connects an AG-UI protocol agent endpoint to reachat. Returns the props needed by plus session helpers, and streams responses via SSE (text/event-stream).

reaviz/skills · 0 tokens

add-matrix

Add Matrix channel integration via Chat SDK. Works with any Matrix homeserver.

nanocoai/nanoclaw · 19 tokens

django-storages-s3

Use when configuring Django to store static and media files on AWS S3 with django-storages. Invoke when working with the STORAGES setting, S3 buckets, presigned URLs, CloudFront, or boto3-backed file storage in settings.py. Configures the Django 4.2+ STORAGES dict, public/private custom backends, presigned GET/POST…

Jeffallan/claude-skills · 138 tokens

laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…

Jeffallan/claude-skills · 86 tokens

sns

AWS SNS notification service for pub/sub messaging. Use when creating topics, managing subscriptions, configuring message filtering, sending notifications, or setting up mobile push.

itsmostafa/aws-agent-skills · 32 tokens