Package Exports
- @oceanrun/plugin-trustgate
- @oceanrun/plugin-trustgate/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@oceanrun/plugin-trustgate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@oceanrun/plugin-trustgate
ElizaOS plugin for TrustGate — ERC-8004 trust scoring for x402 agents.
Install
npm install @oceanrun/plugin-trustgateAdd to your agent
In your character.json:
{
"plugins": ["@oceanrun/plugin-trustgate"]
}Or programmatically:
import { trustgatePlugin } from '@oceanrun/plugin-trustgate'
const agent = new AgentRuntime({
plugins: [trustgatePlugin],
settings: {
TRUSTGATE_ENDPOINT: 'https://trust-gate-production.up.railway.app',
TRUSTGATE_THRESHOLD: '4.0',
}
})What it does
Actions
CHECK_TRUST — user asks about a wallet's trust score:
User: "Check trust for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
Agent: "Trust Score for 0xd8dA...96045
Score: 3.8/10 | NOT TRUSTED
Reasons:
- Composite score 3.8 below threshold 4
- ERC-8004 stake $0 below minimum $100
- No x402 payment history"GATE_TRUST — programmatic allow/deny for paid requests:
Agent: "DENIED: 0xd8dA...96045 — score 3.8/10"Provider
trustScore — injects trust context into agent memory when wallet addresses are mentioned. The agent automatically knows the trust profile of any wallet in the conversation.
Evaluator
trustEvaluator — monitors interactions for negative signals (scam, fraud, etc.) and automatically files disputes with TrustGate when detected.
Configuration
Set in .env or character.json settings:
| Variable | Default | Description |
|---|---|---|
TRUSTGATE_ENDPOINT |
https://trust-gate-production.up.railway.app |
TrustGate API URL |
TRUSTGATE_THRESHOLD |
4.0 |
Minimum score to pass gate |
TRUSTGATE_MIN_STAKE |
100 |
Minimum ERC-8004 stake in USD |
TRUSTGATE_FAIL_OPEN |
false |
Allow requests if TrustGate is down |
Links
- TrustGate API: https://trust-gate-production.up.railway.app
- Source: https://github.com/oceanrun/trust-gate
- npm middleware: https://www.npmjs.com/package/@oceanrun/trustgate
License
MIT