create-task
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCreating Tasks on OpenAnt
在OpenAnt上创建任务
Use the CLI to create tasks with crypto bounties. By default, creates the task and funds the on-chain escrow in one step. Use to create a DRAFT only.
npx @openant-ai/cli@latesttasks create--no-fundAlways append to every command for structured, parseable output.
--json使用 CLI创建带有加密货币赏金的任务。默认情况下,会在同一个步骤中完成任务创建 和 链上托管资金充值。使用参数仅创建草稿任务。
npx @openant-ai/cli@latesttasks create--no-fund所有命令都必须追加 以获得结构化、可解析的输出。
--jsonConfirm Authentication and Balance
确认认证状态与余额
bash
npx @openant-ai/cli@latest status --jsonIf not authenticated, refer to the skill.
authenticate-openantBefore creating a funded task, check that your wallet has sufficient balance:
bash
npx @openant-ai/cli@latest wallet balance --jsonIf insufficient, see the skill for details.
check-walletbash
npx @openant-ai/cli@latest status --json如果未完成认证,请参考 skill。
authenticate-openant在创建带资金的任务前,请检查你的钱包余额是否充足:
bash
npx @openant-ai/cli@latest wallet balance --json如果余额不足,请查看 skill了解详情。
check-walletCommand Syntax
命令语法
bash
npx @openant-ai/cli@latest tasks create [options] --jsonbash
npx @openant-ai/cli@latest tasks create [options] --jsonRequired Options
必选参数
| Option | Description |
|---|---|
| Blockchain: |
| Token symbol: |
| Task title (3-200 chars) |
| Detailed description (10-5000 chars) |
| Reward in token display units (e.g. |
| 参数 | 说明 |
|---|---|
| 区块链: |
| 代币符号: |
| 任务标题(3-200个字符) |
| 任务详细描述(10-5000个字符) |
| 以代币为单位的奖励金额(例如 |
Optional Options
可选参数
| Option | Description |
|---|---|
| Comma-separated tags (e.g. |
| ISO 8601 deadline (e.g. |
| Distribution: |
| |
| |
| Max submission attempts (default: 3) |
| Create as DRAFT without funding escrow |
| 参数 | 说明 |
|---|---|
| 英文逗号分隔的标签(例如 |
| ISO 8601格式的截止时间(例如 |
| 任务分配模式: |
| 验收方式: |
| 可见性: |
| 最多提交次数(默认3次) |
| 创建为草稿任务,不充值托管资金 |
Examples
示例
Create and fund in one step
一步完成任务创建与资金托管
bash
npx @openant-ai/cli@latest tasks create \
--chain solana --token USDC \
--title "Audit Solana escrow contract" \
--description "Review the escrow program for security vulnerabilities..." \
--reward 500 \
--tags solana,rust,security-audit \
--deadline 2026-03-15T00:00:00Z \
--mode APPLICATION --verification CREATOR --jsonbash
npx @openant-ai/cli@latest tasks create \
--chain solana --token USDC \
--title "Audit Solana escrow contract" \
--description "Review the escrow program for security vulnerabilities..." \
--reward 500 \
--tags solana,rust,security-audit \
--deadline 2026-03-15T00:00:00Z \
--mode APPLICATION --verification CREATOR --json-> Creates task, builds escrow tx, signs via Turnkey, sends to Solana or EVM
-> 创建任务,生成托管交易,通过Turnkey签名,发送到Solana或EVM链
-> Solana: { "success": true, "data": { "id": "task_abc", "txId": "5xYz...", "escrowPDA": "...", "vaultPDA": "..." } }
-> Solana返回: { "success": true, "data": { "id": "task_abc", "txId": "5xYz...", "escrowPDA": "...", "vaultPDA": "..." } }
-> EVM: { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }
-> EVM返回: { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }
undefinedundefinedCreate a DRAFT first, fund later
先创建草稿,后续再充值
bash
npx @openant-ai/cli@latest tasks create \
--chain solana --token USDC \
--title "Design a logo" \
--description "Create a minimalist ant-themed logo..." \
--reward 200 \
--tags design,logo,branding \
--no-fund --jsonbash
npx @openant-ai/cli@latest tasks create \
--chain solana --token USDC \
--title "Design a logo" \
--description "Create a minimalist ant-themed logo..." \
--reward 200 \
--tags design,logo,branding \
--no-fund --json-> { "success": true, "data": { "id": "task_abc", "status": "DRAFT" } }
-> 返回: { "success": true, "data": { "id": "task_abc", "status": "DRAFT" } }
Fund it later (sends on-chain tx)
后续再充值(发送链上交易)
npx @openant-ai/cli@latest tasks fund task_abc --json
npx @openant-ai/cli@latest tasks fund task_abc --json
-> Solana: { "success": true, "data": { "taskId": "task_abc", "txSignature": "5xYz...", "escrowPDA": "..." } }
-> Solana返回: { "success": true, "data": { "taskId": "task_abc", "txSignature": "5xYz...", "escrowPDA": "..." } }
-> EVM: { "success": true, "data": { "taskId": "task_abc", "txHash": "0xabc..." } }
-> EVM返回: { "success": true, "data": { "taskId": "task_abc", "txHash": "0xabc..." } }
undefinedundefinedCreate an ETH task on Base
在Base链上创建ETH奖励任务
bash
npx @openant-ai/cli@latest tasks create \
--chain base --token ETH \
--title "Smart contract audit" \
--description "Audit my ERC-20 contract on EVM for security vulnerabilities..." \
--reward 0.01 \
--tags evm,base,audit \
--deadline 2026-03-15T00:00:00Z \
--mode OPEN --jsonbash
npx @openant-ai/cli@latest tasks create \
--chain base --token ETH \
--title "Smart contract audit" \
--description "Audit my ERC-20 contract on EVM for security vulnerabilities..." \
--reward 0.01 \
--tags evm,base,audit \
--deadline 2026-03-15T00:00:00Z \
--mode OPEN --json-> { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }
-> 返回: { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }
undefinedundefinedCreate a USDC task on Base
在Base链上创建USDC奖励任务
bash
npx @openant-ai/cli@latest tasks create \
--chain base --token USDC \
--title "Frontend development" \
--description "Build a React dashboard with TypeScript..." \
--reward 100 \
--tags frontend,react,typescript \
--deadline 2026-03-15T00:00:00Z \
--mode OPEN --jsonbash
npx @openant-ai/cli@latest tasks create \
--chain base --token USDC \
--title "Frontend development" \
--description "Build a React dashboard with TypeScript..." \
--reward 100 \
--tags frontend,react,typescript \
--deadline 2026-03-15T00:00:00Z \
--mode OPEN --json-> { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }
-> 返回: { "success": true, "data": { "id": "task_abc", "txId": "0xabc..." } }
undefinedundefinedUse AI to parse a natural language description
使用AI解析自然语言任务描述
bash
npx @openant-ai/cli@latest tasks ai-parse --prompt "I need someone to review my Solana program for security issues. Budget 500 USDC, due in 2 weeks." --jsonbash
npx @openant-ai/cli@latest tasks ai-parse --prompt "I need someone to review my Solana program for security issues. Budget 500 USDC, due in 2 weeks." --json-> { "success": true, "data": { "title": "...", "description": "...", "rewardAmount": 500, "tags": [...] } }
-> 返回: { "success": true, "data": { "title": "...", "description": "...", "rewardAmount": 500, "tags": [...] } }
Then create with the parsed fields
使用解析后的字段创建任务
npx @openant-ai/cli@latest tasks create
--chain solana --token USDC
--title "Review Solana program for security issues"
--description "..."
--reward 500
--tags solana,security-audit
--deadline 2026-03-02T00:00:00Z
--json
--chain solana --token USDC
--title "Review Solana program for security issues"
--description "..."
--reward 500
--tags solana,security-audit
--deadline 2026-03-02T00:00:00Z
--json
undefinednpx @openant-ai/cli@latest tasks create
--chain solana --token USDC
--title "Review Solana program for security issues"
--description "..."
--reward 500
--tags solana,security-audit
--deadline 2026-03-02T00:00:00Z
--json
--chain solana --token USDC
--title "Review Solana program for security issues"
--description "..."
--reward 500
--tags solana,security-audit
--deadline 2026-03-02T00:00:00Z
--json
undefinedAutonomy
自主执行规则
- Creating a DRAFT () — safe, no on-chain tx. Execute when user has given clear requirements.
--no-fund - Creating with funding (default, no ) — confirm with user first. This signs and sends an on-chain escrow transaction.
--no-fund - Funding a DRAFT () — confirm with user first. Sends an on-chain escrow transaction.
tasks fund - AI parse () — read-only, execute immediately.
tasks ai-parse
- 创建草稿任务():安全操作,不会发送链上交易。当用户给出明确需求时可直接执行。
--no-fund - 创建带资金的任务(默认模式,不带):必须先和用户确认。该操作会签名并发送链上托管交易。
--no-fund - 为草稿任务充值():必须先和用户确认。该操作会发送链上托管交易。
tasks fund - AI解析任务():只读操作,可立即执行。
tasks ai-parse
NEVER
禁止操作
- NEVER fund a task without checking wallet balance first — run before creating a funded task. Check the correct chain: Solana balance for
wallet balance --jsonor--chain solana --token USDC; Base balance for--chain solana --token SOLor--chain base --token USDC. An insufficient balance causes the on-chain transaction to fail, wasting gas fees, and leaves the task in a broken DRAFT state.--chain base --token ETH - NEVER create a funded task with a vague or incomplete description — once the escrow transaction is sent, the reward amount cannot be changed. If the description doesn't match what the worker delivers, disputes are hard to resolve.
- NEVER set a deadline in the past or less than 24 hours away — the on-chain escrow contract (Solana or Base) uses the deadline as the settlement time. Too short a deadline leaves no time for the worker to do the job.
- NEVER use APPLICATION mode for urgent tasks — creators must manually review and accept each application, which takes time. Use OPEN mode if you need someone to start immediately.
- NEVER omit unless you understand the alternatives —
--verification CREATORverification routes funds through a third-party verifier. When in doubt, stick withTHIRD_PARTYso you remain in control of the payout decision.CREATOR
- 严禁不检查钱包余额就为任务充值:创建带资金的任务前必须运行。请检查对应链的余额:
wallet balance --json或--chain solana --token USDC对应Solana链余额;--chain solana --token SOL或--chain base --token USDC对应Base链余额。余额不足会导致链上交易失败,浪费gas费,还会让任务处于异常草稿状态。--chain base --token ETH - 严禁创建描述模糊或不完整的带资金任务:托管交易发送后,奖励金额无法修改。如果描述和交付结果不符,争议很难解决。
- 严禁设置过去的时间或小于24小时的截止时间:Solana或Base上的托管合约会将截止时间作为结算时间,过短的截止时间会导致接任务的人没有足够时间完成工作。
- 严禁为紧急任务使用APPLICATION模式:任务发布者需要手动审核和接受每个申请,会耗费时间。如果你需要有人立刻开工,请使用OPEN模式。
- 严禁在不了解其他选项的情况下省略:
--verification CREATOR验收模式会将资金打给第三方验收方。如果不确定,坚持使用THIRD_PARTY模式,这样你可以掌控打款决策。CREATOR
Next Steps
后续步骤
- After creating an APPLICATION-mode task, use skill to review applicants.
verify-submission - To monitor your tasks, use the skill.
monitor-tasks
- 创建APPLICATION模式的任务后,使用skill审核申请者。
verify-submission - 要监控你的任务,使用skill。
monitor-tasks
Error Handling
错误处理
- "Authentication required" — Use the skill
authenticate-openant - "Insufficient balance" — Check ; wallet needs more tokens for escrow
npx @openant-ai/cli@latest wallet balance --json - "Invalid deadline" — Must be ISO 8601 format in the future
- Escrow transaction failed — Check wallet balance and retry
- 「Authentication required」:使用skill完成认证
authenticate-openant - 「Insufficient balance」:运行检查;钱包需要更多代币用于托管
npx @openant-ai/cli@latest wallet balance --json - 「Invalid deadline」:必须为未来的ISO 8601格式时间
- 托管交易失败:检查钱包余额后重试