# Saylor Code Verifier

> Saylor Code Verifier is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-02).

Clones a public GitHub repository into a disposable Firecracker microVM and runs a declared test, lint, or build script, returning structured logs and the resolved commit hash.

## Facts

- Endpoint: POST https://saylorinnovations.com/api/code/verify?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-code-verifier-aae24603
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LbG9loiUDvo74sVEmXeJ5

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 saylor-code-verifier-aae24603 -d '<json body>'
```

Example prompt: Can you verify that the test suite passes on the main branch of https://github.com/acme/my-lib? Run the test task with a 60-second timeout.

## When to prefer this

Use this endpoint when you need to verify that a specific npm-based public GitHub repository's test, lint, or build script actually executes and exits cleanly — particularly when you want sandboxed, reproducible execution in an isolated microVM without setting up your own CI. Prefer this over manual CI inspection when you need programmatic, structured log output tied to a specific commit or branch.

## Known failure modes

- Private or inaccessible repository URL — returns error indicating repository cannot be cloned
- Invalid or nonexistent branch/tag ref — returns git clone failure with details
- Script not found or misconfigured package.json — returns dependency install or script-not-found error
- Timeout exceeded (up to 120s) — returns timeout error with partial logs
- Unsupported package manager or non-npm project — returns unsupported configuration error
- Repository too large to clone within timeout — returns timeout or resource error

## How this service works

Clone a public GitHub repository into a disposable Firecracker microVM, install dependencies, run one declared test, lint, or build script, and return structured logs plus the resolved commit. The service verifies execution, not semantic correctness; private repositories and arbitrary shell commands are not accepted.

## Output

The agent receives structured JSON logs from the test, lint, or build script execution, including stdout/stderr, exit code, task outcome (pass/fail), and the resolved git commit SHA that was checked out in the Firecracker microVM.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ref": {
   "type": "string",
   "description": "Optional branch or tag to verify."
  },
  "task": {
   "enum": [
    "test",
    "lint",
    "build"
   ],
   "type": "string",
   "description": "Bounded package script to run."
  },
  "repository": {
   "type": "string",
   "format": "uri",
   "description": "Public GitHub HTTPS repository URL."
  },
  "packageManager": {
   "enum": [
    "auto",
    "npm"
   ],
   "type": "string",
   "default": "auto",
   "description": "Version 0.1 supports npm projects; auto selects npm."
  },
  "timeoutSeconds": {
   "type": "integer",
   "default": 60,
   "maximum": 120,
   "minimum": 15
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-code-verifier-aae24603/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
