Docs › Studio › Studio on your computer
Studio on a server
How to open the whole Studio of a server you reach with SSH in a window of its own, and work with your team in a shared Studio that operates your production machines.
Code that lives on a server is easiest to work on with Studio running there: the AI, builds, tests and git all run next
to the code. Studio on a server is reached only through SSH from your computer, and only by you and the people you
allow. The server must run Linux.
Open Studio on a server
- In the sidebar, open Devices and choose + Add a server….
- Pick a host from your SSH config.
- The first time, Studio sets itself up on the server in your own account, using your own SSH keys. Nothing needs to
be installed by hand.
You'll see: Studio on that server in its own window, titled with the server's name. Every space, app and service in
it is the server's.
Tip: the server stays in the Devices menu; a click opens it again, and its ⋯ has Forget this server.
Open a folder of code on a server
- Press Add a space → From existing code.
- Choose the computer and the folder.
- Press Open on myserver.
You'll see: the folder as a space in that server's Studio window.
From a terminal:
priorstates-studio --remote myserver ~/code/project
A shared Studio for your team
Many teams share a service account (for example svc) on a research or operations machine, and from there operate and
deploy to the production machines. Studio works the same way: your own Studio is where you make and try things, and the
shared machine runs one Studio as svc that the whole team opens together. Each person acts there as themself: their
own name in the record, on their git commits and on their AI sessions.
Connect to a shared Studio
- Choose Add a server… and pick the shared machine.
- In Account, type the shared account, for example
svc.
- Your AI goes with you. To use a different one there, choose Use a different one.
- Press Connect.
You'll see: the window and the Devices menu show it as 👥 ops1 (svc), and a **Shared · svc · *your role***
marker at the top.
From a terminal: priorstates-studio --remote ops1 --as svc.
If it doesn't work: Studio works with your SSH key on the account, sudo to the account, or your own login. If none
of these is set up, an administrator sets it up once (see the last section).
See who may do what, and who changed what
- Click the **Shared · svc · *your role*** marker.
- People and record shows who is connected now, and every change, with who made it and when.
| Role |
May |
| Viewer |
look: services, logs, history, the record |
| Operator |
look, and start, stop or restart services |
| Builder |
everything: build and change apps, deploy, AI sessions |
| Owner |
the account itself |
Buttons your role may not use are dimmed, with the reason.
Use your own AI there
An AI session you start in a shared Studio runs on your own sign-in, never the account's, so costs stay with you and
nobody else can use your subscription. It is dropped when you disconnect.
- If the marker shows ⚠️, you have no AI set up.
- In your own Studio, open This computer → Your AI and set it up.
- Connect to the shared Studio again.
Work on the team's apps
- Connect as a builder.
- Open the Team apps space that appears in your own Studio: it has the same apps as the shared Studio.
- Change an app on either side.
You'll see: the other side has the change shortly, committed under your name. Each person's own data in an app, and
anything that looks like a password or key, is never committed.
If two changes can't be combined: the space's Git dialog shows what to settle.
Bring in code from your company's git
- In the shared Studio, press Add a space → From a git repository.
- If the account has no access to your company's git, Studio asks whether to keep a copy on this machine. Say yes:
the code arrives once a builder's own Studio is connected.
- Commit and push in the space's Git dialog, as usual.
You'll see: pushes go on to the company's git. The Git dialog also shows any problem, such as a push refused
because a branch is protected. Your SSH keys are never passed to the shared machine.
Deploy to the production machines
The production machines your administrator lists are marked production for everyone in the shared Studio.
- Commit and push the code to your company's git. A deploy to production goes out only from pushed code, and the
record keeps the commit.
- Deploy as anywhere else; see Services and public addresses.
- Studio asks before a deploy, start, stop, restart or settings change there. Commands an AI wants to run there that
change something wait for a builder's Allow.
You'll see: the change in People and record. Nothing leaves the shared Studio: no Google Drive copy, no phone
pairing and no Gallery publishing.
Update a shared Studio
Opening a shared Studio never updates it, because it may be operating production.
- When ⬆ Update available shows at the top, press ⋯ beside the shared Studio in Devices.
- Choose Update Studio there.
Check on it from your phone
- On your phone, open My computer: it lists the shared Studios your computer connects to.
- Pick one. Viewers and operators read; builders can also ask the AI and run the project's commands.
This works while your computer is on.
Set up a shared Studio (administrators)
Connect once with Account filled in. Where people may not use sudo, an administrator who may does this; it sets
Studio up as the account and writes a first list of people.
Edit that list, shared.json in the account's ~/.config/priorstates-remote/ folder:
{
"account": "svc",
"viewers": ["@ops"],
"operators": ["@oncall"],
"builders": ["alice", "@research"],
"production": ["trade1", "trade2"],
"apps_repo": "git@git.company:team/studio-apps.git"
}
Names are user names; @name is a Unix group. Only the people named can reach the Studio at all. production lists
the production machines as the account's SSH config names them; nobody can take these marks off from the page.
apps_repo is the team's apps repository.
You'll see: changes take effect within seconds, with no restart.
Tip: when people log in as the account with their own SSH keys, each is named from their key's comment. The roles
are then guard rails and the record shows who did what; for a hard boundary, give people their own logins.