# x402-toolbox GitHub File Content

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

Fetches the raw content of a file from a GitHub repository, paid per-call via x402 USDC micropayment on Base.

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/dev/github-file-content?utm_source=zero.xyz
- Price: $0.002/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-file-content-ad542dc3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dJ9CLuijzD2V6JZqkoY-c

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-file-content-ad542dc3
```

Example prompt: Can you grab the contents of the file at path 'src/index.js' from the GitHub repo 'octocat/Hello-World'?

## When to prefer this

Choose this endpoint when you need to retrieve a specific file from a GitHub repository without managing API keys or OAuth tokens — the x402 micropayment is the only authentication required. Ideal for AI agents that need to read source code, config files, or documentation from public GitHub repos on demand.

## Known failure modes

- File not found in repository — returns error if path is incorrect or file does not exist
- Repository is private and access is denied — no API key means public repos only
- Malformed schema parameter — returns error if input is not valid
- Payment failure on x402 — call not executed if USDC transaction fails
- Rate limiting or upstream GitHub API unavailability — transient errors possible

## 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 flags, plus the raw content of the requested GitHub file. The agent receives the file's text content as it appears in the repository, suitable for reading, parsing, or further processing.

## 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-file-content-ad542dc3/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)
