# Finding the right tool

> Which osy verb answers the situation you are in — a test failed, a page is slow, a deploy failed, is this secure, does the UI look right, will this migration keep my data, what does this code mean, what does my app cost — with one line on what each tells you and a line to type. (The tools an Osy# agent can call are osy docs tools.)

<!-- id: local-finding-the-right-tool · area: local · stability: stable · html: https://osysharp.com/reference/local/finding-the-right-tool/ -->

<!-- Rendered from Platform.Cli/Infrastructure/ToolMap.cs and the CLI's command table; never edit by hand. Rewrite it with:
     OSY_REGEN_TOOLS_PAGE=1 scripts/run-tests.sh --filter 'FullyQualifiedName~ToolMapTests.ThePage_IsWhatTheMapAndTheCommandTableRender' -->

## Summary        {#summary}

`osy` has many verbs, and the one you need is usually one you have not met. Say what you are doing and `osy help`
prints the verbs for it: what each tells you, and a line to type. It reads only this map — no network, no model.

## Signature      {#signature}

```text
osy help a test failed        the best one or two situations below, for your words
osy help slow page
osy help                      every situation the map has
osy help --all                every verb by task, with its flags (--json for a tool)
osy --help                    every verb by task, one line each
```

## Description    {#description}

Each section below is one situation. Its table names the verb, says what it tells you, and gives a line to type;
`osy help <words>` matches your words against these situations and prints the closest. The last table lists every
verb this osy has, under the same task groups `osy --help` uses — it is read from the CLI's own command table, so a
verb that exists is on it and a verb that is on it exists.

A failure points at the right verb where it happens, too: a failed test names `osy inspect`, `osy logs` or
`osy explain` for its own shape, a span over its budget names `--cost-report`, a failed deploy names `osy status`.

## A test failed — why? {#a-test-failed}

| Verb | What it tells you | Example |
|---|---|---|
| `osy test` | Re-runs just the red one once you have changed something; the report under it names the next command for that failure | `osy test --test 'Shop.Checkout'` |
| `osy inspect` | The recorded fault of the run: the throw site, the call stack and the values in scope there | `osy inspect <traceId> --fault` |
| `osy logs` | Client and server lines under one correlation id — the cause of a UI test that only saw the screen | `osy logs --since 10m --errors` |
| `osy explain` | Who may read and write an entity, in words — the answer when the failure is a refusal | `osy explain Order` |
| `osy trace` | Records every step of the next runs, when the fault alone does not say how it got there | `osy trace start` |
| `osy debug-test` | One test under a debugger in your editor (a DAP pipe — not for a terminal) | `osy debug-test --test 'Shop.Checkout'` |

Also asked as: test, tests, failed, failing, fails, red, assert, assertion, error, errored, broken.

## Is my app green, and ready to ship? {#is-it-green}

| Verb | What it tells you | Example |
|---|---|---|
| `osy check` | Validate, lint and test as one verdict, printing only what failed | `osy check` |
| `osy validate` | Parse, resolve and emit — whether the compiler accepts the source, no server | `osy validate` |
| `osy lint` | Production best-practice rules; a MUST is a defect the platform can see | `osy lint --strict` |
| `osy drill` | Reliability in a real browser: double submit, two people on one row, the server killed mid-commit, dependencies down | `osy drill` |

Also asked as: green, ready, ship, pass, passes, valid, compiles, done, check, verdict, production, lint, best, practice, drill, reliable, reliability.

## Why is a page slow, or costing too many statements? {#slow-page}

| Verb | What it tells you | Example |
|---|---|---|
| `osy test` | Each test's statements and the spans it named, with their budgets; `--cost` lists the Osy# lines the SQL came from | `osy test --filter Orders --cost` |
| `osy test` | The run's costs as one JSON document: every span's statements, budget, how far over, its heaviest lines | `osy test --cost-report cost.json` |
| `osy test` | Every routed page must declare a [PageBudget]; a declared one is held on every run | `osy test --page-budgets` |
| `osy usage` | What the app really used here — CPU, egress, statements; per function or per page | `osy usage --functions` |
| `osy logs` | The slow calls, by how long they took | `osy logs --since 30m --slow 500` |

Also asked as: slow, page, statements, queries, query, sql, n+1, round, trips, budget, span, performance, fast, speed, latency, over.

## Why did a deploy fail? {#deploy-failed}

| Verb | What it tells you | Example |
|---|---|---|
| `osy status` | Where the app runs, the version it serves, and how its recent deployments went — with the reason for one that failed | `osy status --server https://osyrin.app --app my-app` |
| `osyrin app logs` | The deployed app's own errors | `osyrin app logs --app my-app --server https://osyrin.app --since 1h --errors` |
| `osy migration explain` | What each statement of the .migration a refused deploy carried does, in words | `osy migration explain migrations/next.migration` |
| `osy versions` | The app's versions and the workflow runs still in flight on each | `osy versions` |
| `osy cancel-runs` | Stop every run still in flight against a bad version | `osy cancel-runs` |

Also asked as: deploy, deployed, deployment, publish, failed, rollout, served, release, zone, osyrin, cloud, environment, production.

## Is this secure — who can read and write what? {#is-it-secure}

| Verb | What it tells you | Example |
|---|---|---|
| `osy explain` | The declared security in plain English, per entity, field masking included; `--sql` the SQL a read compiles to | `osy explain --sql --as anonymous` |
| `osy check` | Also proves the access rules with tests the platform writes, under `--access` | `osy check --access` |
| `osy lint` | The security rules among the best-practice rules — a tenant's rows open to every account, a signup that administers everything | `osy lint` |
| `osy policy` | Your organization's policy as it binds this app, and how to ask for an exception | `osy policy` |
| `osy egress` | Where the app has actually tried to go — read before closing it down | `osy egress observed` |

Also asked as: secure, security, safe, access, permission, permissions, denied, refused, who, read, write, role, roles, leak, policy, egress, secret.

## Does the UI look right? {#ui-looks-right}

| Verb | What it tells you | Example |
|---|---|---|
| `osy shot` | One page photographed in a real browser — signed in, on a seed, at a phone's width — and the PNG's path | `osy shot /orders --as ada --width 390` |
| `osy test` | UI tests in a real browser, each screen photographed into osy-shots/ | `osy test --pixels` |
| `osy shots` | A contact sheet of every screen `osy test --pixels` photographed, naming routes with none | `osy shots` |
| `osy design` | The concept in DESIGN.md checked, and which stock look the theme falls into; `critique` puts your shots beside references | `osy design check` |
| `osy launch` | The app in your browser on the local platform; `--dev` its seeds and sign-in-as | `osy launch --dev` |

Also asked as: ui, look, looks, screen, screenshot, picture, page, layout, design, visual, pixels, phone, mobile, photo, theme, pretty.

## Will this migration keep my data? {#migration-keeps-data}

| Verb | What it tells you | Example |
|---|---|---|
| `osy migrate prove` | On a throwaway platform: one run parked at every state of the old version, the new one minted with its .migration, a verdict per state | `osy migrate prove --from HEAD` |
| `osy migration explain` | Each statement of a .migration in words, marking what the deploy only guessed | `osy migration explain migrations/next.migration` |
| `osy migrate` | Moves workflow runs left on an older version onto the current one | `osy migrate --dry-run` |
| `osy migrate code` | Rewrites the retired forms a project written for an older osy still uses | `osy migrate code --dry-run` |
| `osy import` | Loads the app's rows (data/**/*.json); rows are matched by key, so re-running is safe | `osy import` |

Also asked as: migration, migrate, migrations, data, keep, lose, loss, schema, upgrade, workflow, runs, states, prove, import, rows.

## What does this code mean, and what does my app declare? {#what-code-means}

| Verb | What it tells you | Example |
|---|---|---|
| `osy model` | The resolved model: entities, wired relations, security posture, each function's effects, theme tokens | `osy model --json` |
| `osy docs` | The Osy# reference, offline — a topic, a name, or a question | `osy docs "hash a password"` |
| `osy kit` | Every UI control with its signature and an example; `kit atoms` the renderer's primitives | `osy kit Card` |
| `osy source` | A capability's own source, or the one declaring a type | `osy source Osysharp.Memory` |
| `osy query` | One Osy# expression evaluated against the running app | `osy query "Order.Count()"` |
| `osy explain` | The security part, in plain English | `osy explain` |

Also asked as: mean, means, code, declare, declares, model, entity, entities, symbol, symbols, understand, explain, kit, control, write, spell, docs, reference.

## What does my app cost to run? {#what-it-costs}

| Verb | What it tells you | Example |
|---|---|---|
| `osy usage` | CPU, egress and database statements measured on this computer | `osy usage` |
| `osy usage` | How close the app came to what a free application may do | `osy usage --free` |
| `osyrin app plan` | The deployed app's meters this month against what its plan includes | `osyrin app plan --app my-app --server https://osyrin.app` |
| `osyrin app usage` | With --functions: the deployed app's calls, statements, rows and CPU per function per day | `osyrin app usage --functions --since 7d --app my-app --server https://osyrin.app` |

Also asked as: cost, costs, price, plan, usage, use, used, cpu, egress, limit, limits, free, allowance, bill, money, spend.

## Why is a workflow run not moving? {#why-not-moving}

| Verb | What it tells you | Example |
|---|---|---|
| `osy workflow-runs` | What is in flight: which workflows, on which version, parked where | `osy workflow-runs --runs` |
| `osy workflow-run` | One run: its state, its waits, who may act, what happens next — `--raise` steps it | `osy workflow-run <id>` |
| `osy clock` | Moves the running app's now, to see what is due later | `osy clock advance 1d` |

Also asked as: workflow, run, runs, stuck, parked, waiting, moving, flow, state, timer, clock, later, due.

## Which verb does what? {#every-verb}

| Task | Verb | What it does |
|---|---|---|
| Develop | `osy init` | Initialize an Osyrin project for an AI coding agent (claude \| agent) |
| Develop | `osy validate` | Validate .osy files locally (parse + resolve, no server needed) |
| Develop | `osy compile` | Compile the project's source into the app on the local platform (osyrin dev) |
| Develop | `osy launch` | Open the project's app in a browser on the local platform (osyrin dev) |
| Develop | `osy serve` | Serve this app at the root of a port in the foreground (default :3000) |
| Develop | `osy studio` | Open Studio: build an app by describing it, in your browser, with your own Claude Code (`osy studio stop`… |
| Develop | `osy model` | Show the RESOLVED model — bound types, wired relations, security posture, function effects |
| Develop | `osy symbols` | Show the symbol summary (entities/enums/functions/workflows/clients/values) for .osy files |
| Develop | `osy docs` | Look up the Osy# reference |
| Develop | `osy kit` | What the bundled UI kit ships |
| Develop | `osy kit from-npm` | Start a control kit from an npm package |
| Develop | `osy kits` | The kits (packages) in scope |
| Develop | `osy kits check` | Check a kit composes: KIT_REFERENCES_SIBLING (it uses no other vertical it does not complete),… |
| Develop | `osy kits find` | Find kits by what they do: `kits find "ask customers how it went"` |
| Develop | `osy kits new` | Start a LOCAL kit in kits/<name>/ |
| Develop | `osy theme` | Everything this app's theme advertises |
| Develop | `osy source` | Read a capability's source |
| Develop | `osy compose` | What kits give together and what is LEFT for you: `compose Osysharp.SatisfactionSurveys… |
| Develop | `osy translate` | Translate the app's text: --to sv,de writes locales/<lang>.osy + a request and prompt for any model |
| Develop | `osy import-api` | Import an OpenAPI spec and generate an Osyrin file |
| Develop | `osy seam` | Seams a provider implements |
| Develop | `osy seam generate` | Write the C# interface and classes for IBlobStore, IEntitySource or IExportSink, stamped with its seam hash |
| Develop | `osy control` | Author-side foreign UI controls |
| Develop | `osy control validate` | Statically validate a bundled control shim (exports mount, control block, size cap) |
| Develop | `osy control add` | Validate, vendor and PIN a control shim + its control block into this project |
| Develop | `osy control build` | Bundle each control's pinned source with esbuild and re-pin its hash (--watch to follow changes) |
| Develop | `osy font` | Web fonts this app ships — register one and the theme's family finally renders |
| Develop | `osy font add` | Vendor and PIN a font file for this app, e.g |
| Develop | `osy font remove` | Stop shipping a font family |
| Develop | `osy font list` | List the fonts this app ships, and whether each file is still present |
| Develop | `osy font find` | Find an open-source family by its character |
| Develop | `osy font kits` | List the fonts the kits in scope already ship, with their licence |
| Develop | `osy get` | Fork a kit control into ui/lib/ (e.g |
| Develop | `osy diff` | Show how your ui/lib/ forks differ from the kit's current source |
| Develop | `osy update` | Re-pin kits within their declared major and rewrite osyrin.lock |
| Develop | `osy lock` | Resolve `use` pins and (re)write osyrin.lock |
| Develop | `osy restore` | Fetch every package and catalog answer this project needs into the package cache, so lock/validate/test run… |
| Develop | `osy package` | Author a publishable Osy# package |
| Develop | `osy package pack` | Build the package archive from package.osy and print its content address |
| Develop | `osy package bump` | Bump a kit to its next major and re-pin every project of the workspace that uses it (--major) |
| Develop | `osy package fetch` | Resolve, download and cache a package from GitHub (`Owner.Name@1`) |
| Develop | `osy package publish` | Validate, build and publish this package as a GitHub Release (--dry-run to check only) |
| Develop | `osy package search` | Find a published package and the `use` line that depends on it |
| Develop | `osy package check` | Run the server's per-archive checks over archive files, offline |
| Develop | `osy search` | Find a published Osy# package |
| Develop | `osy publish` | Publish this package as a GitHub Release |
| Develop | `osy restructure` | Plan moving a package's top-level functions, constants, policies and classes into the types they are about |
| Test and debug | `osy check` | validate + lint + test as ONE verdict, printing only what failed |
| Test and debug | `osy lint` | Check an app against production best-practice rules (the maturity signal) |
| Test and debug | `osy test` | Run the project's .osy tests against the local platform (osyrin dev) |
| Test and debug | `osy test-slot` | Run any command in the machine's fair test queue: takes a ticket, passes the command's exit code through,… |
| Test and debug | `osy debug-test` | Debug one .osy test against the local platform (osyrin dev) via DAP |
| Test and debug | `osy debug-flows` | List the running/parked flows a debugger may attach to on the local platform |
| Test and debug | `osy debug-attach` | Attach a debugger to a local flow (--continuation <id>, or omit to debug a page live) |
| Test and debug | `osy inspect` | Inspect what actually happened when the code ran: list traces, open one, or jump to the fault (--json for… |
| Test and debug | `osy trace` | Turn step recording on/off for local execution traces (`osy trace start\|stop`) |
| Test and debug | `osy logs` | Read this project's app logs from the local platform (--tail to follow) |
| Test and debug | `osy run` | Run one of the app's own functions on the local platform (--as <login> to run as a user) |
| Test and debug | `osy query` | Evaluate one Osy# expression against the app and print what it answered (--as <login> to read as a user) |
| Test and debug | `osy seed` | Load a dev seed — a [TestFixture, DevSeed] world — into the running local app (omit the name to list them) |
| Test and debug | `osy clock` | Move the running local app's clock to see what is due later: `advance 1d`, `set 2026-11-03T09:00`, `reset` |
| Test and debug | `osy drill` | Reliability drills in a real browser: double submit, two people editing one row, the server killed… |
| Test and debug | `osy workflow-runs` | Show what workflow work is in flight: which workflows, on which version, parked where (--runs to name them) |
| Test and debug | `osy workflow-run` | Why is ONE run not moving: its state, its waits, WHO MAY ACT, what happens next |
| Performance | `osy usage` | What this project's application actually used |
| Security | `osy explain` | Explain an app's declared security in plain English |
| Security | `osy policy` | Your organization's policy as it binds this app |
| Security | `osy policy egress` | Outbound hosts: what your organization allows, this app's hosts against it, how to ask |
| Security | `osy policy packages` | Approved and required packages: this project's pins against them, how to ask |
| Security | `osy policy secrets` | Keyed secrets written at run time (`secrets.runtime`): which ones your organization lets its apps write… |
| Security | `osy policy models` | AI models: which models a call may be sent to and the most tokens a month (`Osysharp.Llm`), what your code… |
| Security | `osy policy agents` | Agents: the least an agent does before it changes, sends, spends or reaches out (`Propose` or stricter |
| Security | `osy policy audit` | Audit: the trails your organization keeps on and the fewest days they are kept, whatever `app.Audit` says |
| Security | `osy policy settings` | Other governed settings: locks and ranges (never a text value), how to ask |
| Security | `osy policy request` | Ask for an exception to a rule of your organization's policy |
| Security | `osy egress` | Control which hosts this app is allowed to reach |
| Security | `osy egress observed` | Where this app has ACTUALLY tried to go |
| Security | `osy egress list` | Show the rules in force, including any your organization set (which you cannot change) |
| Security | `osy egress allow` | Allow a host — ⚠ the FIRST allow closes the app: only allowed hosts get through |
| Security | `osy egress deny` | Deny a host, whatever else allows it |
| Security | `osy egress remove` | Drop every rule naming a host, whichever effect it had |
| Security | `osy secret` | Give this project's declared secrets their values on this machine |
| Security | `osy secret list` | List the secrets this app declares and which still have no value here |
| Security | `osy secret set` | Set a secret's value in the project's gitignored .secrets (and apply it to a running local app) |
| Security | `osy user` | Seed the app's own accounts, with the roles you give them |
| Security | `osy user add` | Add an account to the app with the roles you name (--role, required), or --via-signup to run the app's own… |
| Security | `osy user set-password` | Give an existing account a new password (--password-file, --password-stdin or the prompt |
| Security | `osy user apikey` | Mint and retire the app's own REST API keys |
| Security | `osy user apikey generate` | Mint an API key for one of the app's accounts, printed once |
| Security | `osy user apikey revoke` | Revoke an account's API key(s) (--secondary drops only the rotation key) |
| UI review | `osy shot` | Photograph one page of the app in a real browser |
| UI review | `osy shots` | Build a contact sheet from osy-shots/ |
| UI review | `osy design` | Design — look at references, check the concept and the theme, critique the screenshots against agent-made… |
| UI review | `osy design look` | Render a page wide (1440×900) and on a phone (390×844) into design/refs/, with the faces it really loads |
| UI review | `osy design check` | Check the concept in DESIGN.md (idea, grid, type pairing with its reason, signature) and name the stock… |
| UI review | `osy design critique` | Put your screenshots beside your references and the typical agent-made pages, and say which they sit closer to |
| UI review | `osy photo` | Photographs for the app — searched, licence shown, downloaded and credited |
| UI review | `osy photo find` | Find licence-clear photos of a subject (several wordings, top results skipped, one per photographer) |
| UI review | `osy browser` | The browser screenshots are taken with: `status` says what is missing, `install` adds it once for every… |
| Data and migrations | `osy import` | Load the app's data (data/**/*.json) into the local platform |
| Data and migrations | `osy import-schema` | Generate entities for the tables a registered data source holds |
| Data and migrations | `osy migration` | Read a .migration before it goes with a deploy |
| Data and migrations | `osy migration explain` | Say what each statement of a .migration does, mark what the deploy only guessed, and refuse a file that… |
| Data and migrations | `osy migrate` | Move workflow runs left on an older version onto the current one (--dry-run to preview) |
| Data and migrations | `osy migrate code` | Bring a project written for an older osy up to this one: rewrite the retired forms it writes (Zone, role:… |
| Data and migrations | `osy migrate prove` | Prove a workflow change's migration before it ships: on a throwaway local platform, park one run at every… |
| Deploy and operate | `osy deploy` | Deploy the app into one of its organization's environments: built here, rebuilt and served by the… |
| Deploy and operate | `osy status` | Show where the app runs, which version it serves, and how its recent deployments went |
| Deploy and operate | `osy link` | Is this project on Osyrin? The app it is linked to, the version served, and whether the source changed… |
| Deploy and operate | `osy open` | Open this project's app on Osyrin in your browser, or its page in Admin (--admin [--page… |
| Deploy and operate | `osy apps` | Your organizations' apps on Osyrin |
| Deploy and operate | `osy preview` | This app and the platform's previews |
| Deploy and operate | `osy preview check` | This app's own check of a preview, which an environment that waits for it needs green before it moves onto… |
| Deploy and operate | `osy preview check report` | Report the check of a preview: `osy preview check report --version 0.21.0-preview.33 --green`, or `--red… |
| Deploy and operate | `osy versions` | Show the app's versions and what is still running against each one |
| Deploy and operate | `osy cancel-runs` | Stop every workflow run still in flight against one version (a bad-deploy abort) |
| Deploy and operate | `osy app` | Read an app model file (.osyapp) |
| Deploy and operate | `osy app inspect` | Print an .osyapp's manifest and what each section holds |
| Deploy and operate | `osy app verify` | Check an .osyapp: file hash, platform floor, and every section's hash and decode |
| Deploy and operate | `osy app diff` | What changed between two .osyapp files, row for row |
| Deploy and operate | `osy stop` | Stop the local platform serving this project (started on demand by compile/test/launch) |
| Deploy and operate | `osy instances` | List the local platform instances on this machine, and which are running |
| Deploy and operate | `osy instances prune` | Stop and remove idle throwaway local platforms (default: no request for 2h), cached CLI builds nothing… |
| Deploy and operate | `osy remove` | Remove an app and its databases from a LOCAL platform instance (a final backup first) |
| Account | `osy login` | Sign in to Osyrin in your browser |
| Account | `osy logout` | Sign out of Osyrin on this computer |
| Account | `osy whoami` | Who you are signed in to Osyrin as |
| This toolchain | `osy help` | Which verb for what you are doing: `osy help a test failed` · `osy help slow page` |
| This toolchain | `osy upgrade` | Replace this osy with a newer release |
| This toolchain | `osy whats-new` | The release notes of the newest osy, or of a version you name |
| This toolchain | `osy skills` | The Claude Code skills for Osyrin Cloud that ship with this osy |
| This toolchain | `osy skills list` | List the bundled skills and where each is installed (for every project, or this one) and whether it is current |
| This toolchain | `osy skills install` | Install the skills for every project (~/.claude/skills), or with --project into this one |
| This toolchain | `osy skills remove` | Remove the bundled skills from every project, or with --project from this one |
| This toolchain | `osy setup` | Connect a coding agent to Osyrin: claude, codex or cursor |
| This toolchain | `osy vscode` | Set up the Osy# editor extension for local development |
| This toolchain | `osy vscode install` | Install the bundled Osy# extension into VS Code (or Cursor/VSCodium/Windsurf) |
| This toolchain | `osy telemetry` | on · off · status — anonymous usage statistics (osy docs project-statistics) |
| This toolchain | `osy bug-reports` | ask · always · never · status |
| This toolchain | `osy feedback` | Open a prefilled issue on the public tracker |

## See also       {#see-also}

- [Checking your app](https://osysharp.com/reference/local/checking-your-app/) — `osy check` and `osy lint`, the verdict before you ship
- [Seeing what happened when your code ran](https://osysharp.com/reference/local/seeing-what-happened/) — `osy inspect` and `osy trace`, what the code did
- [Seeing what a page cost](https://osysharp.com/reference/local/seeing-what-a-page-cost/) — round trips and statements per call
- [Explaining your app's security](https://osysharp.com/reference/local/explaining-your-app/) — `osy explain`, security in words
- [Photographing a page](https://osysharp.com/reference/local/photographing-a-page/) — `osy shot`, one page in a real browser
- [Drilling your app](https://osysharp.com/reference/local/drilling-your-app/) — `osy drill`, reliability drills
- [Deploying your app to an environment](https://osysharp.com/reference/local/deploying-your-app/) — `osy deploy` and `osy status`
- [Reading what your application actually used](https://osysharp.com/reference/local/reading-what-your-app-used/) — `osy usage`, what the app used
