# x402-toolbox GitHub Repo Tree

> x402-toolbox GitHub Repo Tree is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Fetches the file and directory tree of a GitHub repository, paid per-call via x402 USDC with no API key required.

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/dev/github-repo-tree?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-toolbox-github-repo-tree-d502162e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jSE3fL6U1wZjsAZcOIfi2

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 x402-toolbox-github-repo-tree-d502162e
```

Example prompt: Can you fetch the full file and directory tree for the GitHub repo 'vercel/next.js' so I can see how the codebase is structured?

## When to prefer this

Choose this endpoint when you need a quick, no-signup way to retrieve a GitHub repository's file tree and are already operating in an x402 USDC payment context. It is ideal for AI agents that need to inspect codebase structure programmatically without managing GitHub OAuth tokens or API keys.

## Known failure modes

- Invalid or non-existent repository identifier returns an error or empty tree
- Private repositories without proper access return authorization errors
- Payment failure via x402 prevents the call from completing
- Malformed schema input results in a 400-level error
- Very large repositories may time out or return truncated results

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with ok and paid status flags, plus the hierarchical file and directory tree of the specified GitHub repository, including all file paths and folder structure.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-toolbox-github-repo-tree-d502162e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
