TokHub
AI API 中转站监控、推荐运营与 OpenAI 兼容专属网关系统,支持分层探测、健康评分、用量计量、告警审计和 Docker 自托管。
Supply asset profile
Coding and developer agents
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
OpenAI Agents + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add yaojingang/TokHub
Maintenance
fresh
21d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
185
95/100 Quality · 82/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
Trust, audit, and install readiness at a glance
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Human review before install
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
185 GitHub stars
Repo activity
185 stars, 20 forks
Maintenance
21d since push
License
Apache-2.0
Install
npx skills add yaojingang/TokHub
Install safety
standard package or runtime install path
Permission surface
secrets or environment access, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Review before production
- Permission surface needs review: secrets or environment access, filesystem or document access
- Stars/forks activity: 185 stars, 20 forks; issue activity unavailable in current metadata
- Dependency/runtime risk: credential or environment access, external package install surface
- Permission surface: secrets or environment access, filesystem or document access
Install readiness
Install path available
- Install path is available
- Repository evidence is available
- License is declared
- No Agent Proven outcome evidence yet
Agent-readable metadata
Machine-readable decision data for this skill.
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
- Workflow automation workflows
- OpenAI Agents teams
- builders willing to evaluate younger projects
- Move data between tools
Suited agents
Install decision
- Command
- npx skills add yaojingang/TokHub
- Policy
- review
- Human review
- yes
Trust and risk
- Trust
- 74/100
- Audit
- 89/100
- Risk level
- Needs review
Outcome loop
- Endpoint
- /api/agent/outcome
- Event ID
- resolve
- Outcomes
- 5
Do not use when
- teams that need a vendor-supported SLA
- high-compliance environments without internal security review
- No major risk signals from current metadata
- High-risk permission hints: Secrets or environment access
- Dependency or permission surface needs review
Alternative
Graphify
92.0K Stars
npx skills add Graphify-Labs/graphify
Alternative
Gemini CLI
106.1K Stars
npx skills add google-gemini/gemini-cli
Alternative
System Prompts And Models Of AI Tools
141.2K Stars
npx skills add x1xhlol/system-prompts-and-models-of-ai-tools
Alternative
Taste Skill
65.0K Stars
npx skills add Leonxlnx/taste-skill
Agent safety v2
61/100 · Review before install
Usable candidate, but the agent should surface permission and audit notes before installation.
Require human approval before installing into a real workspace.
medium
Network access
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Filesystem access
Skill may read or write project files, documents, generated artifacts, or local workspace state.
high
Secrets or environment access
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
- High-risk permission hints: Secrets or environment access
- Dependency or permission surface needs review
Install targets
Install this skill in your agent workflow
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
OpenAgentSkill CLI
Use the registry command when your workflow supports the OpenAgentSkill installer.
$ npx skills add yaojingang/TokHubAgent resolve plan
Let an agent verify fit before installing.
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20TokHub%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20TokHub%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/yaojingang-tokhub/install
Agent should check
- Task fit and alternatives from Resolve API.
- Audit score, trust score, and safety policy warnings.
- Install target compatibility for Codex, Claude Code, Cursor, or CLI.
Copy prompt
Task: Use TokHub in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20TokHub%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/yaojingang-tokhub/install
Install command: npx skills add yaojingang/TokHub
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Give an agent the install path, not another directory page.
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/yaojingang-tokhub/install
LLM text format
/api/skills/yaojingang-tokhub/install?format=text
Find alternatives
/api/skills/search?q=TokHub&limit=3
Agent prompt
Use TokHub for this task. Review https://www.openagentskill.com/api/skills/yaojingang-tokhub/install, then install with: npx skills add yaojingang/TokHubRegistry metadata
Agent-readable profile for automatic skill selection.
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/yaojingang-tokhub
LLM text
/api/registry/manifest/yaojingang-tokhub?format=text
Install alias
/api/registry/install/yaojingang-tokhub
Recommend
/api/registry/recommend?task=Use%20TokHub%20in%20an%20agent%20workflow&limit=3
Agent fit
Workflow automation
Use-case tags
Platforms
TypeScript, OpenAI Agents
Audit report
Needs review · 89/100
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Primary pick for Workflow automation
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Workflow automation
Trust label
Production-ready
Install path
Command ready
Use when
- Workflow automation workflows
- OpenAI Agents teams
- builders willing to evaluate younger projects
Evidence
- recent repository activity
- install command or GitHub repo available
- 95/100 quality profile
- 4 OpenAgentSkill engagement events
review first
- No major risk signals from current metadata
Implementation path
- 1Install it in a sandbox agent and run one Workflow automation task end to end.
- 2Compare output quality, latency, and failure behavior against at least one alternative.
- 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.
Trust profile
Sandbox only
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO185 GitHub stars
Stars/forks activity
CHECK185 stars, 20 forks; issue activity unavailable in current metadata
Recent maintenance
PASS21d since push
License clarity
PASSApache-2.0
Good signals
- Manually verified listing
- AI review approved
- Install path is available
- Repository evidence is available
- Recently maintained repository
- Install command has no obvious high-risk pattern
- Outcome loop is ready but needs first real agent run
Review before install
- Permission surface needs review: secrets or environment access, filesystem or document access
- Stars/forks activity: 185 stars, 20 forks; issue activity unavailable in current metadata
- Dependency/runtime risk: credential or environment access, external package install surface
- Permission surface: secrets or environment access, filesystem or document access
- No real agent outcome reports yet
- Human review required before unattended installation
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Excellent candidate for agent workflows
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Use this skill in these scenarios
Automate repeated work
Workflow automation
I need my agent to automate a repeated workflow across tools and files.
Analyze datasets
Data analysis
I need my agent to analyze CSV data, produce insights, and explain trends.
Operate local tools
Local desktop
I need my agent to operate local files and desktop apps in a repeatable workflow.
Workflow fit
Add it to a complete workflow
Turn skills into distribution
Content growth agent
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Design, build, test, and ship interfaces
Frontend and UI
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Scrape, clean, and reuse web data
Web data pipeline
A practical workflow for agents that crawl public pages, extract clean content, normalize data, and hand it to downstream research or RAG workflows.
Alternative shortlist
Compare before you install
Similar skills that may fit this task.
Graphify
A tool that converts codebases, SQL schemas, and other files into queryable knowledge graphs for AI coding assistants.
Gemini CLI
Bring a coding agent directly into the terminal
System Prompts And Models Of AI Tools
FULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Qoder, Replit, Same.dev, Trae, Traycer AI, VSCode Agent, Warp.dev, Windsurf, Xcode, Z.ai Code, Dia & v0. (And other Open Sourced) System Prompts, Internal Tools & AI Models
Taste Skill
A portable AI agent skill that enhances AI-generated user interfaces with better layout, typography, motion, and spacing to avoid generic outputs.
Overview
# TokHub
TokHub 是面向 AI API 中转站的开源监控、推荐运营与 OpenAI 兼容专属网关系统。它把公开状态页、供应商排行、用户工作区、平台管理后台、分层探测、用量计量、告警审计、密钥加密和 Docker 自托管部署放在同一个系统里,适合用来搭建 AI API 服务导航、可用性监控平台、企业内部专属网关或多上游容灾入口。
English: [README.en.md](docs/README.en.md)
## 它解决什么问题
AI API 中转站、模型服务商和企业自建上游通常会遇到几类问题:
- 公开页面只能展示“可用”或“不可用”,但不知道是 DNS、TLS、鉴权、模型列表还是生成链路出了问题。 - 用户有自己的私有 Key 和上游地址,却缺少统一的健康监控、配额、网关和审计。 - 平台推荐页依赖人工整理,缺少可复用的榜单规则、推荐位、点击统计和公开 Open API。 - 企业想用一个 OpenAI 兼容入口接入多个上游,但需要按延迟、成功率、成本做路由,并记录每次请求的用量和费用。 - 自托管部署不应只给源码,还需要生产预检、备份恢复、无演示数据检查、安全扫描和发布门禁。
TokHub 的目标是把这些能力做成一个可运行、可部署、可二次开发的开源基础系统。
## 核心能力
### 公开监控和推荐前台
- 公开首页、通道列表、通道详情、供应商排行和精选推荐。 - 支持按品牌、模型、状态、价格、延迟、成功率等维度组织展示。 - 前台推荐页由后台配置驱动,支持精选位、新人福利、场景推荐和多套榜单规则。 - 提供 `/api/public/*` 公开数据接口和 `/v1/status/*` 第三方只读 Open API。 - 支持生成独立通道站点资产,便于把公开监控和推荐能力拆给不同站点使用。
### 用户工作区
- 用户可以收藏公开通道,也可以创建自己的私有通道。 - 私有通道支持 Endpoint、模型、额度、状态、立即探测和连接测试。 - 用户工作区包含专属网关、Gateway Key、成员、用量、告警、事件和审计。 - 工作区数据按组织隔离,普通用户不能访问平台后台和其它工作区资源。
### 平台管理后台
- 管理平台通道、私有通道、用户、组织、成员、Gateway Key、Open API 站点和推荐运营配置。 - 支持通道 CSV 导入导出、通道同步、批量启停、批量删除和二次密码验证。 - 支持全局用量报表、请求事件、成本估算、审计导出和治理概览。 - 支持站点配置、前台文案、模型目录和价格配置的后台维护。
### OpenAI 兼容专属网关
- 对外暴露 `/gateway/v1/*`,兼容 OpenAI 风格的 Models 和 Chat Completions 调用。 - 每个网关可以绑定多个平台上游或用户私有上游。 - Gateway Key 支持 QPS、月配额、状态管理、撤销、删除和一次性明文展示。 - 兼容非流式和流式响应,记录请求模型、上游通道、状态码、Token、延迟、成本和错误类型。
## 探测和健康算法
TokHub 把通道健康拆成三层,不把“接口能连上”和“模型真的能生成”混为一谈。
### L1 连通性探测
L1 负责基础网络链路:
- 解析 Endpoint URL。 - DNS 解析目标主机。 - 建立 TCP 连接。 - 对 HTTPS 目标执行 TLS 握手,并记录证书过期时间。 - 发起 HTTP HEAD 请求,判断入口是否可达。
L1 能定位 `dns_failed`、`tcp_failed`、`tls_failed`、`http` 层错误和坏 Endpoint。
### L2 模型可用性探测
L2 调用上游 `/models`,验证:
- API Key 是否有效。 - 上游是否返回可解析的模型列表。 - 当前配置的模型是否存在或可用。 - 部分供应商可按 provider profile 跳过模型列表探测。
L2 会把 401、403 识别为 `auth_error`,把模型缺失识别为 `model_not_found`。
### L3 真实生成探测
L3 发起最小 Chat Completions 请求,提示词要求模型只返回固定内容,用来验证真实推理链路:
- 记录总延迟、首 Token 估算、HTTP 状态、Token 用量和成本。 - 校验生成内容是否符合预期,避免“HTTP 成功但模型没有正常生成”的假阳性。 - 对慢响应、限流、空内容、鉴权失败和模型不可用分别归类。
### 状态合成
系统会把 L1、L2、L3 的结果合成通道状态:
- `healthy`:网络、模型和生成链路正常。
Platform compatibility
Technical details
- Version
- 1.0.0
- License
- Apache-2.0
- Last updated
- Jul 19, 2026
- Published
- Jul 8, 2026
Frameworks & tools
Decision snapshot
Primary pick
recent repository activity
Audit
Install review
Install and adoption review
- Security
- 81/100
- Maintenance
- 100/100
- Install
- 92/100
Agent-proven evidence
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
- Success rate
- —
- Recent failure
- —
- Outcomes
- 0
- Output quality
- —
- Failed
- 0
- Not relevant
- 0
- Installs
- 0
- Risk blocked
- 0
- Setup needed
- 0
- Production
- 0
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Add to agent workflow
Free and open source. Review the report before installing into production agents.
Growth loop
Share kit
Scenario-led draft for TokHub, ready for a manual X post.
TokHub: A comprehensive monitoring, recommendation, and OpenAI-compatible gateway system for AI API e... 185 stars https://www.openagentskill.com/skills/yaojingang-tokhub?ref=x
Optional reply with install command
Listing + install path for TokHub: https://www.openagentskill.com/skills/yaojingang-tokhub?ref=x Install: npx skills add yaojingang/TokHub
Listing source
Community indexed
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
- Creator
- yaojingang
- Source
- yaojingang/TokHub
- Indexed by
- OpenAgentSkill community index
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
Claim this skill listing
This Community indexed listing is attributed to yaojingang but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Add the evidence badges to your README
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/yaojingang-tokhub)
[](https://www.openagentskill.com/skills/yaojingang-tokhub)
[](https://www.openagentskill.com/skills/yaojingang-tokhub/audit)
[](https://www.openagentskill.com/skills/yaojingang-tokhub)Author
yaojingang✓
@yaojingang
Platform fit
Health signals
- GitHub stars
- 185
- Quality score
- 59/100
- Last GitHub push
- Jul 13, 2026
- Framework hints
- 1
- OpenAgentSkill views
- 4
- Install copies
- 0
- Outbound clicks
- 0
Community signal
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Trust & safety
Sandbox only
- GitHub adoption185 GitHub starsINFO
- Stars/forks activity185 stars, 20 forks; issue activity unavailable in current metadataCHECK
- Recent maintenance21d since pushPASS
- License clarityApache-2.0PASS
- README/SKILL.md completenessMetadata includes enough usage and workflow contextPASS
- Dependency/runtime riskcredential or environment access, external package install surfaceCHECK
Related skills
Graphify
A tool that converts codebases, SQL schemas, and other files into queryable knowledge graphs for AI coding assistants.
92.0K Stars · 0 InstallsGemini CLI
Bring a coding agent directly into the terminal
106.1K Stars · 0 InstallsSystem Prompts And Models Of AI Tools
FULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Qoder, Replit, Same.dev, Trae, Traycer AI, VSCode Agent, Warp.dev, Windsurf, Xcode, Z.ai Code, Dia & v0. (And other Open Sourced) System Prompts, Internal Tools & AI Models
141.2K Stars · 0 InstallsTaste Skill
A portable AI agent skill that enhances AI-generated user interfaces with better layout, typography, motion, and spacing to avoid generic outputs.
65.0K Stars · 0 Installs