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
| Reference | Covers | Start with |
|---|---|---|
| CLI reference | Ten osty commands, every flag, exit codes and --json output | osty verify --lockfile package-lock.json |
| Policy reference | Every .osty/policy.yaml key, autonomy levels and tighten-only overlays | osty policy validate .osty/policy.yaml |
| Edge and proxy reference | osty-edge serve and osty-proxy serve flags, routes and fail-closed pulls | osty-proxy serve --dev |
| Integrations | CI, registry, Kubernetes and GRC guides | osty verify in CI |
osty policy validate .osty/policy.yamlReference pages
- CLI referenceEvery
ostycommand, subcommand and flag, with exit codes, environment defaults and--jsonoutput. - Policy referenceEvery
.osty/policy.yamlkey, the four autonomy levels, theVERIFIED_PRcap on LLM edits and the tighten-only overlay rules. - Edge and proxy reference
osty-edge serveandosty-proxy serveflags, environment defaults, registry routes, health endpoints, fail-closed pulls and the kill switch. - IntegrationsRunnable guides for GitHub Actions, GitLab CI, CircleCI, Artifactory, Kubernetes and GRC tools.
How do I verify an Osty install in five minutes?
- 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/ostyor download a release from osty-dev/osty. - 02Save the policy below as
.osty/policy.yamlin a repository. - 03Run
osty policy validate. It prints the digest thatosty-edgepins. - 04Run
osty verifyon a lockfile. With an empty edge cache,FAIL_CLOSEDholds every dependency, which proves the gate is live.
CGO_ENABLED=0 go install github.com/osty-io/osty/cmd/osty@latest
osty version.osty/policy.yamlyamlapiVersion: 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: trueosty policy validate .osty/policy.yamlvalid osty.io/v1 FleetPolicy digest=sha256:87433aefdeae2d0b8d61cfe0ed7523a82977299520fed2aaa72b1f74b1942fe7osty verify --lockfile package-lock.json --policy .osty/policy.yamlverified 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 dependenciesWhich binary runs where?
| 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.
| Repository | What it holds |
|---|---|
| osty-dev/osty | Releases of the osty CLI and the osty-sensor Linux host agent. |
| 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 | The 15-scenario adversarial benchmark dataset, fixtures and TLA+ models. |
| osty-dev/agent-skills | The osty-security Agent Skill that teaches coding agents to drive the osty CLI. |
| 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--helplists. - Every inline command reference and every row of a flag table is checked the same way.
- Every
.osty/policy.yamlexample must passosty policy validate. A single-section example is checked inside a complete policy.
npm --prefix site run preview
python3 tools/aeo/exec_docs_check.py --base-url http://localhost:8787Frequently 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.