# Forest Infra – GitHub Repository Preflight

> Forest Infra – GitHub Repository Preflight is a paid API for AI agents from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Resolves the current public state of a GitHub repository (archived, fork, branch, license, etc.) using only the public GitHub API — no cloning or OAuth required.

## Facts

- Endpoint: POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/repo/preflight?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/forest-infra-github-repository-preflight-f7c79769
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F_-oMg8B97rA3zp6TxrhZ

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 forest-infra-github-repository-preflight-f7c79769 -d '<json body>'
```

Example prompt: Can you check the public GitHub repo state for 'vercel/next.js' — specifically whether it's archived, if it's a fork, what the default branch is, and what license it uses?

## When to prefer this

Choose this endpoint when you need a fast, lightweight inspection of a public GitHub repository's metadata (archived state, fork status, default branch, license) without needing to clone the repo or authenticate with OAuth. It is ideal for pre-integration checks, license compliance validation, or automated pipelines that need to verify repo state before proceeding. Prefer it over full GitHub API calls when you only need these specific preflight fields and want a normalized, bounded response.

## Known failure modes

- Repository not found or does not exist returns an error (private or non-existent repos are unsupported)
- Malformed owner/name string rejected by input pattern validation
- GitHub API rate limiting may cause transient failures
- Private repositories always fail — only public repos are supported

## How this service works

Resolve the current public GitHub repository state without cloning or customer OAuth. Archived, fork, branch and license fields reflect only public API facts; private repositories are unsupported. Base mainnet USDC

## Output

A structured object describing the current public state of the specified GitHub repository, including fields such as archived status, whether it is a fork, the default branch name, and license information — all sourced directly from the public GitHub API without requiring OAuth or repository cloning.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "repository": {
   "type": "string",
   "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$",
   "maxLength": 200,
   "description": "Public owner/name repository to inspect."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forest-infra-github-repository-preflight-f7c79769/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run](https://www.zero.xyz/host/http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/llms.txt)
