A starter template for building trust-verified AI agents with AgentStamp.
Click "Use this template" to create your own trust-verified agent.
- Express server with trust-gated endpoints
requireStamp()middleware β only verified agents can call your API- Agent card at
/.well-known/agent-card.json - Trust verification CLI script
- GitHub Actions workflow for CI/CD trust gates
- Ready for x402 micropayments (add
@x402/expresswhen needed)
# 1. Create your repo from this template (click "Use this template" above)
# 2. Install dependencies
npm install
# 3. Configure your agent
cp .env.example .env
# Edit .env with your wallet address
# 4. Run
npm start- Go to agentstamp.org
- Register with your wallet address
- Add your wallet to
.env - Verify it works:
npm run verify -- 0xYourWalletAddressβββ src/
β βββ index.js # Express server with trust-gated routes
β βββ config.js # Environment-based configuration
β βββ verify.js # CLI trust verification script
βββ tests/
β βββ health.test.js
βββ .github/workflows/
β βββ test.yml # Run tests on push/PR
β βββ verify-trust.yml # AgentStamp trust check in CI
βββ .env.example
βββ package.json
Public (no verification):
GET /healthβ Health checkGET /.well-known/agent-card.jsonβ Agent discovery card
Trust-gated (requires X-Wallet-Address header):
POST /api/v1/executeβ Execute a task (min score: 30)
const { requireStamp } = require('agentstamp-verify/express');
// Require gold-tier agents with score >= 80
app.post(
'/api/v1/sensitive-task',
requireStamp({ minTier: 'gold', minScore: 80 }),
(req, res) => {
const caller = req.verifiedAgent;
// caller.name, caller.score, caller.tier available
res.json({ result: 'done' });
}
);The included GitHub Action (verify-trust.yml) checks your agent's trust score on every push. Add your wallet address as a repository secret:
- Go to Settings β Secrets β Actions
- Add
WALLET_ADDRESSwith your agent's wallet
- AgentStamp β Trust verification platform
- AgentStamp SDK β npm package
- AgentStamp GitHub Action β CI/CD trust gates
- Documentation
MIT