Lucid Client Api logo

Lucid Client Api

Organization
daydreamsai
lucid-client-api

Provides Lucid Client API workflows for the multi-agent runtime. Covers endpoints for managing agents, invoking entrypoints, and handling payments in the lucid-client codebase. Use when interacting with Lucid Client API endpoints, managing agents, or working with the multi-agent runtime system.

Overview

Publisherdaydreamsai
Repositoryskills-market
Skill namelucid-client-api
Stars
31
Forks
16
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by daydreamsai on GitHub. Read the source before you install it.

Installation

Install the Lucid Client Api AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/daydreamsai/skills-market/tree/main/plugins/lucid-client-api/skills
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/daydreamsai/skills-market.git /tmp/skills-market
mkdir -p .claude/skills
cp -r /tmp/skills-market/plugins/lucid-client-api/skills .claude/skills/lucid-client-api
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Lucid Client Api in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Lucid Client Api on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Lucid Client Api is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Lucid Client API Skill

This skill provides capabilities to interact with the Lucid Client API, which is a multi-agent runtime system hosted in the lucid-client codebase.

API Base URL

The API base URL is typically:

  • Development: http://localhost:8787
  • Production: Configured via VITE_API_URL environment variable

Authentication

Most endpoints require authentication via Better Auth:

  • Session cookies are automatically sent with requests
  • Protected routes: /api/agents/*, /api/secrets/*
  • Public routes: /agents/{slug}, /agents/{agentId}/.well-known/agent-card.json

Key Endpoints

Agent Management

List Agents
http
GET /api/agents
Query params: ?page=1&limit=10&search=query&enabled=true

Returns paginated list of agents for the authenticated owner.

Create Agent
http
POST /api/agents
Content-Type: application/json

{
  "slug": "my-agent",
  "name": "My Agent",
  "description": "Agent description",
  "version": "1.0.0",
  "entrypoints": [...],
  "paymentsConfig": {...},
  "walletsConfig": {...}
}
Get Agent
http
GET /api/agents/{agentId}
Update Agent
http
PUT /api/agents/{agentId}
Content-Type: application/json

{
  "name": "Updated Name",
  "description": "Updated description",
  ...
}
Delete Agent
http
DELETE /api/agents/{agentId}
Get Public Agent by Slug
http
GET /agent/{slug}

Public endpoint (no auth required). Returns enabled agents only.

Agent Invocation

Get Agent Manifest
http
GET /agents/{agentId}/.well-known/agent-card.json

Returns A2A-compatible agent manifest/card.

List Entrypoints
http
GET /agents/{agentId}/entrypoints

Returns all entrypoints for an agent.

Invoke Entrypoint
http
POST /agents/{agentId}/entrypoints/{key}/invoke
Content-Type: application/json

{
  "input": {
    "field1": "value1",
    "field2": "value2"
  },
  "metadata": {
    "requestId": "optional-request-id"
  }
}

Payment Handling:

  • If entrypoint requires payment, returns 402 Payment Required
  • Response includes x402 payment headers:
    • X-Payment-Required: true
    • X-Payment-Price: "$0.001"
    • X-Payment-Network: "eip155:84532"
    • X-Payment-PayTo: "0x..."
  • Client must complete payment and retry with payment headers:
    • PAYMENT-REQUIRED: Payment amount
    • PAYMENT-SIGNATURE: Payment signature
    • PAYMENT-RESPONSE: Payment response

Secrets Management

List Secrets
http
GET /api/agents/{agentId}/secrets
Create Secret
http
POST /api/agents/{agentId}/secrets
Content-Type: application/json

{
  "key": "API_KEY",
  "value": "secret-value"
}
Get Secret
http
GET /api/agents/{agentId}/secrets/{key}
Update Secret
http
PUT /api/agents/{agentId}/secrets/{key}
Content-Type: application/json

{
  "value": "new-secret-value"
}
Delete Secret
http
DELETE /api/agents/{agentId}/secrets/{key}

Analytics

Get Analytics Summary
http
GET /api/agents/{agentId}/analytics/summary
Query params: ?startDate=2024-01-01&endDate=2024-01-31
Get Analytics Transactions
http
GET /api/agents/{agentId}/analytics/transactions
Query params: ?page=1&limit=10&startDate=...&endDate=...

Invocations

List Invocations
http
GET /api/agents/{agentId}/invocations
Query params: ?page=1&limit=10&status=success&entrypointKey=echo
Get Invocation
http
GET /api/agents/{agentId}/invocations/{invocationId}
Get Invocation Stats
http
GET /api/agents/{agentId}/invocations/stats
Query params: ?startDate=...&endDate=...

Identity

Retry Identity Registration
http
POST /api/agents/{agentId}/identity/retry
Update Identity Metadata
http
PUT /api/agents/{agentId}/identity/metadata
Content-Type: application/json

{
  "metadata": {
    "key": "value"
  }
}

Rankings

Get Rankings
http
GET /api/rankings
Query params: ?window=24h&limit=10
Stream Rankings
http
GET /api/rankings/stream
Query params: ?window=24h

Server-Sent Events stream of live rankings.

Health & Stats

Health Check
http
GET /health
Redis Health
http
GET /health/redis
Network Stats
http
GET /api/stats/network

OpenAPI Documentation

The API provides full OpenAPI documentation:

  • OpenAPI Spec: GET /doc (JSON)
  • Swagger UI: Available when served (typically at /swagger)

Common Patterns

Making Authenticated Requests

When making requests from code, include credentials:

typescript
const response = await fetch(`${API_URL}/api/agents`, {
  method: 'GET',
  credentials: 'include', // Important for cookies
  headers: {
    'Content-Type': 'application/json',
  },
});

Handling Payment-Required Responses

typescript
let response = await fetch(`${API_URL}/agents/${agentId}/entrypoints/${key}/invoke`, {
  method: 'POST',
  credentials: 'include',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ input: {...} }),
});

if (response.status === 402) {
  // Extract payment details from headers
  const price = response.headers.get('X-Payment-Price');
  const network = response.headers.get('X-Payment-Network');
  const payTo = response.headers.get('X-Payment-PayTo');
  
  // Complete payment using x402 client
  const paymentResponse = await completePayment({ price, network, payTo });
  
  // Retry with payment headers
  response = await fetch(`${API_URL}/agents/${agentId}/entrypoints/${key}/invoke`, {
    method: 'POST',
    credentials: 'include',
    headers: {
      'Content-Type': 'application/json',
      'PAYMENT-REQUIRED': price,
      'PAYMENT-SIGNATURE': paymentResponse.signature,
      'PAYMENT-RESPONSE': paymentResponse.response,
    },
    body: JSON.stringify({ input: {...} }),
  });
}

Error Handling

The API returns standard error responses:

typescript
{
  "error": "Error type",
  "message": "Human-readable error message",
  "details": {...} // Optional additional details
}

Common status codes:

  • 400: Validation error
  • 401: Unauthorized (not authenticated)
  • 402: Payment required
  • 404: Resource not found
  • 409: Conflict (e.g., slug already exists)
  • 500: Internal server error

When to Use This Skill

Use this skill when:

  • User wants to interact with the Lucid Client API
  • User needs to manage agents programmatically
  • User wants to invoke agent entrypoints
  • User needs to handle payments for agent invocations
  • User wants to query analytics or rankings
  • User needs to manage agent secrets

Notes

  • The API is in the lucid-client codebase, not lucid-agents
  • The API uses Hono with OpenAPI validation
  • All agent operations are scoped to the authenticated owner
  • Payments use the x402 protocol (HTTP-native payments)
  • The runtime is stateless - agents are built dynamically from stored definitions

Frequently asked questions

What does the Lucid Client Api AI skill do?

Provides Lucid Client API workflows for the multi-agent runtime. Covers endpoints for managing agents, invoking entrypoints, and handling payments in the lucid-client codebase. Use when interacting with Lucid Client API endpoints, managing agents, or working with the multi-agent runtime system.

Why use Lucid Client Api on TypingMind?

Because you install it once and use it with any model. Lucid Client Api is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Lucid Client Api in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/daydreamsai/skills-market/tree/main/plugins/lucid-client-api/skills. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Lucid Client Api?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Lucid Client Api?

As many as you like. As long as a model supports skills, you can use Lucid Client Api with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Lucid Client Api AI skill free?

It is published on GitHub by daydreamsai. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇