PXFuse Data Ingestion

Updated at:

PXFuse supports multiple data ingestion methods, including Qoder Hook, Claude Code Hook, Langfuse SDK, OpenTelemetry, and HTTP Ingestion API, to meet the integration needs of different scenarios.

Qoder Hook (Recommended, Zero-Code)

Note

The Secret Key is a credential for accessing PXFuse. Keep it secure and never share it in public code repositories or public channels. If the Secret Key is compromised, regenerate it immediately in the PXFuse console.

Obtain the Installation Command

Go to Settings > Integrations > Qoder and follow these steps:

  1. Paste your Secret Key in the input field at Quick Connect.

  2. Select the mode: Qoder CLI (terminal) or Qoder IDE (VS Code / JetBrains). Both can be enabled simultaneously.

  3. Click Copy Command and execute it in your local terminal.

Installation Command Example

Note

Node.js >= 18 is required on the local machine.

curl -fsSL "http://<pxfuse-host>:3000/api/public/qoder-hook/install?publicKey=<your-public-key>&secretKey=<your-secret-key>&host=http://<pxfuse-host>:3000&type=cli" | bash

Installation details: The hook script is placed in ~/.qoder/plugins/pxfuse-hook/, and a Stop event hook is registered in ~/.qoder/settings.json.

Data Mapping

Qoder Side

PXFuse Side

One Q&A interaction

One Trace

Multiple rounds in the same session

Grouped into the same Session

LLM inference (thinking + text)

One Generation

Tool calls (file read, bash, etc.)

Multiple Spans

Source tag

Trace tag qoder-cli / qoder-ide

Uninstall

If you no longer need it, you can obtain a one-click uninstall command at the bottom of the Integrations page.

Claude Code Hook

Obtain the Installation Command

Go to Settings > Integrations > Claude Code, copy the command, and execute it:

curl -fsSL "http://<pxfuse-host>:3000/api/public/claude-hook/install?publicKey=<your-public-key>&secretKey=<your-secret-key>&host=http://<pxfuse-host>:3000" | bash

After installation, PXFuse automatically captures Claude Code prompts, tool calls, and responses.

Data Mapping

Claude Code Side

PXFuse Side

Each session

One Trace

User prompt + assistant response

One Generation

Tool calls

Multiple Spans

Sub-agent calls

Nested Spans

Langfuse SDK (Custom Applications)

PXFuse is fully compatible with the Langfuse SDK. Simply point the host to PXFuse.

Note

To obtain accurate token and cost statistics, proactively populate the usage field through the SDK.

from langfuse import Langfuse
langfuse = Langfuse(
    public_key="<your-public-key>",
    secret_key="<your-secret-key>",
    host="http://<pxfuse-host>:3000",
)
import { Langfuse } from "langfuse";
const langfuse = new Langfuse({
  publicKey: "<your-public-key>",
  secretKey: "<your-secret-key>",
  baseUrl: "http://<pxfuse-host>:3000",
});

OpenTelemetry

Teams with existing OpenTelemetry infrastructure can point OTLP data directly to PXFuse. The platform automatically converts it to the Trace / Observation model.

HTTP Ingestion API (Universal)

Any language can directly call the batch write API:

curl -X POST "http://<pxfuse-host>:3000/api/public/ingestion" \
  -H "Authorization: Basic $(echo -n '<your-public-key>:<your-secret-key>' | base64)" \
  -H "Content-Type: application/json" \
  -d '{"batch": [...]}'
  • Authentication: HTTP Basic Auth. Username = Public Key, Password = Secret Key.

  • Returns 200 / 207 on success.

  • Supports submitting multiple events in a single request.

Example

curl -X POST "http://<pxfuse-host>:3000/api/public/ingestion" \
  -H "Authorization: Basic $(echo -n '<your-public-key>:<your-secret-key>' | base64)" \
  -H "Content-Type: application/json" \
  -d '{
    "batch": [
      {
        "id": "evt-1",
        "type": "trace-create",
        "timestamp": "2026-08-05T10:00:00.000Z",
        "body": {
          "id": "trace-1",
          "name": "my-agent-session",
          "timestamp": "2026-08-05T10:00:00.000Z",
          "userId": "user-1",
          "sessionId": "session-1",
          "input": "{\"prompt\":\"Help me refactor this code\"}",
          "output": "{\"result\":\"Done\"}",
          "tags": ["agent"]
        }
      },
      {
        "id": "evt-2",
        "type": "span-create",
        "timestamp": "2026-08-05T10:00:01.000Z",
        "body": {
          "id": "obs-1",
          "traceId": "trace-1",
          "type": "TOOL",
          "name": "read_file",
          "startTime": "2026-08-05T10:00:01.000Z",
          "endTime": "2026-08-05T10:00:01.200Z",
          "input": "{\"path\":\"/src/index.ts\"}",
          "output": "{\"content\":\"...\"}",
          "level": "DEFAULT"
        }
      }
    ]
  }'