Ocalt Client

A cross-OS agent that registers a computer with your Ocalt account and gives it a name. From then on any Ocalt service can address it, via shell execution, tunnelling, peer-to-peer networks, self-hosted websites on your own hardware, file transfers, content serving, and streaming a local port to a web-accessible endpoint. No static IP address and no firewall limitations.

Download Read the docs

Windows · Linux · Android · free on every plan

What it does

One agent, the whole verb set.

Nothing is installed beyond the agent itself. It holds an outbound connection to Ocalt and does what your scripts ask of it.

Remote shell

EXEC runs a command and hands back stdout, stderr and the exit code. KILL stops one that is still running.

Files both ways

UPLOAD, DOWNLOAD, READ, WRITE, and LIST FROM to browse the machine's folders and drives.

Tunnels

Expose a local port at a public HTTPS URL. No static IP, no port forwarding, no router configuration.

Serve a file

SERVE puts one file behind a public URL with its extension intact, straight off the machine's disk.

Screen and input

SCREENSHOT, VIEW, SCREEN for display geometry, and mouse, keyboard and pointer control.

Self-hosted websites

Point the agent at a folder and a port and your own hardware serves the site: your disk, your machine, your bandwidth. .oql files still execute on Ocalt, so the same script runs identically here and on a subdomain.

Wake and status

WAKE sends a magic packet to another machine on the same network. STATUS reports online state and approximate location.

Transcode

Stream a camera or a file out as RTSP, with QUALITY and TIME controlling resolution and start point.

Check-in interval

POLL sets how often a machine looks for work: one second by default, up to sixty minutes for a metered or battery-powered link.

PEERS

Name two or more machines and get back a network value you can address as a whole.

TRANSFER

Move a file straight from one peer to another. It does not block: you get a status anchor and poll it.

SHARE

Expose one peer’s port on every other peer’s localhost. Nothing is published to the internet.

Machine to machine

Peers.

Group several of your machines into one network and they can reach each other directly. The bytes travel between them, not up through Ocalt and back down.

DIRECTIVE PEERS "laptop" AND "home-nas" AND "office-box" SET ?network AFTER DIRECTIVE NETWORK ?network TRANSFER FROM ?network(0)('id') & "://c:/downloads/build.zip" TO ?network(1)('id') & "://var/www/releases/build.zip" SET ?job AFTER DIRECTIVE NETWORK ?network SHARE ?network(1)('id') PORT 80 AS 8080 SET ?status (* every peer now reaches home-nas:80 at its own localhost:8080 *)
Setup

Three steps.

1

Install and run

One binary. It opens its own interface at localhost:12345.

2

Enter your identity and a machine alias

Your Ocalt identity and the Client key from your account dashboard, plus whatever you want to call this machine. The alias is the name your scripts will use.

3

Address it from anywhere

Any OcaltQL script & service on your account can now reach it: from the console, a scheduled job, or a site you host.

DIRECTIVE "home-nas" EXEC "uptime" SET ?out AFTER EMIT ?out("stdout") AFTER DIRECTIVE "home-nas" TUNNEL PORT 3000 SET ?tunnel AFTER EMIT ?tunnel("url") AFTER DIRECTIVE "home-nas" LIST DRIVES SET ?drives AFTER EMIT ?drives
The Directive verbs

More than a shell.

Every DIRECTIVE statement is one line of OcaltQL addressed to a machine by its name. Beyond running commands and moving files, a script can reach the machine’s hardware, run code on it, give it a window, publish what is on its disk and watch its screen. The full reference is in the OcaltQL tutorial.

TTL

Puts a deadline on how long a command may wait for the machine to collect it. If the machine has not taken it in time, the command is dropped and never runs.

DIRECTIVE "kiosk" EXEC "systemctl restart signage" TTL 30 SECONDS SET ?r
AFTER EMIT ?r("stdout")

ONDEVICE

Reaches the machine’s own hardware: its camera, GPS, sensors, storage, notifications and more, with the same device commands an applicated app uses.

DIRECTIVE "Phone" ONDEVICE [CAMERA REAR CAPTURE MAXWIDTH 1600] SET ?photo
AFTER EMIT ?photo("path")

WEBASSEMBLY

Runs code in any language Ocalt runs, on the machine itself, against that machine’s files and that machine’s network.

DIRECTIVE "laptop" WEBASSEMBLY TYPE "python" ENTER `print(21 * 2)` SET ?r
AFTER EMIT ?r

WEBASSEMBLY SERVE

Starts a process that keeps running on the machine after the script has finished. Put a tunnel in front of it and it has a public address.

DIRECTIVE "nas" WEBASSEMBLY SERVE "api" TYPE "node" ENTER "/srv/app/server.js" ON 3000 SET ?p
AFTER DIRECTIVE "nas" TUNNEL PORT 3000 SET ?t
AFTER EMIT ?t("url")

WINDOW

Opens a window of your own on the machine and shows the page you send it, from a single greeting to a full-screen kiosk.

DIRECTIVE "lobby-screen" WINDOW PAYLOAD `<html><body style="font:48px sans-serif">Welcome</body></html>` FULLSCREEN SET ?status
AFTER EMIT ?status

SERVE FOLDER

Publishes a folder on the machine at a public address. Each file is read off the machine’s disk at the moment it is asked for.

DIRECTIVE "nas" SERVE FOLDER "/srv/shared" LISTING SET ?share
AFTER EMIT ?share("url")

VIEW

Opens a live feed of one of the machine’s displays. It closes by itself five minutes after nobody is watching.

DIRECTIVE "workstation" VIEW ON DISPLAY 2 SET ?feed
AFTER EMIT `<img src="` & ?feed("url") & `">`

REGISTER and STATUS

Claims a slot under the name your scripts will use, then reports whether the machine is online and when it last checked in.

DIRECTIVE REGISTER "home-nas" SET ?reg
AFTER DIRECTIVE STATUS "home-nas" SET ?s
AFTER EMIT ?s("online")

REDIRECT

Opens an address on the machine itself, rather than for the visitor who ran the script.

DIRECTIVE "meeting-room" REDIRECT "https://ocalt.com"
With the Ocalt apps

Register once, use it everywhere.

A machine belongs to your Ocalt account, not to one app. Every Ocalt app works on the same registered machines with the same account, so a machine you register here is ready in each of them.

Fabric

Your machines in one place: register them, run commands, move files, watch and drive the desktop, open tunnels, serve files and link machines into a mesh.

Ocaltio

A machine’s drives and folders appear as storage beside your other drives, to browse, copy and move files on.

QueryAdmin

Machines sit in your control panel beside everything else in your namespace, with their shell, screen and input a click away.

Pinstant

Lists the machines on your account as the places your pins come from, and keeps every pin as its own file in your namespace.

On Android

Setting up a phone.

A phone gives an app far less freedom than a computer does, so the client asks for each thing a machine needs, one at a time. Grant them all and the phone can be reached and used from your scripts like any other machine.

1

Install the APK

Open the download on the phone. Android asks whether your browser may install apps; allow it for this install.

2

Allow restricted settings

On Android 13 and later, an app installed from outside the Play Store cannot be given accessibility until you allow it. The first time you try to turn accessibility on, Android shows a Restricted setting notice. Then open Settings → Apps → Ocalt Client, tap the ⋮ menu at the top right, and choose Allow restricted settings. Accessibility can then be turned on.

3

Work through the setup checklist

Open the client. It asks for each permission in turn and takes you to the right settings screen; come back to the client and it moves on to the next. Anything you skip is asked for again the next time the client is opened, until everything is granted.

All files access

Lets scripts read and write anywhere on the phone's storage, as they do on a computer. Android grants it only in its own settings, under Allow access to manage all files.

Display over other apps

Lets a script open a page on the phone with REDIRECT while the client is in the background. Without it, Android blocks the page from opening by itself, and the link arrives as a notification you tap instead.

Accessibility

Lets scripts tap, type and take screenshots on the phone without asking each time. Needs restricted settings allowed first (step 2).

Notifications

Shows that the client is connected, and carries links and progress from your scripts.

Install updates

Lets DIRECTIVE UPDATE bring a new version of the client to the phone. You still confirm each installation yourself.

Unrestricted battery

Keeps the phone reachable when the screen is off, so a script does not find it asleep.

DIRECTIVE "Phone" PERMS SET ?p AFTER EMIT ?p (* every permission above, and whether it is granted *)
How it connects

Outbound only.

The agent dials out to Ocalt and holds the connection. Nothing listens on a public port, nothing needs forwarding, and no inbound firewall rule is required. A machine on a phone tether is as reachable as one in a rack.

Your account only

A machine is bound to the Ocalt account whose credentials it holds. No other account can address it.

4,096 machines

The same on every plan, including Free. Register as many as you have.

One second

Commands reach the machine within a second by default, adjustable per machine up to sixty minutes.


Already installed?

Downloading the client is half of it. The device still has to be registered to your account before anything can reach it, and that is the step that turns a program running on a machine into a machine you can use from anywhere.

Have the client running and the device online, then register it under the alias you gave it. The device answers for itself, so nothing is taken on trust.


Register a device