/kinhin:kinhin-configurefrom kinhin
Edits or writes a kinhin config.yaml for connecting forges (GitHub, Gitea, Forgejo, GitLab CE) with accounts, labels, capacity, runtimes, routes, and token scopes. Validates config and manages tokens via Keychain.
Ships in kinhin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Beta status: GitHub, Gitea, Forgejo and GitLab CE are supported. Gitea, Forgejo and GitLab CE have run real jobs on every runtime; GitHub on Tart macOS VMs and apple/container. Buildkite, Azure DevOps and Bitbucket are planned.
~/Library/Application Support/Kinhin/config.yaml (capital K). kinhin config init writes a
commented starter. Edits made through the CLI or app preserve comments. Routes, projects and labels reload live in a
running daemon.kinhin auth set [--account NAME].accounts:. The old top-level repo:, gitea: and forgejo: keys are rejected.kinhin config validate. It exits 3 when the config is invalid.kinhin help and kinhin config init output over this page if they disagree.docs/open-source.md (runner group
without public repos, fork PRs routed to hosted runners, approval for external contributors). For such a fleet set
tart_softnet: true and runners_per_vm: 1, keep share_cache and repo_file off, scope the account to
owner/name, and never add a host route.Account names use lowercase letters, digits, - and _. github, gitea and forgejo are the primary names.
accounts:
# GitHub: scope is owner/repo, or a bare org name
- {name: github, forge: github, scope: "owner/repo"}
# Gitea or Forgejo (forge: forgejo for Forgejo)
- {name: gitea, forge: gitea, instance: "https://gitea.example.com", scope: "owner/name", labels: ["macos:host"]}
# GitLab CE (16.0+). A job's tags must include every label.
- {name: gitlab, forge: gitlab, instance: "https://gitlab.example.com", scope: "group/project", labels: ["macos"]}
Buildkite, Azure DevOps and Bitbucket are planned and not supported yet; do not configure them.
Self-hosted Gitea, Forgejo and GitLab must use https:// unless the host is loopback or the account sets
allow_insecure_http: true.
| Forge | Token needs |
|---|---|
| GitHub | PAT with repo (org runner-admin for an org scope) |
| Gitea / Forgejo | Access token with runner-management rights |
| GitLab | create_runner, manage_runner, read_api or api; Maintainer on a project or Owner on a group |
kinhin auth add NAME --<forge> --scope S prints the exact requirements for that forge.
| Forge | Job targeting |
|---|---|
| GitHub, Gitea, Forgejo | runs-on: labels |
| GitLab | Runner tags |
A job must request all of the account's labels (default ["self-hosted","macos","arm64"]). A repo .kinhin/config.yml (or .kinhin.yml) is
only honored on GitHub, Gitea/Forgejo and GitLab.
| Key | Default / notes |
|---|---|
min_runners / max_runners | 0 / 2. min_runners is fleet-wide, counts busy runners and fills runtimes.default |
min_idle | 0. Idle registered runners kept per pool or image: on container:, docker:, each images: entry; image_min_idle for image: |
container.docker / container.flags | false / []. Docker inside each Apple container runner (re-bake with kinhin image prepare --container), pulling Docker Hub images through kinhin's cache container registry-cache-kinhin; docker: { cache: false } keeps Docker without the cache (on container: or a pool); docker: { build_cache: true } keeps each runner's /var/lib/docker in a volume between jobs (trusted pools only); container.registry_cache_ttl_hours (336, 0 = never expire) sets the cache's TTL; extra container run arguments, one list element each, never --cpus/-c, --memory/-m, --name, --rm, --detach/-d, --platform, --arch/-a, --os, --help/-h, --version or a bare -- |
container.platform | linux/arm64. linux/amd64 runs x86_64 runners under Rosetta, registered with x64 instead of arm64; also per pool. Re-bake with kinhin image prepare --container after changing it. With docker: true, builds go through the kinhin buildx builder (BUILDX_BUILDER), since dockerd's built-in builder fails under Rosetta |
container.pools | none. Named Linux pools (NAME: {image, labels, cpus, memory_gb, min_idle, docker, flags, max, platform}; top-level container: keys are the defaults). A job goes to the pool whose labels it carries, kinhin-container-NAME targets one; pools share Apple container's CPU and RAM. Bake with kinhin image prepare --container --pool NAME or --all |
enabled | true. On container:, a container.pools entry, docker: and runtimes.tart.enabled: false keeps the pool's settings but takes it out of routing and scheduling (running instances drain). The default pool and pools a route names cannot be disabled |
runners_per_vm | 1 to 8. Packs several jobs into one VM. |
poll_interval | 20 seconds, minimum 5 |
vm | cpu: 4, memory_gb: 8, ephemeral: true |
reserve | cpu: 2, memory_gb: 4, disk_gb: 10 left for the host |
image / base_image | tahoe-base, and a Tart image ref (optionally @sha256: pinned) or local VM name |
auto_resume | false |
Capacity is min(max_runners, (cores - reserve.cpu)/vm.cpu, (RAM - reserve.memory_gb)/vm.memory_gb, free_disk/disk_per_vm).
disk_per_vm is 50 GB for Tart and 8 GB for container slots. macOS allows only two macOS VMs per Mac. kinhin doctor
prints the cap and which constraint binds.
Runtimes: tart (default), appleContainer, docker, host. Route precedence: workflow route, repo route,
runs-on: label, default.
runtimes:
default: tart
budget: {tart: 0.6, appleContainer: 0.4}
routes:
- {pattern: "acme/api", runtime: appleContainer}
- {pattern: "acme/scripts", runtime: host, consent: true}
Or use the CLI: kinhin runtimes route add <pattern> <tart|appleContainer|docker|host> [--consent].
To move one workflow to a runtime (editing its runs-on: and reconciling the route automatically), use the
kinhin-route-workflow skill — it also decides which runtime fits the workflow.
Host mode runs jobs unisolated on the Mac. It needs consent: true, default: host is rejected, every account must be
scoped to one owner/name, it works for GitHub, Gitea and Forgejo only, and workflows opt in with
runs-on: [kinhin-host] after kinhin setup repair host-agent. Warn the user before suggesting it for untrusted code.
alerts: pushes a message to webhooks when a fleet problem is raised or clears. Off by default. alerts.webhooks is a
list of {name, url, format, headers_keychain, min_severity, events, notify_on_resolve}; format is generic, slack,
discord or ntfy, url is https (http only for localhost) and events picks from disk, credentials, queue,
spawn-backoff, orphans, startup (omit for all). alerts.enabled: true needs at least one webhook; the old single
webhook: still works as a webhook named default. Store a token with kinhin alerts set-token NAME, check it with
kinhin alerts test [--webhook NAME]. Details: Alerts.
repo:, gitea: or forgejo: key: move it under accounts:.default: host in runtimes: pick tart, appleContainer or docker.http:// instance on a self-hosted forge: use https:// or set allow_insecure_http: true deliberately.kinhin- or orchard- are reserved.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rabinapps/kinhin --plugin kinhin9 skills in this plugin
/kinhin-add-forge-accountConnect an existing kinhin install to a CI forge account - GitHub, Gitea, Forgejo or GitLab CE. Use when the user wants kinhin to serve jobs from another repo, org, project or forge./kinhin-images-toolchainsBuild and manage kinhin VM and container images and per-project toolchains - image prepare, base_image pinning, Xcode images, .kinhin.yml, toolchains detect, Linux runtimes. Use when the user needs Xcode, specific tool versions, a Linux runner, or image maintenance./kinhin-installInstall kinhin and its prerequisites (Tart) on an Apple Silicon Mac, locally or on a rented or remote Mac, and run the first-time setup sequence. Use when the user wants to install, set up or bootstrap kinhin, or get a new Mac serving CI jobs./kinhin-mobile-fastlaneSet up fastlane store releases (TestFlight, App Store, Google Play) for iOS, Android, Flutter, React Native, Expo, Capacitor, Kotlin Multiplatform or .NET MAUI projects, and run them from a kinhin runner - `kinhin mobile init` scaffolding, lanes, App Store Connect API keys, match, Play service accounts, the mobile-release workflow, and Expo EAS. Use when the user wants to ship a mobile app, automate TestFlight or Play uploads, or fix a failing fastlane lane./kinhin-operateRun and monitor a kinhin fleet - start, stop, pause, status, logs, pipeline view, daemon, cleanup, the healing journal, scaling and capacity. Use when the user asks about fleet status, what kinhin fixed on its own, scaling runners, running kinhin as a daemon, or freeing disk./kinhin-route-workflowChoose the right kinhin runtime for a workflow (macOS tart vs appleContainer vs Docker vs tart Linux vs host) and route it with one command, `kinhin workflow route`. Use when the user wants a workflow or CI job to run on a different runtime — appcontainer, a Linux container, Docker, a Linux VM, host, or "somewhere cheaper".Other plugins' skills for the same job