bytedance/agentkit-samples is a collection of examples and tutorials for Volcengine AgentKit, an AI-agent development platform for building, deploying, and operating agent applications. Developers use the samples to learn agent creation, multi-agent collaboration, memory, retrieval, MCP integrations, media generation, customer service, and other workflows. The catalogue skills provide agent workflows based on these examples.
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.
npx skills add bytedance/agentkit-samples --skill byted-viking-cligit clone --depth 1 https://github.com/bytedance/agentkit-samplesWrote 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.
[](https://agentmods.dev/skills/bytedance/agentkit-samples/byted-viking-cli)<a href="https://agentmods.dev/skills/bytedance/agentkit-samples/byted-viking-cli"><img src="https://agentmods.dev/badge/skills/bytedance/agentkit-samples/byted-viking-cli.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00137 | $0.04095 |
| Opus 5 | $0.00068 | $0.02048 |
| Sonnet 5 | $0.00027 | $0.00819 |
| Haiku 4.5 | $0.00014 | $0.00409 |
Grade D, and why
byted-viking-cli scanned grade D with 3 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 3d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
curl -fsSL https://viking-skills.tos-cn-beijing.volces.com/viking-cli/install.sh | sudo bash -s -- --prefix /usr/local Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -fsSL https://viking-skills.tos-cn-beijing.volces.com/viking-cli/install.sh | bash Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -fsSL https://viking-skills.tos-cn-beijing.volces.com/viking-cli/install.sh | bash How it starts
The opening of the file, as written. The whole thing — 363 lines — stays where its author put it; the contents beside it link to each section on GitHub.
目标
把用户的需求转换为可直接执行的viking-cli命令并执行,如果覆盖不了则提示用户。
viking-cli 在用户安装后位于系统 PATH 中,直接执行 viking-cli。
触发与决策
- 按用户目标选择产品:
- 向量库管理、索引管理、向量数据增删改查、id/关键词检索走
vikingdb; - 知识库管理、文档管理、知识库检索、知识服务问答走
knowledge; - 记忆库管理、会话记忆写入、用户记忆检索走
memory。
- 向量库管理、索引管理、向量数据增删改查、id/关键词检索走
- 如果用户没有明确产品 但提到“知识库(Knowledge)/记忆库(Memory)/向量库(VikingDB)”,先根据目标选择最接近的命令分支。
安装 CLI
用户可用一条命令完成安装(免下载脚本):
curl -fsSL https://viking-skills.tos-cn-beijing.volces.com/viking-cli/install.sh | bash
如需安装到系统目录(可能需要权限):
curl -fsSL https://viking-skills.tos-cn-beijing.volces.com/viking-cli/install.sh | sudo bash -s -- --prefix /usr/local
安装完成后验证:
viking-cli version
工作原则
- 涉及复杂 JSON、中文、嵌套数组时,优先推荐文件输入方式;如果当前命令不支持文件输入,再给命令行 JSON 示例。
- 如果用户没有指定collection,则可省略
--collection的参数,默认使用配置文件中的 collection 。 - 如果用户需求超出当前 CLI 能力边界,要明确说“当前 CLI 未实现该子命令”。
命令树
viking-cli versionviking-cli authviking-cli vikingdbsetupcollection {create|get|list|update|delete}index {create|get|list|update|delete|enable|disable}upsertfetchdeletesearch-by-idsearch-by-keywords
viking-cli memorysetupcollection {create|get|list|update|delete}add-sessionsearch
viking-cli knowledgeopensetupcollection {create|get|list|delete}add-docadd-fileadd-dirget-doclist-docsupdate-docdelete-docsearch-collectionsearch-knowledgelist-servicesservice-chat
全局配置
CLI 通过 viking-cli auth 交互式写入 ~/.viking/config,后续命令默认从配置文件读取 AK / SK / Region / Project,
如无特殊情况,命令行无需指定--region和--project参数。
用户执行过对应产品的 setup,创建的collection name会写入配置文件,后续很多数据面命令可以不再显式传 --collection。
交互式配置(推荐)
viking-cli auth
执行后,根据提示依次输入:
- AccessKey (AK)
- SecretKey (SK)
- Cloud (
volcengine、byteplus或bytecloud,默认volcengine;) - Region (如
cn-beijing) - Project (如
default)
全局 Flags(命令行参数)
当前实际支持的全局 flags:
--cloud:云环境,volcengine、byteplus或bytecloud--region:Region(用于推导默认 endpoint)--project:默认 project--format:输出格式,json或text--timeout:请求超时,例如120s
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.
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.
- 3d ago First seen · 363 lines · 137 tokens per session scan D 45867c3d338a
byted-viking-cli is a skill published in the GitHub repository bytedance/agentkit-samples (449 stars, last pushed 3d ago), licensed Apache-2.0. It adds 137 tokens to every session and 4,095 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
memmachine-memory
Use when an agent or model needs durable project, user, or session context from MemMachine, needs to save information to MemMachine memory, has requests involving mem-cli, memmachine, or memmachineclient, has insufficient conversation context, or is tempted to search local files for prior context that should come from…
browserwing-admin
Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.
wegent-knowledge
Knowledge base management and search tools for Wegent. Provides capabilities to list, create, update, and search knowledge bases and documents using RAG retrieval. Use this skill when the user wants to manage knowledge bases, documents, or search for information programmatically.
code-runner
Execute Python code snippets in a sandboxed environment. Supports data analysis, visualization, and quick scripts.
weknora-shared
Use when driving a WeKnora RAG server through the weknora CLI as an agent — authenticating, managing knowledge bases / documents / sessions / agents, running search or chat, or interpreting the CLI's JSON envelopes and exit codes. Read this before any other weknora- skill.
weknora-rag-search
Use when retrieving from or asking questions against a WeKnora knowledge base via the weknora CLI — and especially when unsure whether to use chat, session ask, or search chunks for a given goal.