GitHub README Integration Guide

Embed a live Linux CLI terminal in GitHub README

GitHub sanitizes third-party <script> and <iframe> tags inside repository READMEs, so a clean SVG badge linking straight to a hosted /lab/<slug> (or kilnvm.dev/gh/<owner>/<repo>) lets every GitHub visitor run your CLI in 3 seconds with zero local install.

1. Add KilnVM to GitHub README

README.md (Try in Browser SVG badge or /gh/ shortcut)
<!-- Option A: Published interactive lab badge -->
[![Try in Browser](https://kilnvm.dev/badge/your-lab-slug.svg?label=Try%20Live)](https://kilnvm.dev/lab/your-lab-slug)

<!-- Option B: Direct GitHub repo shortcut for registered CLIs -->
[![Run in KilnVM](https://kilnvm.dev/badge/gh/your-org/your-cli.svg)](https://kilnvm.dev/gh/your-org/your-cli)

2. Seed Files, Run Buttons & Production Tips

.github/workflows/kilnvm-sync.yml (sync kiln.yaml + container tag on release)
name: Sync Interactive Lab
on:
  push:
    tags: ["v*"]
jobs:
  kilnvm:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: kilnvm/sync-action@v1
        with:
          api-key: ${{ secrets.KILNVM_API_KEY }}
          project-id: proj_your_project_id
          public-image: ghcr.io/your-org/your-cli:${{ github.ref_name }}
          kiln-yaml: kiln.yaml
  • Every published /lab/<slug> serves a CORS-enabled, dark-themed SVG badge at https://kilnvm.dev/badge/<slug>.svg with optional ?label= custom text.
  • Using https://kilnvm.dev/gh/<owner>/<repo> automatically resolves supported CLIs or renders a claimable setup preview if your project is not registered yet.
  • Pair your README badge with kilnvm/sync-action@v1 so container tags and starter files stay in sync on every release.

3. Try a Live Sandbox Right Now

Click Launch Terminal below to boot a real non-root Linux microVM directly in the page.

Frequently Asked Questions

Does the KilnVM README badge work reliably behind GitHub's Camo image proxy?

Yes. /badge/*.svg responds with clean image/svg+xml headers, short cache TTLs, and CORS enabled so GitHub renders the badge crisply in light and dark mode.

Can visitors run Step 1 without creating a KilnVM account?

Yes. Opening the badge link launches a real isolated linux/amd64 container after a lightweight Cloudflare Turnstile check with zero login wall.

Ready in 5 minutes

Ship live CLI sandboxes inside your docs.

Start free with 300 sessions per month, isolated linux/amd64 microVMs, and zero credit card required.