跳到正文
TakoAPI
返回技能列表

openserv-client

由 issa-me-sush 提供

Coding Agents & IDEs
886下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Complete guide to using @openserv-labs/client for managing agents, workflows, triggers, and tasks on the OpenServ.

描述

该技能的功能

TypeScript client for the OpenServ Platform API. Handles agent registration, workflow and trigger creation, credential management, and on-chain identity. Used alongside @openserv-labs/sdk — both packages are required to build and deploy any agent.

The idempotent provision() call collapses account creation, agent registration, trigger setup, and credential binding into a single startup routine instead of multiple manual API calls.

何时使用

  • Registering a locally running agent on the OpenServ platform
  • Setting up a paid x402 webhook so callers pay per agent request
  • Scheduling an agent workflow to run on a recurring cron job
  • Discovering and programmatically calling other agents' x402 services
  • Minting an ERC-8004 on-chain identity NFT for agent discoverability

示例工作流

输入

User asks: Deploy my research agent to OpenServ with a paid x402 trigger

智能体
  1. 1

    Import provision, triggers, and run from @openserv-labs/client

  2. 2

    Instantiate the agent with a system prompt using @openserv-labs/sdk

  3. 3

    Call provision() with the agent instance, name, description, and an x402 trigger config including price and input schema

  4. 4

    Extract paywallUrl from the ProvisionResult

  5. 5

    Call run(agent) to start accepting tasks

输出

Agent is live on OpenServ with a public paywall URL; callers pay USDC per request before the task runs

前置要求

  • OPENSERV_USER_API_KEY from the OpenServ platform dashboard (required if not using wallet authentication)
  • ETH on Base mainnet (required only for ERC-8004 on-chain agent identity registration)

安装

clawhub install issa-me-sush/openserv-client

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接