본문으로 건너뛰기
Skillpedia
에이전트7.0k · #13668

openserv-client

하는 일

이 스킬은 코드를 OpenServ 플랫폼 API에 연결하는 OpenServ 클라이언트 패키지를 다룹니다. 에이전트를 등록하고 워크플로와 트리거를 관리해야 하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓OpenServ 플랫폼에 에이전트를 등록해야 할 때.
  • ✓웹훅, 크론, 수동 트리거로 워크플로를 만들고 싶을 때.
  • ✓플랫폼 API로 작업을 실행하거나 자격 증명을 관리해야 할 때.

스킬 링크

https://github.com/internet-court/internet-court-skill/blob/main/vendored/openserv/openserv-client/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/openserv/openserv-client/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“매일 예약된 시간에 실행되는 워크플로로 제 OpenServ 에이전트를 설정해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 provision 함수를 한 번 호출해 계정을 만들거나 재사용하고, 에이전트를 등록하고, 워크플로와 API 키를 설정합니다. 더 세밀한 제어가 필요하면 전체 플랫폼 클라이언트로 에이전트, 트리거, 작업을 관리합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

OpenServ Client

The @openserv-labs/client package is the TypeScript client for the OpenServ Platform API. You use it whenever your code needs to talk to the platform—to register an agent, create workflows, set up triggers, or run tasks.

Why you need this package

Your agent (built with @openserv-labs/sdk) runs on your machine or server. The platform doesn’t know about it until you tell it: what the agent is, where it’s reachable, and how it can be triggered. The client is how you do that. It lets you create a platform account (or reuse one), register your agent, define workflows and triggers (webhook, cron, manual, or x402 paid), and bind credentials so your agent can accept tasks. Without it, your agent would have no way to get onto the platform or receive work.

What you can do with it

  • Provision — One-shot setup: create or reuse an account (via wallet), register the agent, create a workflow with trigger and task, and get API key and auth token. Typically you call provision() once per app startup; it’s idempotent.
  • Platform API — Full control via PlatformClient: create and list agents, workflows, triggers, and tasks; fire triggers; run workflows; manage credentials. Use this when you need more than the default provision flow.
  • Model Parameters — Configure which LLM model and parameters the platform uses for your agent's tasks. Set model_parameters on agent creation/update or via provision().
  • Models API — Discover available LLM models and their parameter schemas via client.models.list().
  • x402 payments — Expose your agent behind a paywall; callers pay per request (e.g. USDC) before the task runs. Provision can set up an x402 trigger and return a paywall URL.
  • ERC-8004 on-chain identity — Register your agent on-chain (Base), mint an identity NFT, and publish service metadata to IPFS so others can discover and pay your agent in a standard way.

Reference: reference.md (full API) · troubleshooting.md (common issues) · examples/ (runnable code)

Installation

npm install @openserv-labs/client

Quick Start: Just provision() + run()

The simplest deployment is just two calls: provision() and run(). That's it.

You need an account on the platform to register agents and workflows. The easiest way is to let provision() create one for you: it creates a wallet and signs you up with it (no email required). That account is reused on every run.

See examples/agent.ts for a complete runnable example.

Key Point: provision() is idempotent. Call it every time your app starts - no need to check isProvisioned() first.

What provision() Does

  1. Creates or reuses an Ethereum wallet (and platform account if new)
  2. Authenticates with the OpenServ platform
  3. Creates or updates the agent (idempotent)
  4. Generates API key and auth token
  5. Binds credentials to agent instance (if agent.instance is provided)
  6. Creates or updates the workflow with trigger and task
  7. Creates workflow graph (edges linking trigger to task)
  8. Activates trigger and sets workflow to running
  9. Persists state to .openserv.json

Workflow Name & Goal

The workflow config requires two important properties:

  • name (string) - This becomes the agent name in ERC-8004. Make it polished, punchy, and memorable — this is the public-facing brand name users see. Think product launch, not variable name. Examples: 'Viral Content Engine', 'Crypto Alpha Scanner', 'Life Catalyst Pro'.
  • goal (string, required) - A detailed description of what the workflow accomplishes. Must be descriptive and thorough — short or vague goals will cause API calls to fail. Write at least a full sentence explaining the workflow's purpose.
workflow: {
  name: 'Deep Research Pro',
  goal: 'Research any topic in depth, synthesize findings from multiple sources, and produce a comprehensive report with citations',
  trigger: triggers.webhook({ waitForCompletion: true, timeout: 600 }),
  task: { description: 'Research the given topic' }
}

Agent Instance Binding (v1.1+)

Pass your agent instance to provision() for automatic credential binding:

const agent = new Agent({ systemPrompt: '...' })

await provision({
  agent: {
    instance: agent, // Calls agent.setCredentials() automatically
    name: 'my-agent',
    description: '...',
    model_parameters: { model: 'gpt-5', verbosity: 'medium', reasoning_effort
자주 묻는 질문

provision을 다시 호출해도 안전한가요?

네. 스킬은 이 함수가 멱등성이 있어서 다시 호출해도 중복이 생기지 않는다고 말합니다.

어떤 트리거를 지원하나요?

웹훅, 크론, 수동, x402 유료 트리거를 나열합니다.

에이전트가 쓸 모델을 고를 수 있나요?

네. 스킬은 플랫폼이 사용할 모델과 매개변수를 설정하는 방법을 다룹니다.

상세 정보

작성자의 원본 설명

Complete guide to using @openserv-labs/client for managing agents, workflows, triggers, and tasks on the OpenServ Platform. Covers provisioning, authentication, x402 payments, ERC-8004 on-chain identity, and the full Platform API. IMPORTANT - Always read the companion skill openserv-agent-sdk alongside this skill, as both packages are required to build any agent. Read reference.md for the full API reference.

repo: internet-court/internet-court-skill

인기도

GitHub 스타
7.0k
순위
#13668
라이선스
—
업데이트
2026. 10. 26.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬