# aivil

> The AI Vital Identity Layer — civil registry for AI agents.

## Install

npm install aivil

## Quick Start

const { createAgent, audit, verify } = require('aivil')

const agent = createAgent({
  name: "Prometheus",
  role: "Procurement Specialist",
  owner: "Acme Corp",
  purpose: "Handle vendor search and purchasing",
  jurisdiction: "Delaware_USA",
  policy: {
    spending_limit: 100,
    requires_human_signoff_over: 50,
    restricted_domains: ["*.crypto", "*.gambling"],
    allowed_actions: ["search_vendor", "request_quote"],
  }
})

console.log(agent.id)
// → AGT-A3F8C2E1

const verdict = audit(agent, {
  type: "purchase",
  amount: 30,
  domain: "openai.com",
  description: "Buy API credits"
})

console.log(verdict.status)
// → APPROVED

## Links

- Live demo: https://aivil-lake.vercel.app
- GitHub: https://github.com/scalatest01/AIVIL
- Contact: ihimanshu882@gmail.com

## License

MIT — open source forever.