Autonomous Execution Gateway for pre-execution verification of autonomous agents.
Before an agent executes, InterAI verifies.
Agent proposes action
-> InterAI verifies
-> allow / review_required / block
-> execute / route / abort
-> store receipt
InterAI Risk Oracle sits between an autonomous agent and the action it wants to execute: a tool call, payment, wallet signature, database update, workflow approval, trade, or outbound message.
The agent sends the proposed action to InterAI before execution. InterAI returns a risk
score, machine-readable signals, recommended_action, policy_result, and trust
receipt metadata. The agent then executes, routes for review, or aborts based on the
decision, and stores the receipt for audit.
Default self-serve path:
pricing -> onboard/API key/trial or x402 -> verify -> decision -> receipt
Try the controlled demo first:
https://ai-risk-oracle.fly.dev/demo
Wire InterAI into your agent before the agent executes a tool or action:
- Demo: https://ai-risk-oracle.fly.dev/demo
- TypeScript middleware example: examples/agent-middleware/typescript
- Python middleware example: examples/agent-middleware/python
- Integration patterns: docs/integration-patterns.md
decision = interai.verify(action)
if decision.allow:
execute(action)
elif decision.review_required:
route_to_review(action)
else:
block(action)
store(decision.trust_receipt_id)
Autonomous systems increasingly call tools, move funds, consume third-party outputs, and trigger workflows without constant human review. A verification layer gives those systems a pre-execution checkpoint: inspect the planned action, evaluate risk, and decide whether to allow, require review, or block execution.
- Agent-before-tool execution
- Agent-before-payment
- Autonomous wallet gate
- Pre-trade verification
- High-risk tool call governance
- agent builders
- autonomous workflow platforms
- wallet/payment agents
- tool-using AI systems
- governance and audit layers
This repository is for public integration materials: SDKs, schemas, examples, OpenAPI, A2A/MCP discovery metadata, and hosted API docs. The production verification engine is hosted and proprietary.
Use the SDKs, schemas, examples, and discovery metadata to integrate with the hosted API. Do not expect to run the production verification engine from this repo.
Use the hosted API. Do not run a local backend from this repository. Start with the controlled demo at https://ai-risk-oracle.fly.dev/demo, then use pricing, onboarding, OpenAPI, and verification endpoints directly from the hosted API.
curl -sS -X POST https://ai-risk-oracle.fly.dev/verify \
-H "Authorization: Bearer <interai_credential>" \
-H "Content-Type: application/json" \
-d '{
"use_case": "agent-before-tool-execution",
"action": {
"type": "tool_call",
"name": "send_invoice_payment",
"description": "Pay a vendor agent after delivery validation",
"amount_usd": 250,
"currency": "USD",
"irreversible": false,
"external_side_effect": true
},
"context": {
"agent_id": "agent_123",
"environment": "production",
"counterparty_id": "vendor_agent_456",
"user_confirmation": false
},
"policy": {
"max_risk_level": "medium",
"require_trust_receipt": true,
"amount_usd_limit": 500,
"blocked_action_types": ["irreversible_transfer"],
"require_human_review_above": 0.75
}
}'import { InterAIRiskOracleClient } from "./sdk/typescript/index"
const oracle = new InterAIRiskOracleClient({
baseUrl: "https://ai-risk-oracle.fly.dev",
apiKey: "replace-with-your-credential"
})
const action = {
type: "payment",
name: "release_vendor_payment",
description: "Release payment to a vendor agent",
amount_usd: 125,
currency: "USD",
irreversible: false,
external_side_effect: true
}
const decision = await oracle.verify({
use_case: "agent-before-payment",
action,
context: {
agent_id: "agent_123",
environment: "production",
counterparty_id: "vendor_agent_456",
user_confirmation: false
},
policy: {
max_risk_level: "medium",
require_trust_receipt: true,
amount_usd_limit: 500,
blocked_action_types: ["irreversible_transfer"],
require_human_review_above: 0.75
}
})
switch (decision.recommended_action) {
case "allow":
await execute(action)
break
case "review_required":
await routeToSupervisorOrPolicyLayer(action, decision)
break
case "block":
await abortAction(action, decision)
break
}score is a risk score from 0 to 1. Higher values mean higher execution risk.
{
"decision_id": "tr_01JZPUBLICEXAMPLE",
"request_contract": "autonomous_execution",
"score": 0.42,
"risk_level": "medium",
"signals": {
"has_external_side_effect": true,
"is_irreversible": false,
"involves_money": true,
"amount_usd": 125,
"requires_user_confirmation": true,
"has_counterparty": true,
"environment": "production",
"action_type": "payment",
"autonomous_execution_detected": true
},
"recommended_action": "review_required",
"policy_result": "review_required",
"policy_violations": [],
"trust_receipt_id": "tr_01JZPUBLICEXAMPLE",
"trust_receipt": {}
}Trust receipts are durable records of a verification decision. They are designed for agent-to-agent handoff, audit trails, retry safety, and governance systems that need to prove a verification happened before execution.
InterAI is not only for human developers. Autonomous agents, orchestrators, wallet
agents, tool routers, and policy layers can discover InterAI from .well-known metadata
and decide when to use it before execution.
Default agent path:
discover -> onboard or x402 -> verify -> act on decision -> store receipt
Default human path:
GitHub/landing -> pricing -> onboard -> API key/topup/x402 -> verify -> store receipt
Email is available for support, security, enterprise access, partnerships, and manual integration help. It is not required as the core self-serve path.
- Public adoption contract: discovery/autonomous-adoption.json
- Hosted adoption contract: https://ai-risk-oracle.fly.dev/.well-known/autonomous-adoption.json
- Demo: https://ai-risk-oracle.fly.dev/demo
- Pricing: https://ai-risk-oracle.fly.dev/pricing
- Onboard: https://ai-risk-oracle.fly.dev/onboard
Agent-readable discovery metadata is available in discovery/. These files describe public capabilities, authentication, schemas, and integration surfaces without exposing service internals.
- 3 decisions in 90 seconds
- Distribution pack
- Tester readiness pack
- Agent before tool execution
- Agent before payment
- Agent middleware TypeScript
- Agent middleware Python
- Autonomous wallet gate
- Pre-trade verification
- Integration patterns
This repository contains public API documentation, SDKs, schemas, examples, and discovery metadata for the hosted InterAI Risk Oracle service. The production verification engine, billing infrastructure, trust logic, scoring system, and hosted service internals are proprietary and not open source.
InterAI Risk Oracle is available through hosted self-serve metadata and API endpoints. Agents and integrators can discover pricing, onboarding, and verification endpoints directly from the hosted API.
- Docs: https://github.com/InterAILabs/ai-risk-oracle
- Support / enterprise / partnerships: interailabs@gmail.com
- Security: interailabs@gmail.com