▸ DEVELOPER SDK · @kalo/sdk
One line for agents. One gate for attested providers.
Drop kalo.fetch() into any autonomous agent and kaloGate() onto any Hono or Express route. Pre-execution PII stripping, shielded UTXO locking, and Ed25519 TEE receipt verification run automatically.
Agent · kalo.fetch()
import { KaloClient } from '@kalo/sdk';
const kalo = new KaloClient({
ring: process.env.KALO_RING_PDA!,
mandate: process.env.KALO_MANDATE_PDA!,
agentKeypair,
viewingKey: process.env.KALO_VIEWING_KEY,
});
const res = await kalo.fetch('https://infer.kalo.local/v1/demo/infer', {
method: 'POST',
body: JSON.stringify({ prompt: 'Signal query' }),
});Provider · kaloGate()
import { Hono } from 'hono';
import { kaloGate } from '@kalo/sdk';
const app = new Hono();
app.post(
'/v1/demo/infer',
kaloGate({
enclaveKeypair,
hardwareType: 'IntelTDX',
priceBaseUnits: '40000',
mint: USDC_MINT,
}),
async (c) => c.json(await runPrivateInference(await c.req.json()))
);Pre-execution PII header filter
Runs in <6ms p99 before any HTTP 402 request leaves the agent runtime — stripping IP, cookies, and internal identity headers.
Raw Agent Request Headers
x-forwarded-for198.51.100.42
user-agentalpha-desk-agent/2.4
cookiesession=eyJhbGciOi...
x-internal-accountdesk-treasury-7
content-typeapplication/json
x-kalo-escrowEscrowPDA(7k9a...3e1f)
x-kalo-protocolkalo-402/v1
3.4 ms4/4 stripped
Wire HTTP 402 Headers Sent
content-typeapplication/json
x-kalo-escrowEscrowPDA(7k9a...3e1f)
x-kalo-protocolkalo-402/v1