Skip to content

Docs

Osty documentation

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.

Written by Osty EngineeringPublished Updated

Osty reference pages and what each one covers
ReferenceCoversStart with
CLI referenceTen osty commands, every flag, exit codes and --json outputosty verify --lockfile package-lock.json
Policy referenceEvery .osty/policy.yaml key, autonomy levels and tighten-only overlaysosty policy validate .osty/policy.yaml
Edge and proxy referenceosty-edge serve and osty-proxy serve flags, routes and fail-closed pullsosty-proxy serve --dev
IntegrationsCI, registry, Kubernetes and GRC guidesosty verify in CI
Check your policy file
osty policy validate .osty/policy.yaml

How do I verify an Osty install in five minutes?

  1. 01Install 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.
  2. 02Save the policy below as .osty/policy.yaml in a repository.
  3. 03Run osty policy validate. It prints the digest that osty-edge pins.
  4. 04Run osty verify on a lockfile. With an empty edge cache, FAIL_CLOSED holds every dependency, which proves the gate is live.
1. Installbash
CGO_ENABLED=0 go install github.com/osty-io/osty/cmd/osty@latest
osty version
2. .osty/policy.yamlyaml
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 policybash
osty policy validate .osty/policy.yaml
Output, exit 0text
valid osty.io/v1 FleetPolicy digest=sha256:87433aefdeae2d0b8d61cfe0ed7523a82977299520fed2aaa72b1f74b1942fe7
4. Gate a lockfilebash
osty verify --lockfile package-lock.json --policy .osty/policy.yaml
Output with an empty cache, exit 1text
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?

Osty binaries you run, with license and entry command
BinaryLicenseRuns inEntry command
ostyApache 2.0Laptops and CI jobsosty verify, osty stamp, osty policy validate
osty-edgeSource-availableYour VPC or clusterosty-edge serve --policy <path>
osty-proxySource-availableNext to osty-edge, in front of registriesosty-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.

Public osty-dev repositories on GitHub
RepositoryWhat it holds
osty-dev/ostyReleases of the osty CLI and the osty-sensor Linux host agent.
osty-dev/osty-actionGitHub Action (uses: osty-dev/osty-action@v1) that runs osty policy validate, osty verify and osty stamp.
osty-dev/supply-chain-benchmarkThe 15-scenario adversarial benchmark dataset, fixtures and TLA+ models.
osty-dev/agent-skillsThe osty-security Agent Skill that teaches coding agents to drive the osty CLI.
osty-dev/homebrew-tapHomebrew 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 terminalbash
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. 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 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.

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.