Skip to main content

kelder: Claude Code in a QEMU/KVM guest

Claude Code runs inside a minimal virtual machine (Debian 13 under QEMU, with nested KVM), as a user with your uid. It can start its own VMs (testvm) and containers (podman) there to run tests.

Install

Needs, on an x86_64 Linux host: qemu-system-x86_64, qemu-img, virtiofsd, ssh, ssh-keygen, one of genisoimage, xorrisofs or mkisofs, access to /dev/kvm with nested virtualization, and Python 3.11 or newer. kelder itself has no Python dependencies.

uv tool install kelder            # puts kelder on PATH
kelder self setup                 # create and provision the machine (safe to re-run)

uv tool uninstall kelder removes it again. From a checkout, uv tool install . installs that copy instead, and uv run kelder runs it without installing.

Usage

cd ~/git/app && kelder                  # attach ~/git/app and start Claude there
kelder self -C ~/git/other              # or name the directory
cd ~/git/app && kelder self -a ../lib   # also give Claude ~/git/lib
kelder -p "run the tests" | less        # non-interactive works too
kelder self shell                       # a shell in the guest instead of Claude

Only arguments after self (which must come first) are kelder's own; everything else is passed unchanged to claude in the guest.

Documentation

The documentation is in the docs/ directory of the repository:

  • docs/usage.md: the commands, sessions, and where Claude's state is kept
  • docs/configuration.md: .kelder.toml, your own config.toml, and environment variables
  • docs/tools.md: mise, uv, testvm and podman in the guest
  • docs/machine.md: how it is run, its files on the host, and testing the host's QEMU
  • docs/development.md: source layout, tests and releasing

License

Copyright (C) 2026 Adam Mercer. kelder is free software, licensed under the GNU General Public License, version 3 or (at your option) any later version. See LICENSE.

Metadata

Release files for kelder 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kelder 0.0.7
File Size Uploaded Provenance Actions
kelder-0.0.7.tar.gz 47.5 kB With provenance Details for kelder-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kelder 0.0.7
File Interpreter ABI Platform Actions
kelder-0.0.7-py3-none-any.whl Python 3 none any Details for kelder-0.0.7-py3-none-any.whl

Total release size: 100.8 kB

Release files / kelder-0.0.7.tar.gz

Download URL kelder-0.0.7.tar.gz
Size 47.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9d49a9bbe507684f92c19b79701732f0dd393e003007e33963a9ac7664beec34
BLAKE2b-256 checksum
How to use checksums
48eceeee14facd4b2ffffa650c4bea5c8a660f5b9c2867d7d595870a72043a1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / kelder-0.0.7-py3-none-any.whl

Download URL kelder-0.0.7-py3-none-any.whl
Size 53.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dab8e5aaa4cf14ecb845e0223e496d2bd15f18c8d9bdab96e690f14c434de8aa
BLAKE2b-256 checksum
How to use checksums
be6a6bc10f4dfde831f4d56144df83248151c9f4e8b0c32430451bd9d9ecc70f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for kelder 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kelder-0.0.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page