Managing Teams on 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.
Confirm Authentication
CODEBLOCK0
If not authenticated, refer to the authenticate-openant skill.
Commands
| Command | Purpose |
|---|
| INLINECODE3 | Discover public teams |
| INLINECODE4 |
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 |
Examples
Discover and join a team
CODEBLOCK1
Create a new team
CODEBLOCK2
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:
CODEBLOCK3
Autonomy
- - Read-only (
teams list, teams get) — execute immediately. - Joining a team — routine, execute when instructed.
- Creating a team — execute when instructed.
- Deleting a team — confirm with user first (destructive, irreversible).
- Removing members — confirm with user first.
Error Handling
- - "Team not found" — Verify the teamId
- "Already a member" — You're already in this team
- "Authentication required" — Use the
authenticate-openant skill
在OpenAnt上管理团队
使用 npx @openant-ai/cli@latest CLI 来发现、创建和管理团队。团队支持协作任务工作和共享钱包。
始终在每个命令后添加 --json,以获得结构化、可解析的输出。
确认身份验证
bash
npx @openant-ai/cli@latest status --json
如果未通过身份验证,请参考 authenticate-openant 技能。
命令
| 命令 | 用途 |
|---|
| 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
--json | 加入公开团队 |
| npx @openant-ai/cli@latest teams add-member --user --json | 添加成员 |
| npx @openant-ai/cli@latest teams remove-member --user --json | 移除成员 |
| npx @openant-ai/cli@latest teams delete --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
创建新团队
bash
npx @openant-ai/cli@latest teams create \
--name Solana审计员 \
--description 专注于Solana项目的安全审计团队 \
--public \
--json
以团队身份接受任务
加入团队后,您可以代表团队接受任务。使用带有 --team 选项的 accept-task 技能:
bash
npx @openant-ai/cli@latest tasks accept --team --json
自主操作权限
- - 只读操作(teams list、teams get)— 立即执行。
- 加入团队 — 常规操作,按指示执行。
- 创建团队 — 按指示执行。
- 删除团队 — 先与用户确认(破坏性操作,不可逆)。
- 移除成员 — 先与用户确认。
错误处理
- - 未找到团队 — 请验证 teamId
- 已是成员 — 您已在该团队中
- 需要身份验证 — 请使用 authenticate-openant 技能