Getting started with the Orka3 API. Learn the basic operations and how to get help. The ultimate quick start If you want to skip the detailed explanations, just run through these steps on your own:Documentation Index
Fetch the complete documentation index at: https://docs.macstadium.com/llms.txt
Use this file to discover all available pages before exploring further.
- Get an authentication token from the Orka3 CLI.
- List your nodes and check their state in the response.
- List the available VMs with the API.
- Deploy your first VM instance.
- Run Apple Screen Sharing to connect to the VM instance. Use
vnc://<VM-IP>:<Screenshare-port>with the IP and port from the deploy response from Step 4. Use theadmin/admincredentials. - Once you login be sure to change the login credentials, apply the latest OS updates, and install (or upgrade) the Orka VM Tools for added security and functionality.
- Commit or save the changes to a new base image (use the VM name from Step 4).
- Deploy another VM instance.
- Run Apple Screen Sharing and connect to the newly deployed VM. Use the connection information returned in Step 8.
- Delete your VM instances.
- List your VMs.
- Advanced users
- Users with workflows that require automation
Before You Begin
- Make sure you can access the account for your cluster in the MacStadium Customer Portal. See Cluster Access Management: Overview.
- Get your VPN connection information from your IP Plan. You can download it from the MacStadium portal.
- Connect to your Orka cluster via VPN.
- Download and install a VPN client. Note that if you’re using a custom Orka domain, you might need to make some additional configuration changes.
- Use the server address and credentials from the VPN section at the top of your IP Plan.
Some Orka3 API Basics
- You need to target your Orka API URL in your API calls.
- You need to provide the
Authorization: Bearer <TOKEN>header in your API calls.
What’s Your Orka API URL?
You can get your Orka API URL from your IP Plan:- It’s the
.20address for yourPrivate-1network (usually10.221.188.20), prefixed withhttp. For example:http://10.221.188.20. - You can also use
https://<orka-domain>andhttps://<custom-domain>(if configured). To get the Orka domain for your Orka cluster, contact MacStadium support. To use an external custom domain, see here.
http://<orka-IP>, https://<orka-domain>, and https://<custom-domain> interchangeably in your workflows.
- The Orka3 API is a RESTful API and conforms to enterprise industry standards.
Get a Token from the Orka3 CLI
For all API calls, you need to provide theAuthorization: Bearer <TOKEN> header. The Orka3 API currently does not let you log in from it directly and obtain a token. You will need to obtain your token from the Orka3 CLI.
Orka lets you log in with your MacStadium Customer Portal credentials. Based on the role configured in the Customer Portal, you will have administrative or regular user privileges. By default, you will have access to the orka-default namespace. If you have been added to additional role bindings, you might be able to access additional namespaces.
orka3 commands. Your token is stored locally in the ~/.kube/config file. Personal tokens (SSO login) are valid for one hour. Afterward, you must log in again to obtain a new token.
For CI/CD automation, use a service account token instead — service account tokens are valid for one year by default and don’t require browser-based login. See CI/CD Integrations Quick Start for details.
You now need to get your Orka authentication token from your ~/.kube/config:
Deploy Your First VM Instance
You can use the built-in Swagger UI to execute API calls directly against your cluster. In your browser, navigate to<ORKA_API_URL>/api/v1/swagger, click Authorize , and type Bearer <TOKEN>. For every call that you want to run, just click Try it out and fill the required details.
- Check the available resources in your cluster:
Node: A genuine Apple physical host that provides computational resources (RAM and CPU) for your workloads. A host OS runs on top, and you have no direct access (via VNC, SSH, or Screen Sharing).Namespace: A way to isolate and dedicate resources to users and teams within the cluster. The resources within a namespace are completely isolated from one another and cannot be shared between namespaces. By default, users and service accounts limited to a specific namespace cannot access the resources in other namespaces, unless added to the respective role bindings.
- Check if there are any VMs on your environment.
orka-default namespace. If nothing prints, no one has created any VM instances yet.
- List the available base images that you can use to deploy a VM.
sonoma-90gb-orka3-arm item in the response. It is a fully installed and configured macOS Sonoma image with a 90GB disk size. It also has an admin user configured and SSH and Apple Screen Sharing access enabled.
Image: A disk image that represents VM storage. Base images are bootable disk images that provide the OS, file system, and storage for your VM configs and VMs. (Intel-only) Empty images provide added storage or serve as the base image during manual OS installs from ISO.
- Deploying a VM is as simple as just specifying a base image. Run:
image.
Orka creates a simple VM with the specified image and 3 CPU, and assigns a randomly generated name to it.
You can also deploy VMs using images from OCI-compatible registries.
You can also deploy directly from MacStadium’s public OCI registry.
cURL
- What happens if you list your VMs again now?
GET /api/v1/namespaces/orka-default/vms call shows system information for your VMs, including IP and connection ports. Note that even though screenshare and ssh ports are always listed, you won’t be able to use them unless the respective connection type is enabled in macOS. This is a security limitation of the OS.
When you have a lot of VMs, the response of
GET /resources/vm/list can become too crowded to use efficiently. Run GET /namespaces/orka-default/vms/<VM_NAME> instead to get system information for a single VM.- Check your nodes to see how many resources are now in use.
Experience Your VM Instance
- Look at the last output of
GET /namespaces/orka-default/vmsagain. Get that IP andscreenshareport. - Launch Apple Screen Sharing on your local machine. In Connect To: , type
vnc://<VM-IP>:<Screenshare-port>.
<VM-IP>:<VNC-port>.
One more thing to remember is that Screen Sharing needs to be already enabled on the macOS. Most of the time, this is not the case (especially on clean OS installs or after an ISO install (Intel Workloads Only)), and you will need to enable the setting yourself.
The good news is that sonoma-90gb-orka3-arm is already preconfigured for you, and you can enjoy out-of-the-box Screen Sharing and SSH connectivity.
Are you not using the official Sonoma images?
If you’re using another image as your starting point or if you are installing your OS from ISO, you will likely not have SSH or Screen Sharing enabled by default (even though the respective ports will be mapped by default). In this case, you need to connect to the VM via VNC. You can then enable SSH and Screen Sharing connectivity in the OS.
-
When prompted by Apple Screen Sharing, provide the credentials for the VM (
admin/admin). You will be prompted for the password one more time - when Apple connects to the VM. -
On the VM, launch System Settings > Users & Groups. Select the Admin user and click Change password. Set the
Adminuser password to whatever works for you. - (Optional) Inside the VM, launch the Terminal application and run the following command.
- Always apply the latest OS updates and restart the VM.
Preserve the Image Changes
Changing a running VM’s configuration or file system does not affect its base image. As soon as you delete the VM, your changes will be lost, and you will need to recreate them manually on other VMs. To create changes that stick and appear on future deployments, you can commit your changes to the base image, save the changes as a new image, or push your changes to an OCI-compatible registry.Commit: Modifies the original base image of the respective VM instance. With this operation, you apply the current state of a VM instance over the base image of its VM config. Newly deployed instances will launch in the same state as your current VM. This operation restarts the VM.Save: Creates a new base image from the current state of the respective VM instance. To use it, you need to create a new VM config that references the new base image. This operation restarts the VM.Push: Pushes your changes to the specified OCI-compatible registry, image, and image tag. Registry credentials are required to push an image.
<VM_NAME> from the GET /namespaces/orka-default/vms output you ran earlier.
cURL
- See how the changes are preserved for yourself. Deploy a new VM instance from your image:
- Launch Apple Screen Sharing and connect to the newly deployed VM instance. Use the updated admin credentials to log in.
Time to Say Goodbye
When your VM instances have served their purpose, you candelete them.
- Remove the VM instances you created until now:
- List your VMs again.
Next Steps
- CLI Quick Start: manage VMs interactively with the Orka3 CLI
- CI/CD Integrations Quick Start: automate VM deployment in your build pipeline
- Tools and Integrations: browse available integrations

