# Forest Gas Station – GitHub Release Asset Resolver

> Forest Gas Station – GitHub Release Asset Resolver is a paid API for AI agents from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Resolves a public GitHub repository release into the most appropriate downloadable binary asset for a given OS and architecture target, excluding source archives, signatures, and checksums, and surfacing checksum companions when available.

## Facts

- Endpoint: POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/release/asset-resolve?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/forest-gas-station-github-release-asset-resolver-48e1d2d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YsQ2m_1UT-pyVDVPqoxvb

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-gas-station-github-release-asset-resolver-48e1d2d0 -d '<json body>'
```

Example prompt: Find the right binary asset to download from the cli/cli GitHub repo for the v2.48.0 release targeting linux x86_64, and include the checksum file if there is one.

## When to prefer this

Use this endpoint when you need to programmatically identify and download the correct binary asset from a public GitHub release without manually inspecting asset lists. Prefer it over scraping GitHub release pages directly when you need OS/arch normalization, checksum companion linking, and protection against silently picking the wrong asset in ambiguous cases. Not suitable for private repositories or repositories requiring authentication.

## Known failure modes

- Repository not found or is private — returns not-found error
- No assets match the specified OS/architecture combination — returns empty or no-match result
- Ambiguous candidates with equal match score — returns ambiguity response instead of an asset
- Release tag does not exist in the repository — returns not-found or invalid-release error
- Rate limiting from GitHub public API — may return throttle error
- Malformed repository or release input — returns validation error

## How this service works

Resolve a public GitHub release into the most plausible downloadable asset for a normalized OS/architecture target, excluding source/signature/checksum files and linking checksum companions when present. Returns ambiguity instead of silently choosing tied candidates. No private repositories or customer authentication. Base mainnet USDC

## Output

Returns the resolved asset metadata including the direct download URL, filename, and (when available) a linked checksum companion file. If multiple assets tie equally well for the given OS/arch target, returns an ambiguity response instead of silently picking one. Excludes source archives, signatures, and standalone checksum files from the primary result.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "os": {
   "enum": [
    "windows",
    "linux",
    "macos",
    "freebsd",
    "any"
   ],
   "description": "Public os value used to scope this lookup."
  },
  "arch": {
   "enum": [
    "x86_64",
    "x86",
    "arm64",
    "armv7",
    "any"
   ],
   "description": "Public arch value used to scope this lookup."
  },
  "release": {
   "type": "string",
   "maxLength": 128,
   "minLength": 1,
   "description": "Release identifier used to resolve a public asset."
  },
  "repository": {
   "type": "string",
   "maxLength": 300,
   "minLength": 3,
   "description": "Public owner/name repository to inspect."
  },
  "allow_prerelease": {
   "type": "boolean",
   "description": "Public allow prerelease value used to scope this lookup."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forest-gas-station-github-release-asset-resolver-48e1d2d0/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)
