Menu

Explorer & Settings

Tempo Explorer Submit Project
Back to all projects

agentstamp-agent-template

by vinaybhosle ยท Updated 4 months ago

๐Ÿ” Trust-verified AI agent starter โ€” AgentStamp identity + x402 payments + MCP tools. Use this template.

In the AI payments ecosystem

agentstamp-agent-template is an early-stage JavaScript project in the AI payments / x402 ecosystem, focused on agent-starter, agent-template, agentstamp, ai-agents. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like agentstamp, aixyz, use-agently, awesome-molt-ecosystem, vaaya-mcp, agoragentic-integrations.

๐Ÿ” AgentStamp Agent Template

A starter template for building trust-verified AI agents with AgentStamp.

Click "Use this template" to create your own trust-verified agent.

What You Get

  • 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/express when needed)

Quick Start

# 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

Register Your Agent

  1. Go to agentstamp.org
  2. Register with your wallet address
  3. Add your wallet to .env
  4. Verify it works:
npm run verify -- 0xYourWalletAddress

Project Structure

โ”œโ”€โ”€ 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

Trust-Gated Endpoints

Public (no verification):

  • GET /health โ€” Health check
  • GET /.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)

Adding More Endpoints

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' });
  }
);

CI/CD Trust Verification

The included GitHub Action (verify-trust.yml) checks your agent's trust score on every push. Add your wallet address as a repository secret:

  1. Go to Settings โ†’ Secrets โ†’ Actions
  2. Add WALLET_ADDRESS with your agent's wallet

Learn More

License

MIT

All MCP projects →