Apps

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.

🧩
Looking to install a ready-made app, or publish your own for other EOT-1 owners? See the Marketplace guide: step-by-step install, credits, and submitting an app.

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-1In the cloud
What it isA Docker container on your EOT-1A Cloud Run service that EyeOfTheTiger hosts, one per EOT-1 and app
How it reaches your EOT-1Directly at http://127.0.0.1: every frame of the live stream, no network hopOver the internet, through the platform API (CAMERA_API_URL + CAMERA_API_KEY)
Resources256 MB memory and 2 CPU cores, fixedcpu-tiny (1 vCPU, 512 MiB), cpu-small (2 vCPU, 4 GiB) or gpu-l4 (4 vCPU, 16 GiB, NVIDIA L4 GPU)
Cost to runFree: it uses your EOT-1Charged per hour from your credits while it runs
StorageNamed volumes at /data/<name>, kept when the app is deleted or reinstalledNone: its disk is wiped whenever it stops
Reports eventsYes, with POST /v1/eventsNot yet
Its own buttons and formsYes (dynamic controls)Not yet
Its own web pageAt http://eyeofthetiger.local:<port> on your networkOpened from the portal with Open
Where it comes fromThe Marketplace, or your own code installed over your local networkThe 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-page lists 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.

  1. Find the app. GET /api/v1/apps-catalog (MCP list_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.
  2. Check first. PUT /api/v1/cameras/{id}/apps/{name} with catalog_entry_id, anything you want to change, and "dry_run": true (MCP apply_app) answers whether it would install, update or do nothing, and which settings differ. Nothing changes.
  3. Apply. The same call without dry_run. It returns as soon as your EOT-1 starts; poll GET .../apps/{name} (MCP get_app) and read install: the phase (downloading, with layer counts, then starting) and the outcome.
  4. Update with the same call and a new image_ref or 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_code rolled_back).
  5. Roll back with POST .../apps/{name}/rollback (MCP rollback_app); doing it twice undoes the rollback.
  6. Uninstall with DELETE .../apps/{name}; add ?purge_data=true to 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 /status with 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 /start and POST /stop to 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 with tags=["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:

FieldWhat it is
nameRequired. Lowercase letters, digits and hyphens, up to 63 characters, starting with a letter or digit. Also the container name.
portRequired. The port your app serves HTTP on, 1024 to 65535.
commandOptional. Overrides the image’s own CMD, as a list of strings.
envOptional. Environment variables, as string to string.
volumesOptional. A list of volume names (not paths). Each is mounted at /data/<name>.
descriptionOptional. Shown on the Apps page, up to 500 characters.
triggers_cloud_appsOptional. 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.

bash
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/status

Installs 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

MethodPathDescription
POST/v1/appsInstall 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}/rollbackRun the previous version again
GET/v1/appsList installed apps with their live status
GET/v1/apps/{name}One app’s status and its dynamic controls
POST/v1/apps/{name}/startStart an app (its own /start first, then Docker)
POST/v1/apps/{name}/stopStop an app (its own /stop first, then Docker)
POST/v1/apps/{name}/controlsCall one of the app’s dynamic controls
GET/v1/apps/{name}/logsStream the app’s logs (Server-Sent Events)
GET/v1/apps/{name}/logs/downloadDownload 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/statusWhether the apps platform is on
POST/v1/apps-platform/enableSwitch the apps platform on
POST/v1/apps-platform/disableSwitch 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.

MethodPathDescription
POST/v1/eventsRecord an event: type, started_at, ended_at, payload
GET/v1/eventsList 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.

View test-app on GitHub →


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 Dockerfile at 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_KEY and CAMERA_ID environment 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.

Attention / drowsiness monitor
Watch the live stream continuously and flag when a driver or operator looks fatigued or distracted. This is what buscam, our own first app, does.
on-devicevisionevents
Package or parcel detector
Watch a porch or loading dock frame by frame and record an event the moment a box appears, without anything leaving your EOT-1.
on-devicevisionevents
Pet or wildlife activity logger
Run a small classifier against the stream and log each sighting as an event with a species label and confidence score.
on-devicevisionevents
Workshop or kitchen safety monitor
Check continuously for a stove left on, smoke, or missing PPE, and record an event the instant something looks wrong.
on-devicevisionsafety
Nightly self-test
On a timer, start continuous recording, stop it, and record a "device healthy" event each morning: a lightweight watchdog for the recording pipeline itself.
on-devicetimerdiagnostics
Heavy models on a GPU
Run a model too big for the EOT-1, such as detailed sports or object tracking, on a cloud GPU. Pair it with a small on-device app that wakes it only when there is motion, so you only pay while something is happening.
cloudgpuon-device + 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.