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:
- 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:
ghcr.io/macstadium/orka-images with pre-built macOS images. You don’t need to pull images manually — you can deploy directly from the registry in the next step.
- Deploying a VM requires only a base image. Run:
image. Orka creates a VM with 3 CPUs and assigns a randomly generated name.
- 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, use
GET /api/v1/namespaces/orka-default/vms/<VM_NAME> to get system information for a single VM instead of listing all of them.- Check your nodes to see how many resources are now in use.
Experience Your VM Instance
- Look at the last output of
GET /api/v1/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>.
This step works only on macOS. On Linux or Windows, launch your preferred VNC client and connect to
<VM-IP>:<VNC-port>.If you’re using a custom image or installing from ISO (Intel only), SSH and Screen Sharing are not enabled by default. Connect via VNC first, then enable them 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 make changes permanent, push your image to an OCI-compatible registry. This is the recommended approach for Apple silicon clusters on Orka 3.5 or later.- Push the image to your OCI-compatible registry:
If you are on Intel or need to write to NFS local cluster storage instead of an OCI registry, use SaveBoth operations restart the VM. NFS local storage is being phased out in favor of OCI.
commit (overwrites the original base image) or save (creates a new image):Commit- 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

