360 Secure SkillHub
360 安全技能中心

Bitagent Skill

该 Skill 以 CLI 方式调用 BitAgent SDK,在 BSC 主网/测试网的 bonding curve 上发行新的 agent 代币,并按指定数量买入或卖出已有代币;需配置 PRIVATE_KEY 并在仓库根目录安装依赖,执行脚本后将 stdout 返回给用户。

parasyte-x
parasyte-x
热度 70.96
最近更新 2026-05-18 11:55:56
分类:自动化依赖:代码执行 / 第三方 API应用场景:财务 / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-bitagent
Metadata
name
bitagent-skill
description
Launch, buy, and sell tokens on BitAgent bonding curves via CLI. Use when the user wants to create a new agent token, or trade existing agent tokens on BitAgent (BSC Testnet/Mainnet).

BitAgent Skill

This skill uses the BitAgent SDK to interact with bonding curves on BSC. It runs as a CLI only: the agent must execute scripts/index.ts and return the command’s stdout to the user.

Config (required)

Set in OpenClaw config under skills.entries.bitagent-skill.env (or similar) if it is not configured.

  • PRIVATE_KEY — Wallet private key (0x...)

Ensure dependencies are installed at repo root (npm install).

How to run (CLI)

Run from the repo root with env set. The CLI prints output to stdout. You must capture that stdout and return it to the user.

Tool Command Result
launch npx tsx scripts/index.ts launch --network <bsc|bscTestnet> --name "<name>" --symbol "<symbol>" --reserve-symbol "<UB|WBNB|USD1>" Deploys a new agent token on a bonding curve. Returns the Contract Address and URL on success.
buy npx tsx scripts/index.ts buy --network <bsc|bscTestnet> --token "<tokenAddress>" --amount "<amount>" Buys a specific amount of tokens. Returns Transaction Hash.
sell npx tsx scripts/index.ts sell --network <bsc|bscTestnet> --token "<tokenAddress>" --amount "<amount>" Sells a specific amount of tokens. Returns Transaction Hash.

Flow

  1. Launch Agent: When a user wants to create a token or agent, run the launch command. Ensure you ask for Name, Symbol, and which Reserve Token to use (UB, WBNB, USD1) if not provided.
  2. Trade (Buy/Sell): When a user wants to trade, use buy or sell. Requires the Token Address and Amount.

File structure

  • Repo root — SKILL.md, package.json.
  • scripts/index.ts — CLI implementation.