# Osty documentation

Docs. Breadcrumb: [Home](https://osty.dev/) / Docs

Osty ships three binaries you run yourself: the `osty` CLI (Apache 2.0 source), the `osty-edge` daemon and the `osty-proxy` registry firewall. One `.osty/policy.yaml` file governs all three. Every command, flag and policy example on these pages is checked in CI against the compiled binaries, so the reference cannot drift from the code.

Table: Osty reference pages and what each one covers

| Reference | Covers | Start with |
| --- | --- | --- |
| [CLI reference](https://osty.dev/docs/cli) | Ten `osty` commands, every flag, exit codes and `--json` output | `osty verify --lockfile package-lock.json` |
| [Policy reference](https://osty.dev/docs/policy) | Every `.osty/policy.yaml` key, autonomy levels and tighten-only overlays | `osty policy validate .osty/policy.yaml` |
| [Edge and proxy reference](https://osty.dev/docs/edge-proxy) | `osty-edge serve` and `osty-proxy serve` flags, routes and fail-closed pulls | `osty-proxy serve --dev` |
| [Integrations](https://osty.dev/integrations) | CI, registry, Kubernetes and GRC guides | `osty verify` in CI |

Check your policy file:

```bash
osty policy validate .osty/policy.yaml
```

## Reference pages

- [CLI reference](https://osty.dev/docs/cli): Every `osty` command, subcommand and flag, with exit codes, environment defaults and `--json` output.
- [Policy reference](https://osty.dev/docs/policy): Every `.osty/policy.yaml` key, the four autonomy levels, the `VERIFIED_PR` cap on LLM edits and the tighten-only overlay rules.
- [Edge and proxy reference](https://osty.dev/docs/edge-proxy): `osty-edge serve` and `osty-proxy serve` flags, environment defaults, registry routes, health endpoints, fail-closed pulls and the kill switch.
- [Integrations](https://osty.dev/integrations): Runnable guides for GitHub Actions, GitLab CI, CircleCI, Artifactory, Kubernetes and GRC tools.

## How do I verify an Osty install in five minutes?

1. Install the CLI. It is pure Go, so one static binary runs anywhere Go builds. On macOS and Linux you can also run `brew install osty-dev/tap/osty` or download a release from [osty-dev/osty](https://github.com/osty-dev/osty/releases).
2. Save the policy below as `.osty/policy.yaml` in a repository.
3. Run `osty policy validate`. It prints the digest that `osty-edge` pins.
4. Run `osty verify` on a lockfile. With an empty edge cache, `FAIL_CLOSED` holds every dependency, which proves the gate is live.

1. Install:

```bash
CGO_ENABLED=0 go install github.com/osty-io/osty/cmd/osty@latest
osty version
```

2. `.osty/policy.yaml`:

```yaml
apiVersion: osty.io/v1
kind: FleetPolicy

supplyChain:
  defaultCooldownHours: 48
  fastTrackVerifiedKEV: true
  blockVerdicts:
    - CONFIRMED_MALICIOUS
    - QUARANTINED_HIGH_RISK
  blockLicenseChanges: true
  allowedLicenses: [MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, MPL-2.0]
  proxyFailureMode:
    prodCI: FAIL_CLOSED
    devLaptop: FAIL_OPEN_WITH_CACHE

cadence:
  maintenanceTrain:
    schedule: "every Tuesday 09:00 UTC"
    coalesceSeverities: [MEDIUM, LOW]
  fastTrackSeverities: [CRITICAL, HIGH]

ciGovernor:
  maxConcurrentCampaignRuns: 10
  routineBudgetPercent: 20
  kevBurstBudgetPercent: 60
  flakeControlRerun: true

autonomy:
  defaultTier: VERIFIED_PR
  canaryDefaults:
    soakMinutes: 30
    maxErrorRateDeltaPct: 1.0
    maxP99DeltaPct: 20
    zeroOOMKills: true
  tiers:
    TIER_0:
      maxAutonomy: VERIFIED_PR
      requireObservabilityGate: true
    TIER_1:
      maxAutonomy: AUTO_MERGE_SAFE
      allowStaleMainAutoRedeploy: false
      requireObservabilityGate: true
      canarySoakMinutes: 15
      canaryMaxErrorRateDeltaPct: 0.5
      canaryMaxP99DeltaPct: 15
      canaryZeroOOMKills: true
    TIER_2:
      maxAutonomy: CANARY_ROLLOUT
      allowStaleMainAutoRedeploy: true

patchVerifier:
  allowAgenticCodeMigrations: true
  agenticMigrationMaxAutonomy: VERIFIED_PR
  forbiddenPaths:
    - ".github/workflows/**"
    - ".circleci/**"
    - "**/Makefile"
    - "**/auth/**"
    - "**/iam/**"
  forbidUnlistedDependencies: true
  forbidNewShellOrNetworkPrimitives: true

killSwitch:
  autoFreezeProxyOnConfirmedMalicious: true
  autoRollbackStatelessWorkloads: true
  statefulMigrationAction: CONTAIN_AND_FORWARD_REBUILD
  requireDualControlForBroadRollback: true
```

3. Validate the policy:

```bash
osty policy validate .osty/policy.yaml
```

Output, exit 0:

```text
valid osty.io/v1 FleetPolicy digest=sha256:87433aefdeae2d0b8d61cfe0ed7523a82977299520fed2aaa72b1f74b1942fe7
```

4. Gate a lockfile:

```bash
osty verify --lockfile package-lock.json --policy .osty/policy.yaml
```

Output with an empty cache, exit 1:

```text
verified package-lock.json (NPM_PACKAGE_LOCK): total=1 allowed=0 quarantined=1 blocked=0
  NPM left-pad@1.3.0 [PULL_DECISION_QUARANTINE_HOLD/SUPPLY_CHAIN_VERDICT_UNSPECIFIED]: no verified verdict in local cache; policy failure mode FAIL_CLOSED blocks unvetted pull
osty verify: lockfile verification blocked one or more dependencies
```

## Which binary runs where?

Table: Osty binaries you run, with license and entry command

| Binary | License | Runs in | Entry command |
| --- | --- | --- | --- |
| `osty` | Apache 2.0 | Laptops and CI jobs | `osty verify`, `osty stamp`, `osty policy validate` |
| `osty-edge` | Source-available | Your VPC or cluster | `osty-edge serve --policy <path>` |
| `osty-proxy` | Source-available | Next to `osty-edge`, in front of registries | `osty-proxy serve` |

All three build with `CGO_ENABLED=0`. Run `version` on any of them to print the build, and `--help` on any command or subcommand to print its flags.

## Where are the open-source repositories?

The Apache 2.0 parts of Osty are published by the [osty-dev GitHub organization](https://github.com/osty-dev).

Table: Public osty-dev repositories on GitHub

| Repository | What it holds |
| --- | --- |
| [osty-dev/osty](https://github.com/osty-dev/osty) | Releases of the `osty` CLI and the `osty-sensor` Linux host agent. |
| [osty-dev/osty-action](https://github.com/osty-dev/osty-action) | GitHub Action (`uses: osty-dev/osty-action@v1`) that runs `osty policy validate`, `osty verify` and `osty stamp`. |
| [osty-dev/supply-chain-benchmark](https://github.com/osty-dev/supply-chain-benchmark) | The 15-scenario adversarial benchmark dataset, fixtures and TLA+ models. |
| [osty-dev/agent-skills](https://github.com/osty-dev/agent-skills) | The `osty-security` Agent Skill that teaches coding agents to drive the `osty` CLI. |
| [osty-dev/homebrew-tap](https://github.com/osty-dev/homebrew-tap) | Homebrew tap for the `osty` CLI (`brew install osty-dev/tap/osty`). |

## How are these docs kept accurate?

A CI job builds `osty`, `osty-edge` and `osty-proxy`, starts this site's Cloudflare worker locally and fetches every `/docs` and `/integrations` page as Markdown. It then checks the commands and policy examples against the real binaries:

- Every shell command, including `run:` steps inside CI YAML, must name a real subcommand and pass only flags that the command's `--help` lists.
- Every inline command reference and every row of a flag table is checked the same way.
- Every `.osty/policy.yaml` example must pass `osty policy validate`. A single-section example is checked inside a complete policy.

Start the site's worker locally, then run the same check from a second terminal:

```bash
npm --prefix site run preview
python3 tools/aeo/exec_docs_check.py --base-url http://localhost:8787
```

## Frequently asked questions

### Is the osty CLI open source?

Yes. The `osty` CLI source, the `.osty/policy.yaml` schema and `osty-sensor` are Apache 2.0, with releases at [osty-dev/osty](https://github.com/osty-dev/osty). `osty-edge` and `osty-proxy` are source-available.

### Can coding agents drive the osty CLI?

Yes. The `osty-security` Agent Skill in [osty-dev/agent-skills](https://github.com/osty-dev/agent-skills) teaches Claude Code, Cursor, Codex and other agents the real `osty` commands and flags.

### Do I need osty-edge to use the CLI?

No. `osty policy validate`, `osty stamp` and `osty xray` run anywhere. `osty verify` and `osty explain` need an edge cache, which `osty-edge` or `osty airgap import` fills.

### Which Go version builds Osty?

The module targets Go 1.26, and all three binaries must build with `CGO_ENABLED=0`.

### Is every page available as Markdown?

Yes. Send `Accept: text/markdown` or append `.md` to any docs path, for example `/docs/cli.md`.

## Related pages

- [Policy and Ledger](https://osty.dev/policy-ledger): Git-pinned, non-executable `.osty/policy.yaml` enforced by `osty-edge` on every mutating command, tighten-only overlays, release gates and the hash-chained Ed25519 Evidence Ledger.
- [Architecture](https://osty.dev/architecture): Plane 1 (`osty-brain`), the control plane (`osty-control`, PostgreSQL 17, Temporal) and the thin edge (`osty-edge`, `osty-proxy`, `osty-sensor`), plus the accepted ADRs behind them.
- [Security](https://osty.dev/security): Public Brain, Private Execution trust boundaries, outbound-only mTLS, the three-tier licensing map, TLA+ models, adversarial benchmarks and what Osty is not.
- [Integrations](https://osty.dev/integrations): Runnable guides for GitHub Actions, GitLab CI, CircleCI, Artifactory, Kubernetes and GRC tools.

## See your fleet in 10 minutes

Connect a read-only GitHub App and cloud role. Osty installs nothing in your environment and writes nothing to your repositories, and the report shows false positives, stale deploys and unowned workloads.

Get a free X-Ray: https://osty.dev/xray

Written by Osty Engineering. Published 2026-11-29. Updated 2026-11-29.

Canonical: https://osty.dev/docs
