Connect to the console
Send traces and your tool registry to the Agentronics console, and pull back rules, approved descriptions and agent keys.
Connect to the console
The console and your site talk through your server, authenticated with an ingest key:
1. Mint an ingest key
Console → Settings → SDK ingest keys → Create key. Copy the agtx_ik_… value (shown once) into your server's environment as AGENTRONICS_INGEST_KEY, with the API URL shown there as AGENTRONICS_API_URL.
The ingest key is a secret. Keep it on your server — never in browser code.
2. One sync client
3. Send what happens
Browser traces — relay them (see Observability):
Server-side authentication — report each agent request:
Your tool registry — so the WebMCP Tools and Memory pages know every tool, its description and its cost:
Tool status (callable / failed) arrives on its own, from the browser's tool.surfaced traces.
4. Pull what you manage in the console
From the browser — no server code; the publishable key is enough:
From your server — when you render the page or want to cache:
policies— the rules from the Authz page, ready forAgentronics.init({ policies }).toolDescriptions— descriptions approved on the Memory page, forAgentronics.init({ toolDescriptions }).
Fetch them where you render the page (cache for a minute or so) and pass them to the browser SDK. Agent API keys are checked live by sync.keyVerifier() — no pull needed.
5. What lights up
| Page | From |
|---|---|
| Detect | agent.detected traces — self-declared, WebMCP, vision, DOM, crawler |
| Auth | auth.identity_presented — by method, failures and why, agents acting for users |
| Authz | Your rules, plus allow / review / deny decisions |
| WebMCP Tools | pushTools + tool.surfaced + tool.executed — status, calls, errors, p95 |
| Memory | pushTools descriptions → AI rewrites you approve |
| Observability | Every trace — sessions, filters, latency |
| Analytics | Breakdowns by agent, method, tool and page |
Every endpoint is plain HTTPS + JSON (POST /v1/sdk/events, /tools, /memory, /config, /agent-keys/verify with Authorization: Bearer agtx_ik_…), so any backend can use it without the SDK. Ingest is idempotent on event id; past your plan's monthly event quota, events are dropped (never rejected) and the response says so.