kajiya
Get started / Quickstart

Docs / Get started

View as Markdown
On this page

Quickstart

Run your first GitHub Actions job on a Kajiya runner in about five minutes. You need a GitHub account that is at least 24 hours old and has a verified primary email address, and admin access to the repository you want to run on.

1. Sign in with GitHub#

Open the dashboard and choose Continue with GitHub. Your Kajiya account is created the first time you sign in.

Signing in only reads your GitHub id, username, primary verified email address and account creation date. It gives Kajiya no access to your repositories, and Kajiya does not keep GitHub's access token.

2. Connect a repository#

Kajiya needs permission to see queued jobs in a repository and to register one-time runners there. Choose one of two ways:

  • Install the Kajiya CI GitHub App (recommended). In the dashboard, choose Install GitHub App; on GitHub the App is called Kajiya CI. GitHub asks where to install it (your account or an organization) and which repositories it may use, then asks you to authorize Kajiya so it can confirm the installation is yours. You come back to the dashboard with those repositories connected.
  • Use a fine-grained token. Create a fine-grained personal access token with Administration: Read and write, Webhooks: Read and write and Actions: Read and write, and paste it under Repositories in the dashboard.

Connect GitHub explains both, including what each permission is used for.

3. Buy a compute pack#

Open Billing in the dashboard and pick a pack. Packs start at $10 for 2,222 vCPU-hours and are paid by card through Paddle.com, our Merchant of Record. The pack is on your account as soon as the payment is confirmed. A repository has to be connected before you can buy.

PackvCPU-hourskajiya-2 minutes
$102,22266,660
$255,555166,650
$5011,111333,330
$10022,222666,660
$25055,5551,666,650

4. Change one line#

In a workflow under .github/workflows/, set runs-on to a Kajiya label:

yaml
jobs:
  test:
    runs-on: kajiya-2   # was: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: make test

Use kajiya-2, kajiya-4 or kajiya-8 for 2, 4 or 8 vCPUs with 2 GB RAM per vCPU. Commit and push, or re-run a workflow.

5. See the job#

Kajiya notices the queued job within seconds through the GitHub App or the repository webhook, or on its next check if neither is set up, and boots a fresh VM for it (boot takes about 40 seconds). On GitHub the job runs on a runner named kajiya-<GitHub job id>. In the dashboard the job moves from dispatched to running to done, with its billed minutes and exact cost.

From a terminal, with an API key:

bash
curl -s "https://kajiya.app/api/v1/jobs?limit=1" -H "Authorization: Bearer $KAJIYA_API_KEY"

If the job stays queued, open the live queue in the dashboard or call GET /api/v1/queue: every waiting job is listed with the reason. See Queue and limits.

See it running#

A public demo repository runs its workflows on Kajiya: MovieHolic-Plex/kajiya-demo. Its Actions tab shows real jobs, and the status page shows live capacity.

Next steps#