Apps
An app gives your EOT-1 a job and keeps doing it: watching the live stream, taking snapshots, starting and stopping recordings, and reporting what it finds. Once installed it runs on its own, so you don’t need to keep a computer switched on or a script running.
What an app can do
An app uses the same API you can call yourself (see the API Reference), so anything you can do with your EOT-1, an app can do for you, continuously:
- read the live stream and take snapshots,
- start and stop continuous video and audio recording,
- record events, each linked to the moment in the footage it happened (on-device apps),
- serve its own web page, for a dashboard or live view,
- add its own buttons and forms to the portal (on-device apps).
Where an app runs
Every app runs in one of two places, and an EOT-1 can have both kinds installed at once.
| On your EOT-1 | In the cloud | |
|---|---|---|
| What it is | A Docker container on your EOT-1 | A Cloud Run service that EyeOfTheTiger hosts, one per EOT-1 and app |
| How it reaches your EOT-1 | Directly at http://127.0.0.1: every frame of the live stream, no network hop | Over the internet, through the platform API (CAMERA_API_URL + CAMERA_API_KEY) |
| Resources | 256 MB memory and 2 CPU cores, fixed | cpu-tiny (1 vCPU, 512 MiB), cpu-small (2 vCPU, 4 GiB) or gpu-l4 (4 vCPU, 16 GiB, NVIDIA L4 GPU) |
| Cost to run | Free: it uses your EOT-1 | Charged per hour from your credits while it runs |
| Storage | Named volumes at /data/<name>, kept when the app is deleted or reinstalled | None: its disk is wiped whenever it stops |
| Reports events | Yes, with POST /v1/events | Not yet |
| Its own buttons and forms | Yes (dynamic controls) | Not yet |
| Its own web page | At http://eyeofthetiger.local:<port> on your network | Opened from the portal with Open |
| Where it comes from | The Marketplace, or your own code installed over your local network | The Marketplace only: EyeOfTheTiger’s apps and apps people have published |
Run it on your EOT-1 for continuous, lightweight work on every frame: detectors, loggers and watchdogs that should keep going even when your internet connection drops. Events are queued on the EOT-1 and uploaded when it’s back online.
Run it in the cloud when the work needs more than the EOT-1 has: large models, a GPU, or several GiB of memory. A cloud app needs your EOT-1 online and your credits above £0.
Some apps use both. A bundle installs several apps together, for example a small on-device app that watches for motion and starts a cloud app only when there’s something to analyse, then stops it again. You pay for the cloud part only while it runs.
Install and manage apps
Install apps from the Marketplace in the portal. Each EOT-1’s page in the portal lists its apps, wherever they run, with Start, Stop, Logs and Delete. Cloud apps with their own page also have Open. On-device apps also have Download logs and Custom controls.
- On-device apps need the apps platform switched on. It runs Docker, which uses about 80 MB of the EOT-1’s memory even with no apps, so you can switch it off when you don’t use apps. The install form offers to switch it on. Switching it off stops every on-device app.
- Stopping an on-device app pauses its container. Stopping a cloud app shuts its service down, which stops the hourly charge.
- Deleting an on-device app keeps its volume data, so reinstalling it under the same name picks up where it left off. Through the API you can delete the data too (
purge_data). A cloud app keeps nothing. - On your local network,
http://eyeofthetiger.local/apps-pagelists your on-device apps with their status, logs and controls.
Deploy and update apps with an agent or the API
Everything the portal’s install button does is one API call, so an AI agent or your own script can install, update and roll back apps with an API key or through the MCP server. Only an organisation admin’s key can change apps. A person is still needed for two things: typing secret values, and buying a paid app.
- Find the app.
GET /api/v1/apps-catalog(MCPlist_catalog) lists each app’s image, port, default env, volumes, the secret keys a person must supply, and what each setting means. Every catalog image is pinned to one exact build, so two EOT-1s installing it run the same thing. - Check first.
PUT /api/v1/cameras/{id}/apps/{name}withcatalog_entry_id, anything you want to change, and"dry_run": true(MCPapply_app) answers whether it would install, update or do nothing, and which settings differ. Nothing changes. - Apply. The same call without
dry_run. It returns as soon as your EOT-1 starts; pollGET .../apps/{name}(MCPget_app) and readinstall: the phase (downloading, with layer counts, then starting) and the outcome. - Update with the same call and a new
image_refor new settings. Your EOT-1 downloads the new version while the old one keeps running, keeps the app’s secrets, and puts the old version back if the new one doesn’t start (error_coderolled_back). - Roll back with
POST .../apps/{name}/rollback(MCProllback_app); doing it twice undoes the rollback. - Uninstall with
DELETE .../apps/{name}; add?purge_data=trueto delete its volume data too.
Camera addresses and passwords
An app that needs a camera’s stream gets it from your EOT-1 itself: put {camera:<camera_id>:url} or {camera:<camera_id>:sub_url} in an env value. Your EOT-1 fills in the address, password included, only when it starts the app. Nobody types the password and the API never shows it.
Secrets a person must type
An agent never handles secret values. If an install needs one nobody has set, it fails with secret_required and the missing key names. The agent then asks for a link with POST .../apps/{name}/secret-requests (MCP request_app_secret) and hands it to an organisation admin, who opens it, types the values and saves. The link works once and lasts 24 hours. The values go straight to your EOT-1; the agent sees only the key names appear in the app’s secret_env_keys.
Paid apps
Installing a paid app that hasn’t been bought for that EOT-1 fails with 402 and a purchase_url. Give the link to a person to buy it, then apply again.
What every app must do
Wherever it runs, an app is a container that:
- serves HTTP on one port, between 1024 and 65535,
- answers
GET /statuswith JSON about how it’s doing. Your EOT-1 and the portal never interpret it; they show it as it is.
Each place adds a few rules of its own, below.
Build an app that runs on your EOT-1
You upload your app’s source (a Dockerfile and whatever it needs) and your EOT-1 builds it with docker build on its own hardware, so there’s nothing to cross-compile. It runs with --network host: http://127.0.0.1 inside your app is your EOT-1’s own API, and your app’s port is open at http://eyeofthetiger.local:<port>.
Every on-device app is capped at 256 MB of memory and 2 CPU cores, so a runaway app can’t starve the camera itself. The caps can’t be changed.
Optional extras
- Soft start and stop. Expose
POST /startandPOST /stopto pause and resume without losing in-memory state. Your EOT-1 tries these first and falls back to starting or stopping the container if they’re missing or your app has hung. - Dynamic controls. Tag an operation
"Controls"in your app’s OpenAPI spec (FastAPI does this withtags=["Controls"]) and it appears as a button or form under Custom controls in the portal and on your EOT-1’s local Apps page. Your EOT-1 reads the spec fresh on every call and only forwards operations that are in it.
The manifest
Installing an app takes a JSON manifest alongside the source tarball:
| Field | What it is |
|---|---|
name | Required. Lowercase letters, digits and hyphens, up to 63 characters, starting with a letter or digit. Also the container name. |
port | Required. The port your app serves HTTP on, 1024 to 65535. |
command | Optional. Overrides the image’s own CMD, as a list of strings. |
env | Optional. Environment variables, as string to string. |
volumes | Optional. A list of volume names (not paths). Each is mounted at /data/<name>. |
description | Optional. Shown on the Apps page, up to 500 characters. |
triggers_cloud_apps | Optional. Names of cloud apps on the same EOT-1 this app may start and stop (see Waking a cloud app). |
Install it over your local network
From a computer on the same network as your EOT-1, pack the source and post it with the manifest. Changes on your EOT-1’s local API need the X-EOT-Local: 1 header.
tar -czf test-app-context.tar.gz -C test-app service.py requirements.txt Dockerfile .dockerignore
curl -X POST http://eyeofthetiger.local/v1/apps \
-H 'X-EOT-Local: 1' \
-F 'manifest={"name":"test-app","port":8101,"command":["python","service.py","--capture-url","http://127.0.0.1:80","--port","8101"]}' \
-F '[email protected]'
curl http://eyeofthetiger.local:8101/statusInstalls from the portal or the platform API only pull EyeOfTheTiger’s own published images, so your own on-device app is installed this way, over your local network.
Local apps API
| Method | Path | Description |
|---|---|---|
| POST | /v1/apps | Install an app from a manifest and a build-context tarball (local network only) |
| PUT | /v1/apps/{name} | Install, update in place or do nothing, from a published image; add dry_run to see the plan |
| POST | /v1/apps/{name}/rollback | Run the previous version again |
| GET | /v1/apps | List installed apps with their live status |
| GET | /v1/apps/{name} | One app’s status and its dynamic controls |
| POST | /v1/apps/{name}/start | Start an app (its own /start first, then Docker) |
| POST | /v1/apps/{name}/stop | Stop an app (its own /stop first, then Docker) |
| POST | /v1/apps/{name}/controls | Call one of the app’s dynamic controls |
| GET | /v1/apps/{name}/logs | Stream the app’s logs (Server-Sent Events) |
| GET | /v1/apps/{name}/logs/download | Download the app’s logs as a gzip file |
| DELETE | /v1/apps/{name} | Uninstall an app; its volume data is kept unless you add ?purge_data=true |
| POST | /v1/apps/{name}/cloud-apps/{cloud_app}/{action} | Start or stop a cloud app this app declared |
| GET | /v1/apps-platform/status | Whether the apps platform is on |
| POST | /v1/apps-platform/enable | Switch the apps platform on |
| POST | /v1/apps-platform/disable | Switch it off, stopping every on-device app |
Full request and response shapes are in your EOT-1’s own API docs at http://eyeofthetiger.local/docs.
Recording events
An event is a small JSON record of something your app noticed, like “driver looked drowsy from T1 to T2, here are the metrics”. Your EOT-1 stores it, links it to the recording segment covering that moment, and uploads it to the portal’s Events page, where you can click through to the footage. Your EOT-1 doesn’t check type or payload beyond a size limit.
| Method | Path | Description |
|---|---|---|
| POST | /v1/events | Record an event: type, started_at, ended_at, payload |
| GET | /v1/events | List events, filtered by type and date |
Browse them on your EOT-1 at http://eyeofthetiger.local/events-log, or from anywhere with GET /api/v1/cameras/:id/events on the platform API.
Waking a cloud app
An on-device app can start and stop a cloud app on the same EOT-1, without holding any portal credentials, by calling POST /v1/apps/{name}/cloud-apps/{cloud_app}/start (or /stop). It can only do this for cloud apps listed in its manifest’s triggers_cloud_apps.
Try it: a minimal example
test-app, installed by the commands above, is the smallest useful app: no computer vision, just timed calls to your EOT-1’s API. Every 60 seconds it starts continuous recording, waits 10 seconds, stops it, and records one event linked to the segment it just recorded. It’s a good skeleton for an app of your own.
Build an app that runs in the cloud
EyeOfTheTiger builds cloud apps from your GitHub repository and runs them on Google Cloud Run. To run one, submit it to the Marketplace: it’s reviewed, then listed for every EOT-1 owner. In short, your app:
- has a
Dockerfileat the root of a public repository, - reaches the EOT-1 it was installed for through the platform API, using the
CAMERA_API_URL,CAMERA_API_KEYandCAMERA_IDenvironment variables the platform sets, - keeps anything it needs to remember somewhere else, since its disk is wiped when it stops,
- checks the portal’s token on every request if it serves its own page.
Publish your own app has the full contract, a template to start from, pricing and the review process.
Not yet available for cloud apps: dynamic controls, recording events, and running a private cloud app without publishing it.
Ideas for apps to build
Most of these suit a lightweight on-device app; heavier models belong in the cloud.
An app runs by itself. If you’d rather run your own code on your laptop or server and call your EOT-1 from there, see Examples and the API Reference.