← Back to home
Skill

agent-token-switcher

tencent_skillhub · 1.0.0 · Downloads 10 · Heat 19.3

Introduction

Agent Token Switcher(ats)Skill 概述 一句话:把本机多个 AI agent(Claude Code / Codex / Cursor / OpenClaw)的网关 token 与模型收进一个命名池,一条命令切换、切换前自动备份并联网校验;另附输出风格、本地共享记忆和多 agent 只读工作盘点。 解决的痛点 token 过期 / 401 时,不必再逐个改每个 agent 的配置文件 换模型(旗舰 / 快版 / 代码特化)同样一条命令 Codex 与 Claude Code 可共用一份本地记忆,跨 workspace 不重复喂上下文 多个 agent 的工作分散,能只读汇总进展、产出与证据缺口 核心能力 能力 命令 说明 token 池 init / collect / add / list / rm 命名 token 池,tokens.json 权限 600 切换 / 回滚 switch / restore / backups 切换前自动快照,可回滚到任意备份 有效性检测 check current|all|<名字> GET /v1/models:200 有效、401 过期、000 不可达 模型管理 models / models --probe / mswitch 列模型、并行实测可用性与延迟、一键换模型 输出风格 style(Claude/Codex) 原生 outputStyle / AGENTS.md 可回滚段落 共享记忆 memory(Basic Memory) uv 隔离安装、MCP 接入与验收,不读 token 池 工作盘点 scripts/agent-work-collect.mjs 只读采集本机证据,不联网、不写源库 工作原理 token 池 ~/.agent-token-switcher/tokens.json └─ ats switch <名字> → jq setpath 只改目标字段 → 先备份到 backups/<agent>/ └─ ats check → curl <网关>/v1/models(Bearer) 写入:jq setpath 精准改 token/模型字段,临时文件 + mv 原子替换,不动配置其余内容 openclaw 三层认证(sqlite authProfiles > models.json > openclaw.json)自动同步 网关地址默认占位 https://gw.example.com,用 ATS_GATEWAY 或 config.json 覆盖 管理对象与依赖 内置:claude / codex / cursor / openclaw;可通过 $ATS_HOME/agents.json 扩展 依赖:jq、curl;style/memory 需 Node.js(openclaw 同步需 node≥22.5,盘点 SQLite 需 node:sqlite) 安装:软链到 ~/.agents/skills/agent-token-switcher,或加 alias ats 安全设计 所有输出脱敏(前 10 + 后 4 位),不回显完整 token 切换/恢复前必然备份;检测失败默认中止(需显式 --force) token 池 600 权限;盘点脚本只读、不读认证文件、不联系其他 agent 当前副本状态 目录:skillhub/agent-token-switcher(对外发布版) 已泛化内网网关/provider、清理个人示例;SKILL.md 4471 字符 预检 9 项全通过,测试 22/22 打包:agent-token-switcher.zip(71K) 适用与边界 适合:本机多 agent 共用网关、token 频繁轮换、需要跨 agent 记忆/工作汇总的场景 不做:不自动上传会话数据、不控制其他 agent、不修改系统提示词或权限配置

Resource Information

Author:user_4e17bba6
Category:Automation
Version:1.0.0
Auth: Required
Pricing: Not specifiedAPI key required

License information is collected from official sources and may be outdated or missing. Refer to the LICENSE file in the original repository before commercial use.

Tags
工具调用

Information boundary

Information on this page is collected from official documents for technical presentation only and does not imply our endorsement. Pricing, quotas and availability are subject to the latest official statements. We make no commitment regarding any action you take after leaving this site.

What is a Skill

A Skill is a packaged single capability, such as text recognition, document summarization, or keyword extraction. Developers wrap the calling logic and prompts into a plugin-like unit, so users can load it without understanding the underlying model. StackPilot indexes a large number of skills that can be tried instantly or assembled into a plan.