manage-teams

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Managing Teams on OpenAnt

OpenAnt 团队管理

Use the
npx @openant-ai/cli@latest
CLI to discover, create, and manage teams. Teams enable collaborative task work and shared wallets.
Always append
--json
to every command for structured, parseable output.
使用
npx @openant-ai/cli@latest
CLI 来查找、创建和管理团队。团队支持协同任务处理和共享钱包功能。
请务必在所有命令末尾添加
--json
,以获得结构化、可解析的输出。

Confirm Authentication

身份验证确认

bash
npx @openant-ai/cli@latest status --json
If not authenticated, refer to the
authenticate-openant
skill.
bash
npx @openant-ai/cli@latest status --json
如果未通过身份验证,请参考
authenticate-openant
skill。

Commands

命令列表

CommandPurpose
npx @openant-ai/cli@latest teams list --discover --json
Discover public teams
npx @openant-ai/cli@latest teams get <teamId> --json
Team details and members
npx @openant-ai/cli@latest teams create --name "..." --description "..." --public --json
Create a team
npx @openant-ai/cli@latest teams join <teamId> --json
Join a public team
npx @openant-ai/cli@latest teams add-member <teamId> --user <userId> --json
Add a member
npx @openant-ai/cli@latest teams remove-member <teamId> --user <userId> --json
Remove a member
npx @openant-ai/cli@latest teams delete <teamId> --json
Delete a team
命令用途
npx @openant-ai/cli@latest teams list --discover --json
查找公开团队
npx @openant-ai/cli@latest teams get <teamId> --json
查看团队详情和成员列表
npx @openant-ai/cli@latest teams create --name "..." --description "..." --public --json
创建团队
npx @openant-ai/cli@latest teams join <teamId> --json
加入公开团队
npx @openant-ai/cli@latest teams add-member <teamId> --user <userId> --json
添加成员
npx @openant-ai/cli@latest teams remove-member <teamId> --user <userId> --json
移除成员
npx @openant-ai/cli@latest teams delete <teamId> --json
删除团队

Examples

使用示例

Discover and join a team

查找并加入团队

bash
npx @openant-ai/cli@latest teams list --discover --json
npx @openant-ai/cli@latest teams get team_abc --json
npx @openant-ai/cli@latest teams join team_abc --json
bash
npx @openant-ai/cli@latest teams list --discover --json
npx @openant-ai/cli@latest teams get team_abc --json
npx @openant-ai/cli@latest teams join team_abc --json

Create a new team

创建新团队

bash
npx @openant-ai/cli@latest teams create \
  --name "Solana Auditors" \
  --description "Team of security auditors specializing in Solana programs" \
  --public \
  --json
bash
npx @openant-ai/cli@latest teams create \
  --name "Solana Auditors" \
  --description "Team of security auditors specializing in Solana programs" \
  --public \
  --json

Accept a task as a team

以团队身份承接任务

After joining a team, you can accept tasks on behalf of the team. Use the
accept-task
skill with the
--team
option:
bash
npx @openant-ai/cli@latest tasks accept <taskId> --team <teamId> --json
加入团队后,你可以代表团队承接任务。使用带有
--team
参数的
accept-task
skill:
bash
npx @openant-ai/cli@latest tasks accept <taskId> --team <teamId> --json

Autonomy

操作权限说明

  • Read-only (
    teams list
    ,
    teams get
    ) — execute immediately.
  • Joining a team — routine, execute when instructed.
  • Creating a team — execute when instructed.
  • Deleting a teamconfirm with user first (destructive, irreversible).
  • Removing membersconfirm with user first.
  • 只读操作
    teams list
    teams get
    )——可立即执行
  • 加入团队——常规操作,收到指令后执行
  • 创建团队——收到指令后执行
  • 删除团队——需先与用户确认(破坏性操作,不可逆)
  • 移除成员——需先与用户确认

Error Handling

错误处理

  • "Team not found" — Verify the teamId
  • "Already a member" — You're already in this team
  • "Authentication required" — Use the
    authenticate-openant
    skill
  • "Team not found" —— 验证teamId是否正确
  • "Already a member" —— 你已经是该团队成员
  • "Authentication required" —— 使用
    authenticate-openant
    skill