CloudBase AI Toolkit is an integration layer that lets AI coding tools use Tencent CloudBase as an application backend, including databases, authentication, functions, storage, and deployments. Developers use it to have coding agents build and operate CloudBase-backed applications through skills, plugins, commands, and chat-accessible tools. The catalogue entries are the toolkit’s own skills, agents, hooks, plugins, rules, instructions, and MCP tools.
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.
git clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-ToolkitWrote 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/commands/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-env)<a href="https://agentmods.dev/commands/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-env"><img src="https://agentmods.dev/badge/commands/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-env/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.
<a href="https://agentmods.dev/commands/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-env"><img src="https://agentmods.dev/badge/commands/tencentcloudbase/cloudbase-ai-toolkit/cloudbase-env.svg" alt="Reviewed on agentmods" width="80" 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.00031 | $0.01260 |
| Opus 5.5 | $0.00012 | $0.00504 |
| Sonnet 5.5 | $0.00006 | $0.00252 |
| Haiku 4.5 | $0.00003 | $0.00126 |
Grade A, and why
cloudbase-env 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CloudBase 环境管理
管理 CloudBase 环境:列出所有环境、查看当前环境详情、查看安全域名配置。所有操作均为只读,无破坏性。
Preflight
运行以下检查,失败时停止并给出可执行指引。
- MCP 连接检查 — 确认
cloudbase-mcpserver 已连接。- 尝试调用
queryEnv({action:"list"}),若调用失败或返回错误,提示用户:CloudBase MCP 未连接或未鉴权。请确认
cloudbase-mcpserver 已启动并完成授权流程。
- 尝试调用
- 登录状态验证 — 若
queryEnv({action:"list"})返回空列表或鉴权错误,引导用户完成 CloudBase 登录。 - 当前环境检测 — 检查
CLOUDBASE_ENV_ID环境变量或会话上下文中是否已选定 EnvId。- 若未设置,
info和domains子命令需要先让用户从list结果中选择一个环境。
- 若未设置,
Plan
根据 "$ARGUMENTS" 确定操作:
| 参数 | 操作 | 破坏性? |
|---|---|---|
list / ls |
列出所有可访问的 CloudBase 环境 | 否 |
info / (无参数) |
查看当前环境详情(含 RuntimeMode、Backends) | 否 |
domains |
查看当前环境的安全域名配置 | 否 |
所有操作均为只读查询,无破坏性风险。
Commands
"list" 或 "ls"
调用 MCP 工具列出所有可访问的环境:
queryEnv({ action: "list" })
解析返回结果,提取每个环境的关键信息:
| EnvId | Alias | Source | PackageType | RuntimeMode |
|---|---|---|---|---|
| ... | ... | ... | ... | ... |
- EnvId — 环境唯一标识
- Alias — 环境别名
- Source — 环境来源(miniapp / cloudrun / 等)
- RuntimeMode — 运行模式(FcRad / Cbr / 等)
"info" 或无参数
查看当前环境的详细信息:
queryEnv({ action: "info", envId: "<current-env-id>" })
若当前未选定环境,先执行 list 让用户选择,再调用 info。
呈现完整环境详情,包含但不限于:
- EnvId / Alias — 环境标识
- RuntimeMode — 运行模式(决定后端形态:函数计算 / 云托管 / 混合)
- Backends — 已开通的后端服务列表(NoSQL / MySQL / PostgreSQL / CloudRun / Functions / Storage / Hosting)
- PackageType / Source — 套餐类型与来源
- Region — 所在地域
- CreatedAt — 创建时间
同时基于 RuntimeMode 和 Backends 推荐相关 skills(RecommendedSkills):
- 若 Backends 包含
Functions→ 推荐cloud-functionsskill - 若 Backends 包含
Hosting→ 推荐web-developmentskill - 若 Backends 包含
NoSQL→ 推荐cloudbase-document-database-*skill - 若 RuntimeMode 为
Cbr→ 推荐cloudrun-developmentskill
"domains"
查看当前环境的安全域名配置:
queryEnv({ action: "domains", envId: "<current-env-id>" })
呈现安全域名列表:
| Domain | Type | Status |
|---|---|---|
| ... | ... | ... |
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.
- 1mo ago Changed 38b562a9d51d
- 1mo ago First seen · 129 lines · 31 tokens per session scan A 61ab60f893a5
cloudbase-env is a command published in the GitHub repository TencentCloudBase/CloudBase-AI-Toolkit (1,138 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 1,260 once invoked, about $0.0001 per session on Opus 5.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-30.
Other commands, from other repositories
cost-optimize
Reduce cloud costs across AWS, Azure, and GCP through rightsizing, reserved and spot capacity, storage tuning, and cost monitoring.
deploy
Deploy a frontend (React, Next.js, or static HTML) to a live URL on Butterbase.
env
Manage Vercel environment variables. Commands include list, pull, add, remove, and diff. Use to sync environment variables between Vercel and your local development environment.
migration
Generate Prisma database migration.
lb-create
Create a Load Balancer (public or internal) with backend pool and health probes.
deploy-to-render
Deploy the current project to Render.