tcapi

tcapi is a skill for Claude Code, Codex from TencentCloud/Octop. It costs 68 tokens per session (5,966 once invoked), scanned A, original, MIT.

A helper for managing Tencent Cloud resources through Tencent Cloud's command-line API tool. Tencent Cloud is a cloud-services provider offering products such as virtual servers, storage, networks, and containers.

In plain words
What is it for?
Use it to query, create, modify, delete, or automate Tencent Cloud resources such as servers, storage, networks, and container services.
Why use it?
It guides API discovery, documentation checks, credential setup, and resource operations while accounting for differences between local and current API versions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

About the project

Octop is a self-hosted, multi-user AI assistant that runs multiple specialized agents and connects them to chat interfaces, tools, and external services. It is for individuals, families, and teams who want a locally operated assistant with shared experts and persistent capabilities. Catalogue add-ons extend its agent and assistant workflows.

TencentCloud/Octop · 1,496 stars · on GitHub · octop.cloud

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.

agentmods
npx agentmods add skills/tencentcloud/octop/tcapi
Any agent
npx skills add TencentCloud/Octop --skill tcapi
Clone the repo
git clone --depth 1 https://github.com/TencentCloud/Octop

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 tcapi

README.md
[![agentmods](https://agentmods.dev/badge/skills/tencentcloud/octop/tcapi.svg)](https://agentmods.dev/skills/tencentcloud/octop/tcapi)
Your own site
<a href="https://agentmods.dev/skills/tencentcloud/octop/tcapi"><img src="https://agentmods.dev/badge/skills/tencentcloud/octop/tcapi.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,966 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00068 $0.05966
Opus 5 $0.00034 $0.02983
Sonnet 5 $0.00014 $0.01193
Haiku 4.5 $0.00007 $0.00597

Measured today against content hash 171be35eabb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tcapi 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 today.

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 + grep 检索业务、接口、最佳实践、数据结构。参考 [references/refs.md](references/refs.md) 获取完整检索方式。
src/octop/infra/agents/experts/library/tencentcloud-api/skills/tcapi/SKILL.md · 392 lines

How it starts

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

腾讯云 API 助手

统一使用 tccli 命令行工具调用腾讯云 API,实现云资源的查询、创建、修改、删除等操作。

适用场景

  • 云资源查询与管理(CVM / COS / CBS / VPC / TKE 等 200+ 产品)
  • 自动化运维(批量操作、定时任务、脚本编排)
  • 云 API 接口探索与文档检索

不适用场景

  • 不支持 Terraform / Pulumi 等 IaC 编排工具
  • 不做多云管理(仅限腾讯云)
  • 不做费用充值、账号注册等非 API 操作

前置条件

  • 已安装 tccli,未安装参考 references/install.md
  • 已完成凭证配置(详见下方「Step 2 凭证配置」)

核心原则

  1. 优先检索最佳实践 → 再查接口文档 → 最后调用 API。不要跳过文档检索直接调用,避免用错接口或遗漏参数。
  2. 在线文档是实时态,本地 tccli 是版本快照。以在线文档(cloudcache.tencentcs.com)为准判断接口/参数是否存在;本地 tccli 因版本差异,可能缺少新接口、或残留已下线的旧接口。遇到本地报「无此接口」或服务端报「接口已下线」时,先查在线文档确认真实情况,再决定升级 tccli 或换用替代接口。

执行流程

Step 0:环境自检(首次任务必做,一次探测串起所有分支)

优先使用 Octop 自带的 Python 虚拟环境(venv)中的 tccli:与 Octop 同环境、版本可控、不污染系统 Python。探测顺序:① Octop venv → ② 系统 PATH → ③ 临时安装进 venv。

# ① 定位 Octop venv(通过 octop 主进程的工作目录;找不到进程则退回常见路径)
OCTOP_PID=$(pgrep -f '\.venv/bin/octop run' | head -1)
OCTOP_ROOT=$([ -n "$OCTOP_PID" ] && readlink -f /proc/$OCTOP_PID/cwd || echo /workspace/octop)
TCCLI="$OCTOP_ROOT/.venv/bin/tccli"

# ② 逐级探测:venv 内 → PATH → 均无则装进 venv
if [ -x "$TCCLI" ]; then :
elif command -v tccli >/dev/null 2>&1; then TCCLI=tccli
else uv pip install --python "$OCTOP_ROOT/.venv/bin/python3" tccli; fi

# ③ 验证可运行且凭证有效
"$TCCLI" cvm DescribeRegions >/dev/null 2>&1 && echo "TCCLI_OK" || echo "TCCLI_NEED_CHECK"

若系统无 uv"$OCTOP_ROOT/.venv/bin/python3" -m ensurepip --upgrade 后用同路径的 python3 -m pip install tccli

判定分支:

探测结果 状态 处理
返回 TCCLI_OK 已安装、可运行、凭证有效 直接进入 Step 1
command not found / 安装失败 未安装 references/install.md 装进 Octop venv(推荐)或系统安装
bad interpreter / No module named tccli 装了但 shebang/环境坏 切换 Step 5 兼容模式(改用 venv 的 python3 -c 直接调 tccli.main),本会话后续统一使用
secretId is invalid / AuthFailure.SecretIdNotFound 凭证缺失 进入 Step 2 配置凭证

探测通过(TCCLI_OK)后,本会话无需再重复自检,直接调用即可。后续所有示例中的 tccli 均指探测到的 $TCCLI(venv 优先)。

Step 1:检索 API 文档

调用前先通过 curl + grep 检索业务、接口、最佳实践、数据结构。参考 references/refs.md 获取完整检索方式。

Read the full file on GitHub · 392 lines

Files

What ships with it

3 files 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. today Changed · +9 lines 171be35eabb7
  2. 7d ago First seen · 383 lines · 68 tokens per session scan A 5d20b4c1ed92

Subscribe to this mod's changes

tcapi is a skill published in the GitHub repository TencentCloud/Octop (1,496 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 5,966 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

flow-nexus-swarm

Cloud-based AI swarm deployment and event-driven workflow automation with Flow Nexus platform.

ruvnet/ruflo · 20 tokens

artifact-deploy

One-click deploy a user's pre-built app/artifact into their OWN AWS account and get a global public HTTPS link (Vercel-like), with a default TTL and promote-to-persistent. Use when the user says "deploy this", "ship this demo", "give me a public link", "share this externally", or "deploy to AWS".

kirodotdev/KiroCrew · 74 tokens

lambda-gpu-cloud

Safely inspect and operate Lambda Cloud GPU instances through the documented Cloud API and SSH, with explicit approval before billable or destructive actions.

synthetic-sciences/openscience · 32 tokens

agent-orchestration

渐进登记:每用一个外部 Agent,在 plugin/team.toml 追加一段。只记稳定事实(mode/launch/process/windowhint/dispatchsteps/note),禁止记 PID/窗口句柄/坐标(坐标走 ui-maps;PID/hwnd 每次启动必变,hwnd 编号还会被 OS 复用给无关窗口——任何把易变事实固化进配置或缓存当派发依据的做法都是错的,进程管理职责归 Leader 当次实况)。.

mrpulor-gh/nuphus · 0 tokens

aws-solution-architect

Design AWS architectures for startups using serverless patterns and IaC templates. Use when asked to design serverless architecture, create CloudFormation templates, optimize AWS costs, set up CI/CD pipelines, or migrate to AWS. Covers Lambda, API Gateway, DynamoDB, ECS, Aurora, and cost optimization.

seaworld008/Commonly-used-high-value-skills · 66 tokens

cc-devops-skills

SRE, DevOps, Kubernetes, CI/CD, PromQL, Terraform, Docker, and incident operations playbook for building reliable delivery and operations workflows.

seaworld008/Commonly-used-high-value-skills · 37 tokens