@valiron/sdk 1.4.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -148
- package/bin/valiron-card.mjs +211 -0
- package/dist/card.d.ts +565 -0
- package/dist/card.js +722 -0
- package/dist/clients.d.ts +6 -6
- package/dist/clients.js +33 -26
- package/dist/edge.d.ts +87 -0
- package/dist/edge.js +164 -0
- package/dist/edgeGate.d.ts +146 -0
- package/dist/edgeGate.js +230 -0
- package/dist/edgeGateVerify.d.ts +146 -0
- package/dist/edgeGateVerify.js +243 -0
- package/dist/identity.d.ts +6 -0
- package/dist/identity.js +6 -1
- package/dist/identityMiddleware.d.ts +8 -0
- package/dist/identityMiddleware.js +12 -4
- package/dist/index.d.ts +5 -10
- package/dist/index.js +4 -10
- package/dist/middleware.d.ts +20 -9
- package/dist/middleware.js +47 -19
- package/dist/operatorSdk.d.ts +11 -2
- package/dist/operatorSdk.js +13 -7
- package/dist/types.d.ts +14 -4
- package/docs/AGENT-READY-APIS.md +3 -181
- package/docs/API-REFERENCE.md +94 -546
- package/docs/CHAINS.md +3 -3
- package/docs/CLOUDFLARE-GATE-MIDDLEWARE.md +196 -0
- package/docs/CRAWLER-PROTECTION.md +545 -0
- package/docs/DASHBOARD.md +55 -23
- package/docs/E2E-MIDDLEWARE-INTEGRATION.md +19 -13
- package/docs/ERRORS.md +29 -19
- package/docs/IDENTITY.md +16 -14
- package/docs/PROVIDER-IDENTITY.md +15 -5
- package/docs/QUICKSTART.md +40 -24
- package/docs/README.md +21 -4
- package/docs/SANDBOX.md +7 -1
- package/docs/SDK-REFERENCE.md +115 -52
- package/docs/SECURITY-UPGRADE-2026-10-31.md +98 -0
- package/docs/TRUST-MODEL.md +14 -11
- package/docs/llms.txt +70 -302
- package/examples/cloudflare-gate-worker/README.md +198 -0
- package/examples/cloudflare-gate-worker/package.json +20 -0
- package/examples/cloudflare-gate-worker/worker.ts +309 -0
- package/examples/cloudflare-gate-worker/wrangler.toml +46 -0
- package/examples/cloudflare-worker/package.json +8 -0
- package/examples/cloudflare-worker/worker.ts +495 -0
- package/examples/cloudflare-worker/wrangler.toml +57 -0
- package/package.json +35 -5
- package/docs/MCP.md +0 -50
package/docs/llms.txt
CHANGED
|
@@ -1,347 +1,115 @@
|
|
|
1
1
|
# Valiron
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Valiron provides decision-time agent access control, crawler protection and a separate hosted API Scaffolding product. These documents describe the hardened source contract. Merging source, publishing npm packages and deploying production services are separate steps; confirm the installed version supports the verifier/signer and provider proof v2 contract before upgrading.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Sandbox runs require an operator API key. Enriched profiles, the trust-gated proxy, and webhook registration require a Pro operator API key. Webhook deliveries are scoped to the operator that initiated the evaluation and the selected chain. Legacy global evaluation history and platform statistics are restricted to Valiron administrators; use authenticated operator analytics for your own account.
|
|
8
|
-
|
|
9
|
-
The gate also requires agent challenge-response headers (`x-agent-address` plus a valid `x-agent-session`, or a signed fresh challenge). Operator credentials do not replace agent identity. See [authentication](https://www.valiron.co/auth.md).
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
## Valiron Developer Resources
|
|
13
|
-
|
|
14
|
-
- [Valiron developer portal](https://www.valiron.co/developers): REST API, SDK, authentication, webhooks, and MCP setup.
|
|
15
|
-
- [Valiron OpenAPI specification](https://www.valiron.co/openapi.json): Machine-readable public API contract.
|
|
16
|
-
- [Valiron public API discovery](https://www.valiron.co/api): API URLs and integration resources, no authentication required.
|
|
17
|
-
- [Valiron API health](https://www.valiron.co/api/health): Live availability and supported chains, no authentication required.
|
|
18
|
-
- [Valiron authentication](https://www.valiron.co/auth.md): Operator keys and agent identity proofs.
|
|
19
|
-
- [Valiron API and webhook reference](https://www.valiron.co/docs/agents/API-REFERENCE.md): REST endpoints and evaluation-complete webhooks.
|
|
20
|
-
- [Valiron MCP server](https://www.valiron.co/mcp): Streamable HTTP (POST), no API key; public health, agent profiles, and integration docs.
|
|
21
|
-
- [Valiron MCP setup](https://www.valiron.co/docs/agents/MCP.md): Client configuration, tool scope, and transport details.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
> Protect your API endpoints from bad or malicious AI agents.
|
|
25
|
-
|
|
26
|
-
Valiron is trust and reputation middleware for API sellers. It evaluates incoming AI agents using on-chain identity (ERC-8004/Solana), key-based identity for local/Web2/non-ERC-8004 agents, behavioral sandbox testing, optional wallet-history intelligence, predictive risk forecasts, and Moody's-style credit ratings (AAA to C). Trustworthy agents get production access. Risky agents are throttled, sandboxed, or blocked — automatically.
|
|
27
|
-
|
|
28
|
-
## Identity Paths
|
|
29
|
-
|
|
30
|
-
On-chain agents use x-agent-id and GET /operator/agent/{agentId}. The agentId is an ERC-8004 token ID, Solana Metaplex Core asset pubkey, or supported indexed Solana ID.
|
|
31
|
-
|
|
32
|
-
Local, Web2, and non-ERC-8004 agents use x-agent-address plus challenge-response auth. Do not send a local agent name to /operator/agent/{agentId}. Generate or reuse a persistent Ethereum-style keypair, request POST /operator/key/{agentAddress}/challenge, sign the challenge, verify with POST /operator/key/verify, then use x-agent-address and x-agent-session on gated requests. Agents can follow https://www.valiron.co/auth.md.
|
|
33
|
-
|
|
34
|
-
Provider-backed identity uses SDK 1.3 signing helpers and x-valiron-identity-* proof headers. Agents call createAgentIdentityProof() and agentIdentityProofHeaders(); API owners use createValironIdentityGate(), valironIdentityFastifyPlugin, createValironIdentityNextMiddleware, or valironIdentityGateCheck. The headers are untrusted proof inputs until the gate hashes exact request bytes, calls verifyAgentIdentity(), prevents replay, and enforces allow|limit|challenge|block. Valiron hosts ANS credentials and CA trust; customers do not configure them. See https://www.valiron.co/docs/agents/PROVIDER-IDENTITY.md.
|
|
35
|
-
|
|
36
|
-
## API
|
|
37
|
-
|
|
38
|
-
Base URL: https://valiron-edge-proxy.onrender.com
|
|
39
|
-
|
|
40
|
-
### Check agent trust profile
|
|
41
|
-
GET /operator/agent/{agentId}?chain={chain}
|
|
42
|
-
|
|
43
|
-
### Lookup by wallet
|
|
44
|
-
GET /operator/wallet/{wallet}?chain={chain}
|
|
45
|
-
|
|
46
|
-
### Wallet-history risk (Pro)
|
|
47
|
-
GET /operator/wallet-risk/{wallet}?chain={chain}
|
|
48
|
-
Requires: Authorization: Bearer val_op_...
|
|
49
|
-
Returns: { available, wallet, network, provider, score, rawScore, risk, confidence, riskLevel, reasons, hardFlags, features, observedAt, expiresAt, error? }
|
|
50
|
-
|
|
51
|
-
### Resolve wallet to agent ID
|
|
52
|
-
GET /operator/resolve-wallet/{wallet}?chain={chain}
|
|
53
|
-
Returns: { wallet, agentId, source, chainId?, agentName?, timestamp }
|
|
54
|
-
Resolution returns a registered agent ID when available, or null.
|
|
55
|
-
|
|
56
|
-
### Run sandbox test (on-chain agent)
|
|
57
|
-
POST /operator/trigger-sandbox/{agentId}
|
|
58
|
-
|
|
59
|
-
### Run sandbox test (key-based agent)
|
|
60
|
-
POST /operator/trigger-sandbox-key/{agentAddress}
|
|
61
|
-
|
|
62
|
-
### Key-based agent challenge
|
|
63
|
-
POST /operator/key/{agentAddress}/challenge
|
|
64
|
-
|
|
65
|
-
### Verify key-based agent
|
|
66
|
-
POST /operator/key/verify
|
|
67
|
-
|
|
68
|
-
### Key-based agent profile
|
|
69
|
-
GET /operator/key/{agentAddress}
|
|
70
|
-
|
|
71
|
-
### Provider-backed identity proof
|
|
72
|
-
POST /operator/identity/verify
|
|
73
|
-
Body: { provider, agentId, signature, timestamp, nonce, requestDigest, keyId?, policy? }
|
|
74
|
-
Returns: { agentId, provider, organization, identityStatus, humanIdentified, stableIdentityId, credentialId?, credentialVersion?, externalTrust?, verifiedAt, failureReason?, reputationScore, riskLevel, policyDecision }
|
|
75
|
-
|
|
76
|
-
### Trust gate (allow/deny)
|
|
77
|
-
POST /operator/gate/{agentId}
|
|
78
|
-
Body: { "ttlMs": 86400000 }
|
|
79
|
-
|
|
80
|
-
### Behavioral snapshot hash
|
|
81
|
-
GET /operator/agent/{agentId}/snapshot
|
|
82
|
-
|
|
83
|
-
### Liveness check (Solana only)
|
|
84
|
-
GET /operator/agent/{agentId}/liveness?chain=solana
|
|
85
|
-
|
|
86
|
-
### Register webhook
|
|
87
|
-
POST /operator/webhooks/register
|
|
88
|
-
Body: { "event": "evaluation_complete", "url": "https://your-endpoint.com/hooks", "agentIds": [42] }
|
|
89
|
-
|
|
90
|
-
### Health check
|
|
91
|
-
GET /operator/health
|
|
92
|
-
|
|
93
|
-
## SDK
|
|
94
|
-
|
|
95
|
-
Install: npm install @valiron/sdk
|
|
96
|
-
|
|
97
|
-
```typescript
|
|
98
|
-
import { ValironSDK, createValironIdentityGate } from "@valiron/sdk";
|
|
99
|
-
const valiron = new ValironSDK({ chain: "ethereum" });
|
|
100
|
-
|
|
101
|
-
// Quick routing check
|
|
102
|
-
const route = await valiron.checkAgent("AGENT_ID");
|
|
103
|
-
// Returns: "prod" | "prod_throttled" | "sandbox" | "sandbox_only"
|
|
104
|
-
|
|
105
|
-
// Full profile
|
|
106
|
-
const profile = await valiron.getAgentProfile("AGENT_ID");
|
|
107
|
-
|
|
108
|
-
// Pro wallet-history assessment
|
|
109
|
-
const walletRisk = await valiron.getWalletRisk("0x...", { chain: "base" });
|
|
110
|
-
|
|
111
|
-
// Resolve wallet → agentId (lightweight)
|
|
112
|
-
const res = await valiron.resolveWallet("0x...");
|
|
113
|
-
// Returns: { agentId, source: "redis"|"subgraph"|"cache"|"none" }
|
|
114
|
-
|
|
115
|
-
// Trust gate (allow/deny for payments)
|
|
116
|
-
const gate = await valiron.gate("AGENT_ID");
|
|
117
|
-
if (gate.allow) { /* proceed */ }
|
|
118
|
-
|
|
119
|
-
// Behavioral snapshot (for hash-chain commitments)
|
|
120
|
-
const snapshot = await valiron.getAgentSnapshot("AGENT_ID");
|
|
121
|
-
console.log(snapshot.snapshotHash); // "0xabc..."
|
|
122
|
-
console.log(snapshot.previousHash); // "0x0" (genesis)
|
|
123
|
-
|
|
124
|
-
// Sandbox evaluation for key-based agent
|
|
125
|
-
const keyResult = await valiron.triggerKeyAgentSandbox("0x1234...abcd");
|
|
126
|
-
console.log(keyResult.tier); // "A"
|
|
5
|
+
## Documentation
|
|
127
6
|
|
|
128
|
-
|
|
129
|
-
|
|
7
|
+
- Product guides: https://www.valiron.co/docs
|
|
8
|
+
- Complete guides: https://www.valiron.co/llms-full.txt
|
|
9
|
+
- Quickstart: https://www.valiron.co/docs/agents/QUICKSTART.md
|
|
10
|
+
- Security upgrade: https://www.valiron.co/docs/agents/SECURITY-UPGRADE-2026-10-31.md
|
|
11
|
+
- SDK: https://www.valiron.co/docs/agents/SDK-REFERENCE.md
|
|
12
|
+
- REST API: https://www.valiron.co/docs/agents/API-REFERENCE.md
|
|
13
|
+
- Provider identity: https://www.valiron.co/docs/agents/PROVIDER-IDENTITY.md
|
|
14
|
+
- Identity and enrollment: https://www.valiron.co/docs/agents/IDENTITY.md
|
|
15
|
+
- Key enrollment: https://www.valiron.co/auth.md
|
|
16
|
+
- Crawler protection: https://www.valiron.co/docs/agents/CRAWLER-PROTECTION.md
|
|
17
|
+
- Hosted wrappers: https://www.valiron.co/docs/agents/AGENT-READY-APIS.md
|
|
18
|
+
- Dashboard: https://www.valiron.co/docs/agents/DASHBOARD.md
|
|
19
|
+
- Trust model: https://www.valiron.co/docs/agents/TRUST-MODEL.md
|
|
20
|
+
- Errors: https://www.valiron.co/docs/agents/ERRORS.md
|
|
21
|
+
- OpenAPI: https://www.valiron.co/openapi.json
|
|
130
22
|
|
|
131
|
-
|
|
132
|
-
app.post("/api/quote", createValironIdentityGate({ sdk: valiron }), handler);
|
|
133
|
-
```
|
|
23
|
+
## Account and API access
|
|
134
24
|
|
|
135
|
-
|
|
25
|
+
Create an operator account at https://www.valiron.co/dashboard. Password signup requires email verification; Google/GitHub signup enters the same resumable setup. Keep operator API keys server-side. Base API URL: https://valiron-edge-proxy.onrender.com.
|
|
136
26
|
|
|
137
|
-
|
|
27
|
+
Profile/status reads and trust operations require Authorization: Bearer val_op_.... Missing, invalid or revoked credentials return 401. Health and key-registration challenge/verify are intentionally accessible without an operator key. Key enrollment establishes possession of that key, not authority for later requests. The private Icebreaker view accepts a Pro operator key or a verified agent session scoped to its own address. Legacy global evaluation histories and platform statistics are administrator-only; use account-scoped dashboard analytics.
|
|
138
28
|
|
|
139
|
-
|
|
29
|
+
Profiles return allowlisted identity/trust summaries, not raw behavioral metrics, evidence-storage URLs, credential subjects or nullifiers. Social Graph (Icebreaker) is Pro; standard identity, World ID, Self, wallet signals and crawler protection are included with Free within limits.
|
|
140
30
|
|
|
141
|
-
|
|
31
|
+
## Fresh request verification
|
|
142
32
|
|
|
143
|
-
|
|
33
|
+
x-agent-id identifies an ERC-8004 token ID or Solana asset/indexed ID. x-agent-address identifies a persistent Ethereum-style key-based agent. Neither header proves the current caller controls that identity.
|
|
144
34
|
|
|
145
|
-
|
|
35
|
+
createValironGate, valironFastifyPlugin, createValironNextMiddleware and operator paywalls require verifyRequest(request, identifier). valironGateCheck requires verifyRequest(identifier); capture the current request in that callback. The verifier is application-owned, not a header-presence test or an SDK stub. Verify cryptographic control, identity, method, full URL, body, freshness and atomic nonce replay protection. It runs before cached reputation. Missing/invalid proof returns AGENT_OWNERSHIP_REQUIRED (401). Profile lookup, prior key enrollment, human linkage and payment do not replace action authorization.
|
|
146
36
|
|
|
147
|
-
|
|
37
|
+
Cached decisions include signal selection and score threshold. Pending or provisional sandbox results deny production access. A real completed evaluation is required. Preserve the same identity and retry with a new proof after retryAfterMs.
|
|
148
38
|
|
|
149
|
-
|
|
39
|
+
Hosted gate, proxy, World ID enrollment and Self session POSTs require operator credentials plus a fresh registry-owner request proof. Configure ValironSDK signRequest({method,url,body,chain}) to return x-agent-timestamp (13-digit milliseconds), x-agent-nonce (24–128 URL-safe characters) and x-agent-request-signature. The owner signs valiron-wallet-request-v2 with agent, chain, method, full public URL, SHA-256 of the serialized parsed JSON body, timestamp and nonce. EVM uses EIP-191; Solana uses Ed25519/base64url. The timestamp window is 60 seconds. The nonce is consumed atomically. A previous x-agent-session is not accepted instead.
|
|
150
40
|
|
|
151
41
|
```typescript
|
|
152
|
-
import {
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}));
|
|
161
|
-
|
|
162
|
-
// Fastify: register as plugin
|
|
163
|
-
app.register(operator.fastifyPaywall({
|
|
164
|
-
pricePerCall: 0.10,
|
|
165
|
-
prefix: '/api',
|
|
42
|
+
import { ValironSDK, createValironGate } from '@valiron/sdk';
|
|
43
|
+
import { verifyAgentRequest } from './request-proof-verifier'; // application code
|
|
44
|
+
const valiron = new ValironSDK({ apiKey: process.env.VALIRON_API_KEY, chain: 'ethereum' });
|
|
45
|
+
app.use('/api/paid', createValironGate({
|
|
46
|
+
sdk: valiron,
|
|
47
|
+
verifyRequest: verifyAgentRequest,
|
|
48
|
+
trustSignals: ['8004', 'sandbox', 'wallet'],
|
|
49
|
+
minScore: 65,
|
|
166
50
|
}));
|
|
167
|
-
|
|
168
|
-
// req.valiron is populated with gate result + pricing
|
|
169
|
-
app.post('/api/inference', (req, res) => {
|
|
170
|
-
console.log(req.valiron.tier); // 'AAA'
|
|
171
|
-
console.log(req.valiron.pricePerCall); // 0.05
|
|
172
|
-
res.json({ result: 'output' });
|
|
173
|
-
});
|
|
174
51
|
```
|
|
175
52
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
## Trust Model
|
|
179
|
-
|
|
180
|
-
Valiron evaluates agents using six independent trust signals:
|
|
181
|
-
|
|
182
|
-
1. **On-Chain Reputation (ERC-8004)** — Feedback from other agents/operators (0-100 per review).
|
|
183
|
-
2. **Behavioral Sandbox** — Simulated API interactions testing rate-limit compliance, auth behavior, payment handling, injection safety, PII handling, session isolation, and task completion. Exact weights are proprietary.
|
|
184
|
-
3. **World ID** — Proof-of-personhood via Worldcoin. Verification levels: orb (biometric, highest boost), device (passkey), phone (SMS).
|
|
185
|
-
4. **Self** — Self Enterprise eligible-human proof via signed session webhooks, with optional Self Agent ID binding.
|
|
186
|
-
5. **Icebreaker** — Human attestation via Ethereum Attestation Service (EAS) on Base. A human attests this is their "designated agent."
|
|
187
|
-
6. **Wallet Intelligence** (Pro) — Bounded Alchemy history on Ethereum/Base/Arbitrum/Optimism/Polygon or Helius signature history on Solana. Returns a trust score, inverse risk, confidence, reasons, hard flags, and normalized activity features.
|
|
53
|
+
For ANS/provider identity, use createAgentIdentityProof and agentIdentityProofHeaders in the agent, and createValironIdentityGate or the Fastify/Next/generic identity gates in the API. Proof v2 binds audience, uppercase method, exact full URL and SHA-256 of raw request bytes. Configure the receiver's audience and trusted origin; never derive authorization context from caller-supplied headers. Capture raw bytes before body parsing. v1 proofs cannot authorize a request. Valiron hosts the ANS resolver/CA credentials. anonymous/claimed/verified describe evidence, not a known human or guaranteed good behavior. Policy actions are allow, limit, challenge and block.
|
|
188
54
|
|
|
189
|
-
|
|
55
|
+
## SDK and API operations
|
|
190
56
|
|
|
191
|
-
|
|
57
|
+
Install @valiron/sdk for agent identity/access. Authenticated profile methods include checkAgent, getAgentProfile, getKeyAgentProfile, getKeyAgentIcebreaker (Pro), getWalletRisk and resolveWallet. Profile reads are evidence lookups, not caller authentication. Do not supply local names such as my-agent to registry-agent endpoints.
|
|
192
58
|
|
|
193
|
-
|
|
59
|
+
- GET /operator/agent/{agentId}?chain={chain}: registry profile summary.
|
|
60
|
+
- GET /operator/key/{agentAddress}: key-agent summary; social fields are redacted.
|
|
61
|
+
- POST /operator/key/{agentAddress}/challenge and POST /operator/key/verify: key registration.
|
|
62
|
+
- POST /operator/identity/verify: provider proof with provider, agentId, signature, timestamp, nonce, requestDigest, audience, method, url and optional keyId/policy.
|
|
63
|
+
- POST /operator/gate/{agentId}: hosted owner-signed gate; inspect allow before serving an action.
|
|
64
|
+
- POST /operator/trigger-sandbox/{agentId} and /operator/trigger-sandbox-key/{agentAddress}: authenticated evaluation.
|
|
65
|
+
- POST /proxy/{agentId}: owner-signed forwarding to permitted public HTTPS only.
|
|
66
|
+
- GET /operator/agent/{agentId}/snapshot: opaque hashes and timestamp; no private evidence-storage URL.
|
|
67
|
+
- POST /operator/webhooks/register?chain={chain}: authenticated, operator/chain-scoped callbacks. Use chain=key for key-agent events; re-register older subscriptions.
|
|
194
68
|
|
|
195
|
-
|
|
69
|
+
SDK identifiers are validated/encoded before network calls. Credentialed calls reject redirects. Public upstream requests pin validated DNS, reject private/link-local/mapped addresses and redirects, and enforce time/body limits.
|
|
196
70
|
|
|
197
|
-
|
|
198
|
-
|------|---------|-------|
|
|
199
|
-
| AAA | Prime | prod |
|
|
200
|
-
| AA | High grade | prod |
|
|
201
|
-
| A | Upper medium | prod |
|
|
202
|
-
| BAA | Medium grade | prod_throttled |
|
|
203
|
-
| BA | Speculative | prod_throttled |
|
|
204
|
-
| B | Highly speculative | sandbox |
|
|
205
|
-
| CAA | Substantial risk | sandbox_only |
|
|
206
|
-
| CA | Extremely speculative | sandbox_only |
|
|
207
|
-
| C | Default risk | sandbox_only |
|
|
71
|
+
## Human linkage
|
|
208
72
|
|
|
209
|
-
|
|
73
|
+
World ID enrollment requires an authenticated operator, a fresh registry-owner signature and the complete unmodified production IDKit result in idkit_result. The server verifies the configured RP/action. Current enrollment accepts proof-of-human credentials and derives strength from verified evidence; a caller-supplied device/phone/orb label is insufficient. Legacy links require re-verification.
|
|
210
74
|
|
|
211
|
-
-
|
|
212
|
-
- Honor Retry-After headers
|
|
213
|
-
- Use exponential backoff
|
|
214
|
-
- Don't retry 401/403 auth errors
|
|
215
|
-
- Stay in scope — don't probe unauthorized paths
|
|
216
|
-
- Don't forward injections or tainted payloads
|
|
217
|
-
- Handle 402 payment required correctly
|
|
218
|
-
- Maintain session isolation
|
|
75
|
+
Self session creation also requires operator and owner approval. Only new owner-authorized sessions can establish trusted links through signed provider callbacks. Omit return URLs or use the allowed https://valiron.co origin. Direct verifySelf ingestion is not a hosted customer integration. Use createSelfSession, getSelfStatus and getSelfProfile. Human linkage does not grant consent for every purchase or action.
|
|
219
76
|
|
|
220
|
-
##
|
|
77
|
+
## Pricing, quotas and billing
|
|
221
78
|
|
|
222
|
-
|
|
79
|
+
Free: 10,000 agent requests and a separate 10,000 bot-protection requests per UTC calendar month, three endpoints and five sandbox runs/day. Pro: $149/month, 100,000 requests per product and Social Graph. Enterprise: founders@valiron.co. Limits never auto-upgrade accounts. Additional calls for either product cost 0.001 each in the subscription currency and require separate explicit opt-in.
|
|
223
80
|
|
|
224
|
-
|
|
225
|
-
- Reputation Registry: 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63
|
|
81
|
+
Hosted wrappers apply payment validation, local rate limits and trust admission before charging the owner's monthly allowance. Rejected calls do not consume that allowance; admitted calls can count even if the upstream later fails. Crawler local access/rate denials also precede monthly admission. Database operations are not counted as additional monthly crawler requests. Storage failures fail closed.
|
|
226
82
|
|
|
227
|
-
|
|
83
|
+
Checkout/subscriptions are bound to the authenticated operator's customer identity, not a supplied checkout email. Promotion eligibility is handled by Stripe checkout. Successful password resets revoke existing operator sessions and API keys; sign in again and replace affected integration keys.
|
|
228
84
|
|
|
229
|
-
|
|
230
|
-
- Reputation Registry (ATOM): AToMw53aiPQ8j7iHVb4fGt6nzUNxUhcPc3tbPBZuzVVb
|
|
85
|
+
## Hosted API Scaffolding
|
|
231
86
|
|
|
232
|
-
|
|
87
|
+
Configure an existing public HTTPS upstream in Dashboard → API Scaffolding. Agents call /wrap/{operatorId}/{path}. Wrappers apply configured payment (x402 or MPP), trust, rate and forwarding policies. Protect origins against direct bypass using HMAC upstream authentication; x-valiron-* metadata is not an origin credential.
|
|
233
88
|
|
|
234
|
-
|
|
89
|
+
Trust-enabled wrappers require x-agent-id, x-chain matching the signed network, and the fresh owner-proof headers above. A payment proof alone is insufficient. A signed payment retry must use a new identity nonce. Only supported on-chain identities are accepted here; use your own SDK middleware for key-based agents. Disabling wrapper trust skips identity/trust policy, not rate, monthly quota or safe-forwarding controls.
|
|
235
90
|
|
|
236
|
-
##
|
|
91
|
+
## Crawler Protection
|
|
237
92
|
|
|
238
|
-
|
|
93
|
+
Install @valiron/crawler-protection@^0.6.0 separately. The standalone Node.js 22+ HTTP gateway fronts origins regardless of backend language; in-process Node/Nuxt adapters and a private authenticated work API/Python client are available. Python/SQLite and Node/Nuxt/MariaDB are tested. Wrap every expensive operation and release capacity only after confirmed settlement/cancellation. Gateway-only limits do not instrument database drivers or protect a bypassed origin.
|
|
239
94
|
|
|
240
|
-
|
|
95
|
+
Supported source evidence uses reviewed official CIDRs, Bing DNS or authenticated verified WAF evidence. Crawler SDK 0.4.0 adds opt-in WebBotAuthVerifier fallback for operator-pinned signing keys; only explicitly promoted valid signers receive verified budgets, and existing trusted/IP/DNS verification takes precedence. Signature validity proves key control, not good intent or authorization. User-agent alone grants no verification; generic browser tokens cannot override failed official crawler evidence. In 0.6.0, feed-backed directory approvals pin identity metadata and recipes while allowing validated CIDRs to refresh. Static recipes pin their resolved ranges too. Regenerate old approval hashes when upgrading, and review changed identity metadata or static ranges. Invalid/broad range sets disable only the affected entry; structurally invalid catalogs still reject atomically. Bare addresses normalize to host ranges. Provenance is separate from human identity, reputation or intent.
|
|
241
96
|
|
|
242
|
-
|
|
97
|
+
SDK 0.6.0 verifies OpenAI oai-searchbot/chatgpt-user/gptbot; Anthropic claude-searchbot/claude-user/claudebot; Google google-agent and gemini-notebook in addition to existing crawlers. Search/user fetches and training are separate class policies. Google-Agent establishes Google-hosted origin, not a particular model or user; Google-Extended is a robots.txt preference, not an HTTP identity. Claude-Agent hosted browsers require the separately reviewed directory-claude-agent / claude-agent identity; static address changes need review, and automatic SAIL refresh is not implemented. No promise covers every Claude, Gemini or Codex browsing mode.
|
|
243
98
|
|
|
244
|
-
|
|
99
|
+
Set crawlerAccessDefault to deny and configure explicit budget rules by provider/class/group to deny other verified crawlers. Omitted defaults retain budget behavior. unverifiedAccess budget keeps unknown traffic under conservative limits; deny blocks unknown/failed/expired identity checks, including anonymous humans. Verified customer grants retain independent shopper/checkout lanes. Access rules remain subject to configured rates and workload ceilings. Observation reports proposed blocks rather than enforcing access denials. Changes require customer-side deployment; dashboard filters are not policy controls. See https://www.valiron.co/docs/crawler-protection/policies#allow-selected-ai-services.
|
|
245
100
|
|
|
246
|
-
|
|
101
|
+
Use a server-side Free/Pro/Enterprise operator key and account-scoped tenant with activateCrawlerProtection(). Leases refresh in the background; protected requests require hosted monthly admission. Expiry/revocation stops new work while confirmed release/recovery remains available. Activation can target an explicitly configured trusted HTTPS service and rejects redirects. Existing public older versions are not retroactively gated.
|
|
247
102
|
|
|
248
|
-
|
|
103
|
+
Uncertain acquisitions use deadlines/cancellation to avoid unstarted holds. Started operations retain conservative holds until confirmed stopped. Recovery pauses admission and reconciles exact IDs with drain evidence; timeout alone does not prove a query stopped. The dashboard validates/exports configuration and shows optional origin-reported telemetry; it does not deploy protection or certify rollout.
|
|
249
104
|
|
|
250
|
-
|
|
105
|
+
Crawler SDK 0.4.0 also includes optional returning-browser recognition: a server-signed cookie supports exact browser continuity, while coarsened browser signals provide similarity only. Mount its Node middleware and explicitly call the browser collector to enable collection. It is observe-only, not human identification or automatic blocking, and is not automatically included in hosted crawler analytics. SDK 0.5.0 requires a server-side account activation handle for recognition and meters each recognition call against the bot allowance.
|
|
251
106
|
|
|
252
|
-
|
|
253
|
-
- getWorldIdStatus(agentId) — Check verification status
|
|
254
|
-
- getWorldIdProfile(agentId) — Full World ID profile
|
|
107
|
+
## Reporting and errors
|
|
255
108
|
|
|
256
|
-
|
|
109
|
+
SDK diagnostic telemetry remains separately configurable with telemetry.enabled (default true); disable with telemetry: {enabled:false}. Operator usage reporting is disabled by default: new ValironOperator({apiKey,analytics:true}) explicitly opts in. It sends authenticated decision/identity labels, method, status, price and latency while omitting/redacting raw IP addresses, user agents, paths/query strings and arbitrary error messages.
|
|
257
110
|
|
|
258
|
-
|
|
259
|
-
- getSelfStatus(agentId) — Check whether the agent has a verified Self eligible-human link
|
|
260
|
-
- getSelfProfile(agentId) — Full Self eligible-human and optional Agent ID profile
|
|
261
|
-
- verifySelf(agentId, proof) — Trusted-payload ingestion for local/internal tests only; production uses session creation plus signed Self webhooks
|
|
111
|
+
Handle codes: MISSING_AGENT_IDENTITY (401), AGENT_OWNERSHIP_REQUIRED (401), TRUST_GATE_DENIED (403), AGENT_EVALUATION_PENDING (403; honor retryAfterMs), TRUST_GATE_UNAVAILABLE (503). Ownership failures may contain only code/error; recovery fields are optional. Never fail open or bypass a proof check because a profile was cached.
|
|
262
112
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
Opt-out anonymous client usage reports. Disable with `telemetry: { enabled: false }`. Supports custom sampleRate (0–1) and custom handler function. Environment defaults to recognized NODE_ENV values, otherwise unknown. Signal selections do not measure successful verifications.
|
|
266
|
-
|
|
267
|
-
## Middleware Error Responses
|
|
268
|
-
|
|
269
|
-
All middleware returns actionable JSON. Use the stable `code` for program logic and read `message`, `action`, and `docsUrl` for recovery. Codes: `MISSING_AGENT_IDENTITY` (401), `TRUST_GATE_DENIED` (403), `AGENT_EVALUATION_PENDING` (403; honor `retryAfterMs`), and `TRUST_GATE_UNAVAILABLE` (503, fail-closed). SDK `ValironError` instances preserve the same server code plus `details.action`, `details.requestId`, `details.docsUrl`, and `details.retryAfterMs`.
|
|
270
|
-
|
|
271
|
-
## Solana Notes
|
|
272
|
-
|
|
273
|
-
- Use chain: "solana" in SDK or ?chain=solana query parameter
|
|
274
|
-
- Agent IDs are base-58 Metaplex Core asset pubkeys or sequential integers (1, 2, 42)
|
|
275
|
-
- Wallet addresses are base-58 Solana public keys (not 0x-prefixed)
|
|
276
|
-
- Identity and reputation provided by QuantuLabs (separate from EVM 8004 contracts)
|
|
277
|
-
- Extra reputation fields: trustTier, qualityScore, confidence, riskScore, uniqueCallers
|
|
278
|
-
- Liveness endpoint: GET /operator/agent/{agentId}/liveness?chain=solana
|
|
279
|
-
- Feedback write-back: Valiron scores written on-chain via giveFeedback() when enabled by Valiron
|
|
280
|
-
|
|
281
|
-
## Documentation
|
|
113
|
+
Usage billing: website signup and a server-side operator API key are required. Free includes 10,000 requests per product per UTC month; Pro includes 100,000 per product. An active paid Pro subscriber can separately enable additional crawler or middleware calls at 0.001 each in the subscription billing currency, displayed before acceptance. Each product has its own allowance, meter and opt-in. Without opt-in, that product stops at 100,000; Free must upgrade after 10,000. Billing uses durable hosted admission counters, not optional telemetry or every local SDK function call. SDK 0.5.0 also requires account activation for returning-browser recognition.
|
|
282
114
|
|
|
283
|
-
|
|
284
|
-
- [auth.md](https://www.valiron.co/auth.md) — Agent identity skill (create keypair, authenticate, manage sessions)
|
|
285
|
-
- docs/agents/README.md — Index
|
|
286
|
-
- docs/agents/QUICKSTART.md — Get started
|
|
287
|
-
- docs/agents/AGENT-READY-APIS.md — Hosted x402/MPP wrappers for existing APIs
|
|
288
|
-
- docs/agents/DASHBOARD.md — Operator Dashboard (manage endpoints, keys, analytics, playground)
|
|
289
|
-
- docs/agents/API-REFERENCE.md — HTTP API reference
|
|
290
|
-
- docs/agents/SDK-REFERENCE.md — TypeScript SDK reference
|
|
291
|
-
- docs/agents/TRUST-MODEL.md — Trust evaluation and behavioral factors
|
|
292
|
-
- docs/agents/IDENTITY.md — ERC-8004 identity and reputation
|
|
293
|
-
- docs/agents/PROVIDER-IDENTITY.md — Provider-independent identity proof, replay protection, policy actions, and ANS adapter status
|
|
294
|
-
- docs/agents/SANDBOX.md — Sandbox testing environment
|
|
295
|
-
- docs/agents/CHAINS.md — Supported blockchains
|
|
296
|
-
- docs/agents/ERRORS.md — Error handling and troubleshooting
|
|
297
|
-
|
|
298
|
-
## Operator Dashboard
|
|
299
|
-
|
|
300
|
-
Dashboard URL: https://www.valiron.co/dashboard (JWT-authenticated)
|
|
301
|
-
|
|
302
|
-
### Dashboard Features
|
|
303
|
-
- Overview: revenue, calls, agents, latency stats + quick start guide
|
|
304
|
-
- Agents: view every agent that called your API, drill into per-agent detail with predictive risk
|
|
305
|
-
- Analytics: revenue charts (7/30/90 days), top endpoints, today's stats
|
|
306
|
-
- Call Logs: paginated log with time/agent/chain/endpoint/status/cost/latency filters
|
|
307
|
-
- API Keys: generate, copy, and revoke operator API keys (val_op_ prefix)
|
|
308
|
-
- Make API Agent-Ready: create hosted wrappers with upstream base URL, price, x402/MPP protocol, optional trust, rate limit, upstream auth
|
|
309
|
-
- Playground: test how agents at different trust levels are evaluated (dry-run or live)
|
|
310
|
-
- Settings: update name, view plan and fee rate
|
|
311
|
-
- Admin (admin-only): platform stats, all operators
|
|
312
|
-
|
|
313
|
-
### Dashboard API Endpoints (JWT-authenticated)
|
|
314
|
-
|
|
315
|
-
POST /operator/register
|
|
316
|
-
Body: { "email": "...", "password": "...", "name": "..." }
|
|
317
|
-
|
|
318
|
-
POST /operator/login
|
|
319
|
-
Body: { "email": "...", "password": "..." }
|
|
320
|
-
|
|
321
|
-
GET /operator/me
|
|
322
|
-
PATCH /operator/me
|
|
323
|
-
Body: { "name": "..." }
|
|
324
|
-
|
|
325
|
-
GET /operator/keys
|
|
326
|
-
POST /operator/keys/rotate
|
|
327
|
-
Body: { "label": "..." }
|
|
328
|
-
DELETE /operator/keys/{keyId}
|
|
329
|
-
|
|
330
|
-
GET /operator/endpoints
|
|
331
|
-
POST /operator/endpoints
|
|
332
|
-
Body: { "path": "/weather", "method": "GET", "pricePerCall": 0.001, "description": "...", "rateLimit": 60, "targetUrl": "https://api.example.com", "paymentProtocol": "x402", "paymentNetwork": "eip155:8453", "payoutAddress": "0x...", "trustEnabled": false }
|
|
333
|
-
DELETE /operator/endpoints/{endpointId}
|
|
334
|
-
|
|
335
|
-
Public wrapper call:
|
|
336
|
-
ALL /wrap/{operatorId}/{path}
|
|
337
|
-
|
|
338
|
-
GET /operator/analytics/stats
|
|
339
|
-
GET /operator/analytics/revenue?days=30
|
|
340
|
-
GET /operator/analytics/top-endpoints?limit=10
|
|
341
|
-
GET /operator/analytics/agents?sortBy=lastSeen&limit=50&offset=0
|
|
342
|
-
GET /operator/analytics/agents/{agentId}
|
|
343
|
-
GET /operator/analytics/agents/{agentId}/prediction
|
|
344
|
-
GET /operator/analytics/logs?limit=50&offset=0&days=7
|
|
345
|
-
|
|
346
|
-
POST /operator/playground
|
|
347
|
-
Body: { "method": "GET", "path": "/api/test", "agentId": "25459", "chain": "ethereum", "dryRun": false, "headers": {}, "body": null }
|
|
115
|
+
Dashboard Usage: https://www.valiron.co/dashboard/usage — per-product monthly admitted requests, remaining allowance and accrued request-overage estimates; refreshes every 15 seconds while visible. Billing counters are separate from optional crawler traffic telemetry.
|