FORGE_API_KEY on the server. Keep it out of source control and browser code. Use your existing x402 payment middleware and routes.
- Node.js · Express
- Python · FastAPI
Requires Node.js 20.19+ and Express 4.21 or 5.Install:
server.js
npm install @forgeintel/sdk@0.5.0-beta.17.Both switches are off by default: with only an API key, Forge reports telemetry and changes nothing agents see. With agentContext: true, Forge asks agents for their name and search query and records them when sent, but never rejects a paid call without them; { required: true } requires them. Express details.Check the connection
Confirm the SDK’s diagnostics reportenabled: true with no configuration errors. Deploy, make an unpaid request to an existing paid route, wait for the background event queue to flush, then select Test connection on the service’s Activity page. This confirms collector contact; it does not prove service ownership or a completed payment. Verification steps.