Catalog npm
Back to packageRELEASE DETAILS

0.1.1

npm

@0x402/og

0G Compute clients for TEE-attested inference — the Router (verified tier, attestation carried through) and a direct provider client behind one interface.

0gattestationinferencellmtee
Published8 Sept 2026
Direct dependencies5
Transitive dependenciesNot calculated

README

Current package documentation

@0x402/og

0G Compute clients for TEE-attested inference, behind one interface.

npm i @0x402/og
import { createInferenceClient } from "@0x402/og";

const client = createInferenceClient({ kind: "router", apiKey, network: "testnet" });

const result = await client.audit({ token, artifact });

result.output;       // { action, maxLtvBps, findings, reasoning }
result.trustMode;    // "verified" when the provider ran it in a TEE
result.attestation;  // chatId, teeVerified, the signed response hash — or null
result.promptHash;   // what a seal commits to, so the claim is checkable later

Two backends behind one InferenceClient: the Router (kind: "router"), which asks for attested execution and carries the attestation back, and a direct provider client (kind: "direct").

Why the attestation is the point

An inference result nobody can vouch for is a sentence. One that comes back with teeVerified and a signed response hash is something an underwriter can be made to answer for — which is why @0x402/seal refuses a seal that claims an attested tier and carries no attestation, and why promptHash and responseHash are bound into the seal rather than left as prose.

The artifact is untrusted

artifact is attacker-authored material about a token — name, symbol, source, comments. It is never interpolated as instructions; see prompt.ts. Nothing downstream branches on output.reasoning either: it is model-authored text derived from that same untrusted input, and it exists to be read by a human, not acted on.


Repository · Site · MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
zod
Environment
{
  "local_name": "zod",
  "alias": false,
  "peer_metadata": null
}
^3.24.2runtime
viem
Environment
{
  "local_name": "viem",
  "alias": false,
  "peer_metadata": null
}
^2.23.2runtime
@0x402/seal
Environment
{
  "local_name": "@0x402/seal",
  "alias": false,
  "peer_metadata": null
}
0.1.1runtime
tsx
Environment
{
  "local_name": "tsx",
  "alias": false,
  "peer_metadata": null
}
^4.19.2development
dotenv
Environment
{
  "local_name": "dotenv",
  "alias": false,
  "peer_metadata": null
}
^16.4.7development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "1224fbf13e5f4f1b74109d03fbfbebbc20f9d729",
  "tarball": "https://registry.npmjs.org/@0x402/og/-/og-0.1.1.tgz",
  "fileCount": 13,
  "integrity": "sha512-i20tnHuMMtz7X4kgxTyGpWUMriRnMxLNyOmJFhEJBPZcuQhXq9wOyJ695cEfhmSbsYAiX7pGQNY4tMGdA8vqtA==",
  "signatures": [
    {
      "sig": "MEQCIBlKxGW/PGYzKuHiV2azWPva1a3trCENzjYiz+B10uooAiBqriRv+nlYIZKiGm74Phs3P8rFNaTH5p05UvKb8FuNYA==",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 22332
}

Repository

PENDING
wayneal/0g

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:35 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:3e256dbff1751fddda0e9fcb933927a8ea75c996a3c56c17bf7cb48f9fdd409f

Other collected versions

0.1.28 Sept0.1.07 SeptView all collected versions →