# Opening your app on Osyrin

> `osy open` opens this project's app on Osyrin in your browser, or the app's page in Osyrin's Admin, and prints the address. It never asks a question, so Claude runs it for you after a deploy. `--print` and `--json` only print.

<!-- id: local-opening-your-app-on-osyrin · area: local · stability: preview · html: https://osysharp.com/reference/local/opening-your-app-on-osyrin/ -->

## Summary        {#summary}

`osy open` puts the app this project is linked to on Osyrin in front of you: it opens your browser at the app's address
and prints that address. `osy open --admin` opens the app's page in Admin instead, and `--page` one of its pages there.

## Signature      {#signature}

```syntax
osy open                                   # the app, at the address that serves people
osy open --env staging                     # the app in another environment it is placed in
osy open --admin                           # the app's page in Admin
osy open --admin --page logs               # …its Logs page (settings, people, logs or backups)
osy open --print                           # print the address only; open nothing
osy open --json                            # {"url": …, "app": …, "server": …, "admin": …, "page": …, "opened": false}
```

## Description    {#description}

**Which app.** The one the project's `osyrin.json` is linked to — the link `osy deploy` records when a deploy is served.
A project that is not linked says `… is not on Osyrin yet. Ask Claude to put it on Osyrin, or run osy deploy.` and opens
nothing.

**Which address.** The one Osyrin gives the app's environment — its public name on the scheme and port its zone's gateway
answers on — which is the one `osy deploy`, `osy link` and `osy apps` print, so the four agree. `--env <slug>` opens the
app in another environment it is placed in (`<app>--<env>.<domain>`), and `--admin` opens `/org/<organization>/apps/<app>`
on the installation's Admin. `--page people` is the app's Access page.

**Not signed in, it signs you in.** Every form asks Osyrin, so with no sign-in for the linked server (or one that has
ended), `osy open` first opens your browser on Osyrin's sign-in — the same sign-in as `osy login` — and then opens the
app. Where no browser can be opened it stops at once and says to run `osy login`.

**Run by Claude.** In a Claude Code session you ask in words ("open it", "open its logs") and Claude runs `osy open`. It
reads no input and opens your browser the same way `osy launch` does for the app on your computer. It prints the address
either way, because a browser that was handed an address is not proof a window is in front of you. In a session with no
screen, `--print` gives the address without opening anything.

## Examples       {#examples}

```syntax
osy open
#   ✓ Opened keeper-acme: https://keeper-acme.osyrin.app

osy open --admin --page backups --print
#   https://admin.osyrin.app/org/acme/apps/keeper-acme/backups
```

## See also       {#see-also}

[Deploying your app to an environment](https://osysharp.com/reference/local/deploying-your-app/) — the deploy that links the project and serves the app.

[Publishing a project to Osyrin](https://osysharp.com/reference/local/publishing-to-osyrin/) — `osy link`: is this project on Osyrin, and has it changed since.

[Signing in to Osyrin](https://osysharp.com/reference/local/signing-in-to-osyrin/) — `osy login`, which `--admin` and `--env` need.
