set-token

set-token is a skill for Claude Code from trongnguyenbinh/zalo-bot-mcp. It costs 39 tokens per session (466 once invoked), scanned A, original, MIT.

A command for installing or replacing a Zalo bot access token from the system clipboard.

In plain words
What is it for?
Setting up a Zalo bot token on macOS or Linux without displaying or storing the token in other files.
Why use it?
It keeps the token out of command arguments and chat output, and checks whether the token works before saving it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the zalo plugin — 9 skills, 8 commands, 1 MCP server shipped together

Good fit Setting up a Zalo bot token on macOS or Linux without displaying or storing the token in other files.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add trongnguyenbinh/zalo-bot-mcp
Claude Code
/plugin install zalo

Made for: Claude Code.

Or install zalo, the plugin that ships this one along with the rest of its 9 skills, 8 commands, 1 MCP server.

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 set-token

README.md
[![agentmods](https://agentmods.dev/badge/skills/trongnguyenbinh/zalo-bot-mcp/set-token/github.svg)](https://agentmods.dev/skills/trongnguyenbinh/zalo-bot-mcp/set-token)
Your own site
<a href="https://agentmods.dev/skills/trongnguyenbinh/zalo-bot-mcp/set-token"><img src="https://agentmods.dev/badge/skills/trongnguyenbinh/zalo-bot-mcp/set-token/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 set-token

Your own site · 80×15
<a href="https://agentmods.dev/skills/trongnguyenbinh/zalo-bot-mcp/set-token"><img src="https://agentmods.dev/badge/skills/trongnguyenbinh/zalo-bot-mcp/set-token.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 466 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.
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.00039 $0.00466
Opus 5 $0.00019 $0.00233
Sonnet 5 $0.00008 $0.00093
Haiku 4.5 $0.00004 $0.00047

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

Security

Grade A, and why

set-token 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 11d 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.

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.

skills/set-token/SKILL.md · 48 lines

What it actually says

/zalo:set-token - Cài bot token từ clipboard

Lệnh này KHÔNG nhận tham số. Token đi từ clipboard thẳng vào stdin của CLI, không qua transcript, không qua argv.

QUY TẮC TUYỆT ĐỐI cho model:

  • KHÔNG in token ra màn hình, không lặp lại token trong câu trả lời, không ghi token vào bất kỳ file nào khác. Kể cả một phần của token.
  • Nếu người dùng lỡ gõ token thẳng vào chat: cảnh báo ngay rằng token đã nằm trong transcript phiên (file ~/.claude/projects/*.jsonl), nên vào trang quản lý bot thu hồi và tạo token mới, rồi mới dùng lệnh này.

Các bước:

  1. Nhắc người dùng: copy token từ trang quản lý bot (bot.zapps.me) vào clipboard TRƯỚC, xong xác nhận thì mới chạy tiếp.

  2. Chạy bằng Bash, chọn theo hệ điều hành:

    macOS:

    pbpaste | uvx --from "${CLAUDE_PLUGIN_ROOT}" zalo-bot-mcp-admin set-token
    

    Linux (xclip, không có thì wl-paste):

    xclip -o -selection clipboard | uvx --from "${CLAUDE_PLUGIN_ROOT}" zalo-bot-mcp-admin set-token
    
    wl-paste | uvx --from "${CLAUDE_PLUGIN_ROOT}" zalo-bot-mcp-admin set-token
    
  3. CLI tự gọi getMe xác minh: token đúng thì ghi vào state dir với quyền 0600 và in tên bot; token sai thì không ghi gì. In nguyên văn kết quả của CLI (kết quả không chứa token).

  4. Nhắc người dùng restart phiên claude để MCP server đọc token mới.

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. 11d ago First seen · 48 lines · 39 tokens per session scan A 28a01a0ff8a3

Subscribe to this mod's changes

set-token is a skill published in the GitHub repository trongnguyenbinh/zalo-bot-mcp (5 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 466 once invoked, about $0.0002 per session on Opus 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-31.