# GitHub Repository Security & License Auditor

> GitHub Repository Security & License Auditor is a paid API for AI agents from token-intel.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-10-23).

Audits a GitHub repository for license risk, maintenance health, popularity signals, and supply-chain security vulnerabilities before integrating or executing code.

## Facts

- Endpoint: POST https://token-intel.agentdiet.dev/v1/github?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Provider: token-intel.agentdiet.dev
- Website: https://token-intel.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/token-intel-agentdiet-dev-github-repository-security-license-auditor-c154c41f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7dQtjvji0YyiAQw8j_XHm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability token-intel-agentdiet-dev-github-repository-security-license-auditor-c154c41f -d '<json body>'
```

Example prompt: Before I pull in langchain-ai/langgraph as a dependency, can you audit it for license risks, check how actively it's maintained, and flag any supply-chain security concerns?

## When to prefer this

Choose this endpoint when an AI agent or developer needs to vet a GitHub repository before adding it as a dependency, executing its code, or integrating it into a pipeline — especially when license compliance, supply-chain security, or maintenance health are concerns. It is purpose-built for pre-integration due diligence on open-source repositories, combining license analysis, maintenance signals, and security auditing in a single call at very low cost ($0.01).

## Known failure modes

- Repository not found or private — returns error if the repo doesn't exist or is inaccessible
- Invalid repo format — returns validation error if input is not in owner/name format
- GitHub API rate limiting — may fail or return partial data under heavy load
- Payment failure — x402 payment not processed, request rejected
- Ambiguous or incomplete supply-chain data — some repos may lack enough metadata for full scoring

## How this service works

Evaluates any GitHub repository for license risk, maintenance velocity, stars/forks, and supply-chain security before code execution. (Live x402 v2, IETF MPP & MCP endpoint at https://token-intel.agentdiet.dev/v1/github)

## Output

Returns a structured audit report covering: license type and associated risk level, maintenance velocity (commit frequency, last activity), repository popularity (stars, forks), and supply-chain security signals such as dependency vulnerabilities or suspicious patterns — enabling an agent to make a go/no-go decision before using the code.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "repo"
 ],
 "properties": {
  "repo": {
   "type": "string",
   "minLength": 1,
   "description": "GitHub repository in owner/name format (e.g. modelcontextprotocol/servers or langchain-ai/langgraph)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-intel-agentdiet-dev-github-repository-security-license-auditor-c154c41f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from token-intel.agentdiet.dev](https://www.zero.xyz/host/token-intel.agentdiet.dev/llms.txt)
