Get into your plugin's server
When Orbit hosts your plugin, you can get inside it: a terminal in your browser, a box for SQL on your plugin's own database, real SSH with your own keys, and a tunnel that lets a database tool on your computer reach that database. This guide covers each one, how an AI assistant you connect can do part of it for you with your approval, what is kept and what is lost, the limits, and who may use them.
Everything starts in the partner dashboard: open Hosting, choose your plugin, then the Console tab.
Before you start
- Orbit hosts the plugin and it is running. A stopped or paused plugin has nothing to connect to.
- Console and SSH is on for the plugin. It is on by default; the switch is on the plugin's Settings tab.
- You have Server access. Owners and admins of your partner account always have it. A staff member has it when the account owner switches it on for them in Settings, Team.
The terminal in your browser
On the Console tab, choose Terminal, then Open a terminal. You get a shell inside the running plugin, as the plugin's own user: bash when the image has it, sh otherwise.
On the Scale and Business plans your plugin runs two copies. Choose Copy 1 or Copy 2 before you open the terminal.
If the image has no shell at all, the terminal says so. Add /bin/sh to your image to use it; the database box and the tunnel work without it.
If the terminal says that Console and SSH start working after this plugin restarts, choose Restart beside the message, then open the terminal again. This happens once, to a plugin that was already running before Console and SSH were available.
What is lost at a deploy
Your plugin's container is built afresh from its image at every deploy and every restart. Anything you change in the terminal, such as an edited file, an installed package or a file in /tmp, is gone after the next deploy. Keep code in your repository, settings in environment variables, and files in storage. Use the terminal to look around and to try things, then make the change for real in your code.
The database box
On the Console tab, choose Database, then Open the database. Write SQL and press Run, or Ctrl+Enter (Cmd+Enter on a Mac).
- Your plugin's tables are listed beside the box. Choose one to start a query on it.
- A result is cut at 1,000 rows, 200 columns or 4 MB, whichever comes first. The box then says: "Orbit shows at most 1,000 rows, 200 columns and 4 MB of a result, so part of this one is not shown. Add a WHERE or a LIMIT, or select fewer columns, to see the rest."
- Each value is cut at 10,000 characters.
- A single row over 4 MB stops the query. The box says to select fewer columns or shorten long values, then opens the database connection again, which rolls back an open transaction.
- A statement stops after 30 seconds.
- One query runs at a time. The session keeps one connection, so
BEGINandCOMMITwork across queries. - Queries run as your plugin's own database user, so they can do exactly what your plugin can do, on live data.
The same limits apply to a query an AI assistant runs.
Your plugin's database is the one described in Storing your own data.
SSH from your computer
Add your key
Add your public key in the partner dashboard under Settings, Security, SSH keys.
- Key types: ed25519 (the best choice), ECDSA, and RSA of at least 3072 bits.
- Up to 10 keys per person.
- Orbit emails you and your account owner whenever a key is added.
Adding a key asks you to confirm it is you:
- With two-factor authentication on, enter the code from your authenticator app, or choose Text me a code if Orbit texts you your codes. One of your backup codes works too, and is what you use when your two-factor authentication is passkeys only.
- Without two-factor authentication, enter your password.
- If you sign in only with Google or Apple and have not turned on two-factor authentication, there is nothing Orbit can check. Turn it on first by adding a passkey under Settings, Security, and keep the backup codes it shows you.
A key belongs to you, not to a plugin. It opens every plugin you can reach, and nothing else.
To make an ed25519 key and print the public half to paste:
ssh-keygen -t ed25519 -C "you@example.com"
cat ~/.ssh/id_ed25519.pubConnect
Connect from your computer on the Console tab shows the command for your plugin, with a copy button. The login name is your plugin's id:
ssh <plugin id>@ssh.orbitcommerceplugins.netOn a plugin with two copies, <plugin id>.2 opens the second copy:
ssh <plugin id>.2@ssh.orbitcommerceplugins.netSSH gives you an interactive shell and the database tunnel. Running a single command (ssh host command), scp and SFTP are not supported: files copied in would be gone at the next deploy.
Keep a quiet connection open
Tell SSH to send a keepalive every minute, so a connection you are only reading stays open. Add this to ~/.ssh/config:
Host ssh.orbitcommerceplugins.net
ServerAliveInterval 60
Or add -o ServerAliveInterval=60 to the command.
Check the host key
The first time you connect, SSH shows the server's key fingerprint and asks whether to trust it. It must be this one:
ED25519 key fingerprint is SHA256:GATEWAY_HOST_KEY_FINGERPRINT_AT_RELEASE.
Connect from your computer lists the same fingerprint. If SSH shows a different one, do not connect, and tell us at developers@orbitcommerce.net.
The database tunnel
The tunnel lets a database tool on your computer, such as TablePlus, DBeaver or psql, reach your plugin's database.
-
On Connect from your computer, choose Create a database login. It shows a username, a password and a connection string once, so copy them. The login works for one hour.
-
Start the tunnel and leave it running:
ssh -N -L 5432:database:5432 <plugin id>@ssh.orbitcommerceplugins.net -
Connect your tool to
localhost, port5432, with the login, the database name it shows, and SSL required. Or use the connection string:postgresql://<username>:<password>@localhost:5432/<database>?sslmode=require
If something on your computer already uses port 5432, choose another local port, for example -L 15432:database:5432, and connect to port 15432.
The login runs as your plugin's own database user, so anything you create belongs to your plugin. Your plugin's permanent database password is never shown.
Let an AI assistant do it
An AI assistant connected to your partner account through Orbit's MCP server can work in your plugin for you: run a command, query the database, set an environment variable, and switch Console and SSH on or off. It can read without asking, but a command, SQL that can change data, an environment variable and the Console and SSH switch wait until you approve them in the partner dashboard.
Connect an assistant
Connect it as described in the partner connection. The permission for this is partner-hosting:console. It lets the assistant run commands and database queries in your plugins on Orbit hosting, end their console and SSH sessions, and ask to turn Console and SSH on or off. It never lets an assistant add SSH keys or make database passwords. Orbit's consent screen lists it under Live and permanent changes; turn that on to grant it.
Orbit offers this permission only to people with Server access, and the assistant can use it only while you still have Server access. Seeing your SSH keys and sessions uses the hosting read permission, partner-hosting:read. Setting an environment variable or restarting the plugin uses the hosting management permission, partner-hosting:manage.
What an assistant can do
| What | Tool | What it needs |
|---|---|---|
| See your SSH keys | list_ssh_keys | Nothing |
| See the sessions on a plugin: who, when and how each ended | list_access_sessions | Nothing |
| Run a read-only query | query_plugin_database | Nothing |
| Check on a request it made, and read the result | check_hosting_approval | Nothing |
| Run a command | run_plugin_command | Your approval in the dashboard |
| Run SQL that can change data | query_plugin_database with allowWrites | Your approval in the dashboard |
| Set an environment variable | set_env_var | Your approval in the dashboard |
| Turn Console and SSH on or off | set_console_access | Your approval in the dashboard |
| End a session: yours, or anyone's if you are an owner or admin | end_access_session | A yes in the conversation |
| Restart the plugin | restart_server | A yes in the conversation |
| Add or delete an SSH key, create a database login, or open a terminal, SSH or the tunnel | None | Not available to assistants |
A yes in the conversation means the assistant puts the change to you and goes ahead only when you say yes in your next message. Commands and queries need the same as in Before you start: the plugin running, Console and SSH on, and Server access for the person who connected the assistant.
Approve a request
When an assistant asks for something that needs your approval, nothing runs yet. The assistant waits about 50 seconds for you, then tells you the request is waiting for approval in the Orbit dashboard. It can check on it later with check_hosting_approval.
The request reaches you in three ways, and each one opens the Approvals page, under Hosting, Approvals:
- A banner on every page of the partner dashboard says "An AI agent is waiting for your approval." Choose Review.
- The bell shows "An AI agent is waiting for approval". Everyone on your partner account sees it, but only the person who connected the assistant can decide, so the request is not on anyone else's Approvals page.
- The plugin's Console tab says "An AI agent is waiting for your approval on this plugin." Choose Open Approvals.
The page lists the requests waiting for you, oldest first. For each one it shows:
- What it asks, such as Run a command or Run SQL that can change data. Every request except the Console and SSH switch is marked Changes data.
- The plugin and the AI connection that asked, and for a command, the copy and its time limit.
- The exact command, SQL or value, with every line numbered and the number of lines and characters above it. Characters that are normally invisible or that change the reading order are shown as highlighted codes, such as
U+200B, with a note saying so. - What approving it does. For a command: "It runs in the live plugin. Files it changes are lost at the next deploy; database changes are permanent."
- The time left, after Expires in.
Approve and Decline come after the text, so you scroll past all of it to reach them. Read all of it before you decide, and approve only what you would run yourself. If anything is not what you expect, choose Decline.
- A request waits 10 minutes. If nobody decides by then, it expires.
- Only the person who connected the assistant can approve or decline its requests. Another owner or admin cannot, and nor can Orbit staff.
- When you approve, Orbit checks again that you could do it yourself. A command or SQL that can change data needs Server access. An environment variable needs the Owner or Admin role, the roles that can change your plugins. The Console and SSH switch needs both.
- A declined or expired request never runs. Nor does a waiting request from an assistant whose connection you revoke under Settings, AI assistants: it is cancelled.
- When you approve, Orbit runs exactly what the page showed, once, and the assistant can read the result.
Approval covers what an assistant does through Orbit's MCP server. An assistant that runs tools on your own computer, such as ssh with your key, acts as you.
Environment variables
An assistant can ask to set an environment variable with set_env_var. The Approvals page shows the variable's name and its full new value. If the name changes how your plugin's code starts (NODE_OPTIONS, NODE_PATH, PATH, LD_PRELOAD, LD_LIBRARY_PATH, BASH_ENV, ENV, PYTHONPATH, PYTHONSTARTUP, or a name starting NPM_CONFIG_), the page warns that with a restart the value can run code in your live plugin.
The variable is saved when you approve it. Your plugin uses it from its next deploy or restart; the assistant can restart the plugin with restart_server, after your yes in the conversation. The value passes through the conversation, so set a secret yourself instead: open Hosting, choose your plugin, then the Settings tab, and in Environment tick Secret before you Save. Secrets are never shown again after you save them.
Read-only queries
A read-only query is one SELECT, WITH, SHOW, EXPLAIN, VALUES or TABLE statement, run in a PostgreSQL READ ONLY transaction as the plugin's own database role, for at most 30 seconds. It cannot change table data. It can read everything the plugin's role can read, keep a CPU busy and write temporary files and, through EXPLAIN ANALYZE, a table that is thrown away when the query ends, until the time limit, hold advisory locks, and call functions the role may call, including pg_cancel_backend and pg_terminate_backend on the plugin's own connections. Nothing it does outlives the query. A read-only query can also use a lot of the database server's memory. A function the plugin itself created can lock tables or run past the time limit, until Orbit ends the session about 2 minutes later.
Any other SQL needs your approval. Once you approve it, Orbit runs every statement in one transaction, as the plugin's own database role, and commits it. What it changes stays changed.
What is recorded
Each command or query an assistant runs is recorded as a session, like the ones you open yourself. Orbit's session record keeps whose assistant ran it, when it started and ended, how long it took, and that it came through an AI connection. It shows under Sessions on the Console tab as Command or Database query, marked "Through an AI connection." It also shows in the plugin's activity and in Orbit's audit log. The audit log also records each request for approval and how it ended, with the plugin and the AI connection. For an environment variable it keeps the name, not the value.
The session record does not keep the command or the SQL. Even so, never put a password, key or other secret in a command, or in SQL that needs approval: the text is shown on the Approvals page, and a command can also appear in Orbit's infrastructure logs.
Orbit keeps a command's output and a query's rows only so the assistant can read them, for at most 30 minutes, and no other AI connection can read them.
Limits
| Limit | Value |
|---|---|
| Longest session | 1 hour |
| Without input | A session ends after 15 minutes, with a warning a minute before |
| Open sessions per person | 3 |
| Open sessions per plugin | 5 |
| Database login | Works for 1 hour |
| Result of one query | 1,000 rows, 200 columns or 4 MB, whichever comes first |
| Time for one statement | 30 seconds |
When a session ends you can open a new one straight away.
Limits for AI assistants
These apply to what an AI assistant does through Orbit's MCP server. Its commands and queries do not count towards the open sessions above.
| Limit | Value |
|---|---|
| Commands per plugin | 30 a minute |
| Queries per plugin | 30 a minute |
| Commands running at once on a plugin | 5 |
| Queries running at once on a plugin | 3, of which at most 2 read-only |
| Length of a command | 4,000 characters |
| Time for a command | 60 seconds, or up to 120 if the assistant asks |
| Output of a command | 64 KB, standard output and errors together |
| Length of SQL | 100,000 characters, or 20,000 for SQL that can change data |
| Value of an environment variable | 8,192 characters |
| Requests waiting for approval | 5 per AI connection, 10 per plugin |
| Requests for approval | 20 per AI connection in 10 minutes |
| Time to approve | 10 minutes |
A command still running at its time limit is stopped. Orbit keeps the first 64 KB of its output; past that, it closes the command's session, so the command reports no exit code. Orbit can also turn a query away for a moment while it runs many at once, including several of yours: wait for one to finish and try again.
Who has access
| Who | Console, database, SSH and tunnel | See sessions | End sessions |
|---|---|---|---|
| Owner or admin | Yes | Yes | Anyone's, on your plugins |
| Staff with Server access | Yes | Yes | Their own |
| Staff without Server access | No | No | No |
| Orbit staff, including support access | No | Yes | Yes |
| AI assistants | Commands and database queries only, as in Let an AI assistant do it | Yes, and the SSH keys of the person who connected them | As that person could, after a yes in the conversation |
Every session is recorded: who opened it, when, from where and for how long. It shows under Sessions on the Console tab, in the plugin's activity, and in Orbit's audit log. What you type is not recorded.
Orbit staff on support access can see your SSH keys but cannot add or delete them.
Removing someone from the team, changing their role, switching off their Server access, or deleting the SSH key they used ends their open sessions at once.
Turning it off
Console and SSH on the plugin's Settings tab turns all of this off for that plugin. While it is on, your plugin's container is writable, because the console cannot run in a read-only one. Turning it off makes the container read-only again and ends any open session. Either change restarts the plugin with no downtime.
An AI assistant can ask to turn Console and SSH on or off with set_console_access, if the person who connected it is an owner or admin. Nothing changes until that person approves it on the Approvals page, where it shows as Turn Console and SSH on or Turn Console and SSH off. While Console and SSH are off, an assistant's commands and queries are refused.
If Orbit suspends your plugin
Orbit can suspend a plugin, for example while a reported problem is looked into. While it is suspended:
- Console, SSH and AI tools stop at once, and open sessions end.
- Changes to its hosting are refused: deploys, rollbacks, builds, restarts, switching to your own hosting, environment variables, settings, domains and moves, and copying its stored files. The API answers
409with the codePLUGIN_SUSPENDED. - You can still read and download logs, read metrics and deployments, update your payment method, confirm customer data erasure requests and revoke your registry logins.
- You can still stop its hosting and deprecate the plugin. Stopping ends your bill at the close of the billing period for a plugin on a server of its own; a server that other plugins share keeps running. Hosting cannot be started again while the plugin is suspended, and a deprecated plugin cannot be restored.
- You cannot download its database export or copy its stored files while it is suspended, whether its hosting is running or has stopped. Orbit keeps them while the plugin is suspended. If Orbit restores it, you have at least 7 days to download them before they are deleted.
- The plugin keeps running as it was.
Everything works again when Orbit restores the plugin. Contact Orbit support if you have questions.