# Send Flux to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "flux",
    "name": "Flux",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/EckmanTechLLC/flux",
    "canonicalUrl": "https://clawhub.ai/EckmanTechLLC/flux",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/flux",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=flux",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "references/api.md",
      "scripts/flux.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "flux",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T13:39:04.305Z",
      "expiresAt": "2026-05-08T13:39:04.305Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=flux",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=flux",
        "contentDisposition": "attachment; filename=\"flux-2.3.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "flux"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/flux"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/flux",
    "downloadUrl": "https://openagent3.xyz/downloads/flux",
    "agentUrl": "https://openagent3.xyz/skills/flux/agent",
    "manifestUrl": "https://openagent3.xyz/skills/flux/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/flux/agent.md"
  }
}
```
## Documentation

### Flux Skill

Flux is a persistent, shared, event-sourced world state engine. Agents publish immutable events, and Flux derives canonical state that all agents can observe.

### Key Concepts

Events: Immutable observations (temperature readings, status changes, etc.)
Entities: State objects derived from events (sensors, devices, agents)
Properties: Key-value attributes of entities (merged on update — only changed properties need to be sent)
Streams: Logical event namespaces (sensors, agents, system)
Namespaces: Multi-tenant isolation with token auth (optional, for public instances)

### Prerequisites

Public instance: https://api.flux-universe.com (namespace purchased at flux-universe.com — name auto-assigned at purchase, e.g. dawn-coral)
Local instance: http://localhost:3000 (default, override with FLUX_URL env var)

Authentication: Set FLUX_TOKEN to your bearer token. Required for the public instance. Optional for local instances with auth disabled.

### Namespace Prefix

All entity IDs must be prefixed with your namespace:
yournamespace/entity-name

Example with namespace dawn-coral:

./scripts/flux.sh publish sensors agent-01 dawn-coral/sensor-01 \\
  '{"temperature":22.5}'
./scripts/flux.sh get dawn-coral/sensor-01

Entity IDs without a namespace prefix will be rejected on auth-enabled instances.

### Getting Started

First, verify your connection:

./scripts/flux.sh health

Then check the directory to see what's available on the Flux Universe:

./scripts/flux.sh get flux-core/directory

The directory lists all active namespaces, entity counts, and total entities — a good way to discover what data is flowing through the system.

### Scripts

Use the provided bash script in the scripts/ directory:

flux.sh - Main CLI tool

### Publish Event

./scripts/flux.sh publish <stream> <source> <entity_id> <properties_json>

# Replace dawn-coral with your namespace
# Example: Publish sensor reading
./scripts/flux.sh publish sensors agent-01 dawn-coral/temp-sensor-01 '{"temperature":22.5,"unit":"celsius"}'

### Query Entity State

./scripts/flux.sh get <entity_id>

# Replace dawn-coral with your namespace
# Example: Get current sensor state
./scripts/flux.sh get dawn-coral/temp-sensor-01

### List All Entities

./scripts/flux.sh list

# Filter by prefix
./scripts/flux.sh list --prefix scada/

### Delete Entity

./scripts/flux.sh delete <entity_id>

# Example: Remove old test entity
./scripts/flux.sh delete test/old-entity

### Batch Publish Events

# Replace dawn-coral with your namespace
./scripts/flux.sh batch '[
  {"stream":"sensors","source":"agent-01","payload":{"entity_id":"dawn-coral/sensor-01","properties":{"temp":22}}},
  {"stream":"sensors","source":"agent-01","payload":{"entity_id":"dawn-coral/sensor-02","properties":{"temp":23}}}
]'

### Check Connector Status

./scripts/flux.sh connectors

### Admin Config

# Read runtime config
./scripts/flux.sh admin-config

# Update (requires FLUX_ADMIN_TOKEN)
./scripts/flux.sh admin-config '{"rate_limit_per_namespace_per_minute": 5000}'

### Multi-Agent Coordination

Agents publish observations to shared entities:

# Replace dawn-coral with your namespace
# Agent A observes temperature
flux.sh publish sensors agent-a dawn-coral/room-101 '{"temperature":22.5}'

# Agent B queries current state
flux.sh get dawn-coral/room-101
# Returns: {"temperature":22.5,...}

### Status Tracking

Track service/system state:

# Replace dawn-coral with your namespace
# Publish status change
flux.sh publish system monitor dawn-coral/api-gateway '{"status":"healthy","uptime":3600}'

# Query current status
flux.sh get dawn-coral/api-gateway

### API Endpoints

Event Ingestion:

POST /api/events — Publish single event (1 MB limit)
POST /api/events/batch — Publish multiple events (10 MB limit)

State Query:

GET /api/state/entities — List all entities (supports ?prefix= and ?namespace= filters)
GET /api/state/entities/:id — Get specific entity

Entity Management:

DELETE /api/state/entities/:id — Delete single entity
POST /api/state/entities/delete — Batch delete (by namespace/prefix/IDs)

Real-time Updates:

GET /api/ws — WebSocket subscription

Connectors:

GET /api/connectors — List connectors and status
POST /api/connectors/:name/token — Store PAT credential
DELETE /api/connectors/:name/token — Remove credential

Admin:

GET /api/admin/config — Read runtime config
PUT /api/admin/config — Update runtime config (requires FLUX_ADMIN_TOKEN)

Namespaces (auth mode only):

POST /api/namespaces — Register namespace (returns auth token)

### Notes

Events auto-generate UUIDs (no need to provide eventId)
Properties merge on updates — only send changed properties, existing ones are preserved
Timestamp field must be epoch milliseconds (i64) — required by the API, auto-generated by flux.sh
State persists in Flux (survives restarts via NATS JetStream + snapshots)
Entity IDs support / for namespacing (e.g., scada/pump-01)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: EckmanTechLLC
- Version: 2.3.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T13:39:04.305Z
- Expires at: 2026-05-08T13:39:04.305Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/flux)
- [Send to Agent page](https://openagent3.xyz/skills/flux/agent)
- [JSON manifest](https://openagent3.xyz/skills/flux/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/flux/agent.md)
- [Download page](https://openagent3.xyz/downloads/flux)