qmt-bridge-setup

qmt-bridge-setup is a skill for Claude Code, Codex from atorber/qmt-trading-skill. It costs 77 tokens per session (2,095 once invoked), scanned A, original, MIT.

A setup guide for QMT Bridge, a local service that lets software communicate with the QMT trading platform over HTTP. It covers installation, starting the service, health checks, and environment configuration.

In plain words
What is it for?
Use it to install or start QMT Bridge, run it under PM2 for background supervision, check its health, and configure its port, API key, and miniQMT path.
Why use it?
It removes the manual work of finding the service, starting it correctly, and diagnosing connection or configuration problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Good fit Use it to install or start QMT Bridge, run it under PM2 for background supervision, check its health, and configure its port, API key, and miniQMT path.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atorber/qmt-trading-skill/qmt-bridge-setup
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 atorber/qmt-trading-skill --skill qmt-bridge-setup
Clone the repo
git clone --depth 1 https://github.com/atorber/qmt-trading-skill

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 qmt-bridge-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/atorber/qmt-trading-skill/qmt-bridge-setup/github.svg)](https://agentmods.dev/skills/atorber/qmt-trading-skill/qmt-bridge-setup)
Your own site
<a href="https://agentmods.dev/skills/atorber/qmt-trading-skill/qmt-bridge-setup"><img src="https://agentmods.dev/badge/skills/atorber/qmt-trading-skill/qmt-bridge-setup/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 qmt-bridge-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/atorber/qmt-trading-skill/qmt-bridge-setup"><img src="https://agentmods.dev/badge/skills/atorber/qmt-trading-skill/qmt-bridge-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,095 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.00077 $0.02095
Opus 5.5 $0.00031 $0.00838
Sonnet 5.5 $0.00015 $0.00419
Haiku 4.5 $0.00008 $0.00210

Measured 1mo ago against content hash 6ff182eeb4d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

qmt-bridge-setup 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/bridge_health.py), 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.

# 浏览器或 curl
skills/qmt-bridge-setup/SKILL.md · 170 lines

How it starts

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

QMT Trading Skill · Bridge 安装与启动

实现状态:✅ 规程可用;bridge_health.py 做连通性检查

目标

在 Windows(与 QMT 同机) 安装并启动 qmt-bridge,使本仓及其他 Agent Skills 能通过 HTTP 调用行情与交易接口。

总规程(必须遵守)

  1. 先健康检查:运行 bridge_health.py 或请求 GET /api/meta/health
  2. 服务已可达 → 向用户报告主机/端口与健康结果,禁止重复 pip install、禁止重启 / 再启 qmt-server / PM2(除非用户明确要求重启)
  3. 服务不可达 → 再按下方「安装 → 启动 → 验证 → 同步本仓 .env」执行;安装前探测本地是否已有 Bridge 仓库,有则跳过 clone

提示词示例

场景 提示词
推荐(先检测) 检查 QMT Bridge 是否已启动;若未启动再帮我安装并启动。已在跑则不要重复安装或重启。
首次安装 帮我安装并启动 QMT Bridge
日常启动 启动 qmt-server · 用 PM2 拉起 Bridge
排障 Bridge 连不上,帮我做健康检查 · 检查 qmt-server 是否在跑
配置客户端连接 帮我配置 Skills 连接 QMT Bridge:主机 127.0.0.1,端口 8080,写入 skills 根 .env 后做健康检查(API Key 勿打进聊天)
配置 Bridge 服务端 配置 Bridge 的端口、API Key 和 miniQMT 路径

前提条件

  • Windows + Python 3.10+
  • 已安装 QMT 客户端,券商已开通 miniQMT;启动前勾选 「独立交易」 登录并保持运行
  • 长期守护需 Node.js + 全局 pm2(npm install -g pm2)
  • 本机或局域网防火墙放行 Bridge 端口(常用 8080 / .env 中实际端口)

Bridge 源码位置(按优先级)

  1. 本仓 submodule:vendor/qmt-bridge(开发对照)
  2. 并列目录:../qmt-bridge
  3. 单独克隆:git clone https://github.com/atorber/qmt-bridge.git

Agent 先探测本地是否已有仓库,再决定 clone / 跳过。

规程:安装

在 Bridge 仓库根目录(非本 Skill 仓):

cd <qmt-bridge 根目录>
pip install -e ".[full]"
copy .env.example .env

仅客户端(在主力机跑 Skill、不启服务)可:pip install qmt-bridge-pro(导入名仍是 qmt_bridge)。

编辑 Bridge 侧 .env(服务端):

变量 说明
QMT_BRIDGE_HOST 服务监听,局域网访问用 0.0.0.0
QMT_BRIDGE_PORT 监听端口(与本仓客户端一致)
QMT_BRIDGE_API_KEY 交易端点密钥
QMT_BRIDGE_TRADING_ENABLED 启用交易时设 true
QMT_BRIDGE_MINI_QMT_PATH 如 C:\国金QMT交易端\userdata_mini
QMT_BRIDGE_STOCK_ACCOUNT_ID / CREDIT_ACCOUNT_ID 普通户 / 信用户
QMT_BRIDGE_DEFAULT_ACCOUNT stock 或 credit

规程:启动

  1. 确认 QMT 已以「独立交易」登录
  2. 前台(调试):
qmt-server --port 8080 --trading --api-key your-secret-key `
  --mini-qmt-path "C:\你的QMT路径\userdata_mini" `
  --stock-account-id 普通账户ID --credit-account-id 信用账户ID

Read the full file on GitHub · 170 lines

Files

What ships with it

1 file 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. 1mo ago Changed · +15 lines 6ff182eeb4d7
  2. 1mo ago First seen · 155 lines · 77 tokens per session scan A 3609a103e46b

Subscribe to this mod's changes

qmt-bridge-setup is a skill published in the GitHub repository atorber/qmt-trading-skill (26 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 2,095 once invoked, about $0.0003 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-09-18.

Related

qmt-bridge-setup compared with skills from other repositories

qmt-bridge-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
qmt-bridge-setupatorber/qmt-trading-skillSkill261mo agoMITA77Claude Code, Codex
aws-cost-operationssickn33/agentic-awesome-skillsSkill49kyesterdayMITA44Claude Code
aws-cost-cleanupsickn33/agentic-awesome-skillsSkill49kyesterdayMITA15Claude Code
azure-computemicrosoft/skillsSkill3.2kyesterdayMITA154Claude Code
azure-costmicrosoft/skillsSkill3.2kyesterdayMITA94Claude Code
cost-estimationmicrosoft/skillsSkill3.2kyesterdayMITA97Claude Code
cost-governancemicrosoft/skillsSkill3.2kyesterdayMITA99Claude Code