openserv-client
Was er macht
Diese Fähigkeit behandelt das OpenServ-Client-Paket, das deinen Code mit der OpenServ-Plattform-API verbindet. Sie ist für Entwickler gedacht, die Agenten registrieren und Arbeitsabläufe und Auslöser verwalten müssen.
Wann du ihn nutzt
- ✓Wenn du deinen Agenten bei der OpenServ-Plattform registrieren musst.
- ✓Wenn du Arbeitsabläufe mit Webhook-, Cron- oder manuellen Auslösern erstellen willst.
- ✓Wenn du Aufgaben ausführen oder Zugangsdaten über die Plattform-API verwalten musst.
Link zum Skill
https://github.com/internet-court/internet-court-skill/blob/main/vendored/openserv/openserv-client/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kannst du meinen OpenServ-Agenten mit einem Arbeitsablauf einrichten, der täglich nach Zeitplan läuft?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent ruft die provision-Funktion einmal auf, um ein Konto zu erstellen oder wiederzuverwenden, den Agenten zu registrieren und seinen Arbeitsablauf und API-Schlüssel einzurichten. Für mehr Kontrolle nutzt er den vollständigen Plattform-Client, um Agenten, Auslöser und Aufgaben zu verwalten.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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_parameterson agent creation/update or viaprovision(). - 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 checkisProvisioned()first.
What provision() Does
- Creates or reuses an Ethereum wallet (and platform account if new)
- Authenticates with the OpenServ platform
- Creates or updates the agent (idempotent)
- Generates API key and auth token
- Binds credentials to agent instance (if
agent.instanceis provided) - Creates or updates the workflow with trigger and task
- Creates workflow graph (edges linking trigger to task)
- Activates trigger and sets workflow to running
- 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
Häufige Fragen
Ist es sicher, provision erneut aufzurufen?
Ja. Laut der Fähigkeit ist der Aufruf idempotent, ein erneuter Aufruf erzeugt also keine Duplikate.
Welche Auslöser werden unterstützt?
Webhook, Cron, manuell und bezahlte x402-Auslöser.
Kann ich das Modell für meinen Agenten wählen?
Ja. Die Fähigkeit behandelt die Wahl des Modells und der Parameter, die die Plattform nutzt.
Details
Originalbeschreibung des Autors
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.
Beliebtheit
- GitHub-Sterne
- 7.0k
- Platz im Ranking
- #13668
- Lizenz
- —
- Aktualisiert
- 26.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
internet-court
7.0kHilft deinem Agenten, sicher mit einem anderen KI-Agenten oder einem kostenpflichtigen Dienst zu zahlen, Aufträge zu vergeben oder abzuwickeln, und verweist auf die passende Anleitung.
genlayer-erc7710-connector
7.0kHilft deinem Agenten, ein KI-Prüfergebnis mit einem Berechtigungssystem zu verbinden, sodass eine schlechte Bewertung Berechtigungen eines Agenten einschränken oder aufheben kann.
genlayer-intelligent-contracts
7.0kHilft deinem Agenten, Regeln, Belege und Ergebnisse eines KI-Richters festzulegen, der prüft, ob ein anderer Agent seinen Auftrag eingehalten hat.
x402-erc7710
7.0kHilft deinem Agenten, für Webdienste Anfrage für Anfrage zu bezahlen und laufende Ausgaben innerhalb eines Berechtigungsbudgets einzurichten.
Ähnliche Skills
add-model-provider
394kLässt deinen Agenten einen neuen KI-Modellanbieter mit sicheren Befehlen an OpenClaw anbinden, API-Schlüssel nicht im Klartext speichern und einen Live-Test starten.
acp-router
394kHilft deinem Agenten, eine Aufgabe über OpenClaw an einen Coding-Assistenten wie Claude Code oder Cursor zu senden, damit die Arbeit in diesem Tool läuft.
browser-automation
394kBringt deinem Agenten bei, Webseiten Schritt für Schritt zu steuern, einschließlich Anmeldungen, Tabs und Wiederherstellung, wenn eine Seite nicht mehr reagiert.