# 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](/app) 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](/docs/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.

| Pack | vCPU-hours | kajiya-2 minutes |
|---|--:|--:|
| $10 | 2,222 | 66,660 |
| $25 | 5,555 | 166,650 |
| $50 | 11,111 | 333,330 |
| $100 | 22,222 | 666,660 |
| $250 | 55,555 | 1,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](/docs/api#authentication):

```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](/docs/queue-and-limits#wait-reasons).

## See it running

A public demo repository runs its workflows on Kajiya: [MovieHolic-Plex/kajiya-demo](https://github.com/MovieHolic-Plex/kajiya-demo). Its [Actions tab](https://github.com/MovieHolic-Plex/kajiya-demo/actions) shows real jobs, and the [status page](/status) shows live capacity.

## Next steps

- [Runners](/docs/runners): what is installed on the VM, and the network and time limits.
- [Billing](/docs/billing): how minutes become cents.
- [Spend controls](/docs/spend-controls): set a daily cap before you move a busy repository.
- [Migrate from GitHub-hosted runners](/docs/guides/migrate-from-github-hosted): roll out across many workflows safely.
