openserv-client
O que ela faz
Esta skill trata do pacote cliente da OpenServ, que conecta seu código à API da plataforma OpenServ. É para desenvolvedores que precisam registrar agentes e gerenciar fluxos de trabalho e gatilhos.
Quando usar
- ✓Quando você precisa registrar seu agente na plataforma OpenServ.
- ✓Quando você quer criar fluxos de trabalho com gatilhos de webhook, cron ou manuais.
- ✓Quando você precisa executar tarefas ou gerenciar credenciais pela API da plataforma.
Link da skill
https://github.com/internet-court/internet-court-skill/blob/main/vendored/openserv/openserv-client/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode configurar meu agente da OpenServ com um fluxo de trabalho que rode em uma agenda diária?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente chama a função provision uma vez para criar ou reutilizar uma conta, registrar o agente e configurar seu fluxo de trabalho e sua chave de API. Para mais controle, ele usa o cliente completo da plataforma para gerenciar agentes, gatilhos e tarefas.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
É seguro chamar o provision de novo?
Sim. A skill diz que ele é idempotente, então chamá-lo novamente não cria duplicatas.
Quais gatilhos são suportados?
A skill lista gatilhos de webhook, cron, manual e x402 pagos.
Posso escolher o modelo do meu agente?
Sim. A skill cobre a definição de qual modelo e quais parâmetros a plataforma usa.
Detalhes
Descrição original do autor
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.
Popularidade
- Estrelas no GitHub
- 7,0 mil
- Posição no ranking
- #13668
- Licença
- —
- Atualizada em
- 26/10/2026
Comentários
- …
Mais skills deste repositório
internet-court
7,0 milAjuda seu agente a pagar, contratar ou negociar com segurança outro agente de IA ou um serviço pago, e o direciona para o guia especializado certo.
genlayer-erc7710-connector
7,0 milAjuda seu agente a conectar o resultado de uma revisão de IA a um sistema de permissões, para que uma revisão ruim possa limitar ou cancelar as permissões de um agente.
genlayer-intelligent-contracts
7,0 milAjuda seu agente a definir as regras, as evidências e os resultados de um juiz de IA que verifica se outro agente seguiu o seu mandato.
x402-erc7710
7,0 milAjuda seu agente a pagar por serviços web uma requisição de cada vez, e a configurar gastos contínuos que fiquem dentro de um orçamento de permissão.
Skills parecidas
add-model-provider
394 milPermite que seu agente conecte um novo provedor de modelos de IA ao OpenClaw com comandos seguros, guarde as chaves de API com segurança e faça um teste ao vivo.
acp-router
394 milAjuda seu agente a enviar uma tarefa a um assistente de programação, como Claude Code ou Cursor, pelo OpenClaw, para que o trabalho rode nessa ferramenta.
browser-automation
394 milEnsina seu agente a controlar páginas web passo a passo, incluindo logins, abas e recuperação quando uma página para de responder.