MEGA Hub
Docs/Compute

Jobs Quickstart#

Install the CLI, sign in, inspect available hardware, and run a small command:

BASH
uv tool install megatensorsmega auth loginmega jobs hardwaremega jobs run python:3.12-slim python -c 'print("hello")'

Use --detach to return after the Job is accepted, then inspect and stream its output:

BASH
mega jobs psmega jobs logs JOB_ID --followmega jobs stats JOB_IDmega jobs inspect JOB_ID

For a private interactive shell, add --ssh to a long-running detached Job and use mega jobs ssh JOB_ID once it is running. Register the client key with mega auth keys add first; no public Job port is opened.

Jobs require the jobs:run scope and enough prepaid compute credit when the selected runtime is metered. See Jobs.