Skip to main content

magehand

The developer CLI for building apps on davidlarrimore's homelab, the same way on the owner's MacBook (Claude Code) and in OpenClaw's VM (its coding workers). It reads platform state and runs apps locally. It never deploys: changes go through pull requests.

It is public because it holds nothing sensitive. Every command needs access that only the owner has: the private homelab repos on GitHub, the private *.lab network, and an authentik passkey for OpenBao.

Install

brew install uv            # once
uv tool install magehand
magehand setup             # once per machine

magehand setup checks GitHub (gh auth login first) and Docker (Docker Desktop or OrbStack, for database blocks), makes sure the homelab's *.lab names resolve (if they don't, it asks for the homelab's DNS address, your home gateway, and points only *.lab lookups at it; magehand setup --undo reverses that), then signs you in. Every other command assumes this is done. Upgrade with uv tool upgrade magehand.

Commands

Command What it does
magehand guide [topic] The app platform guide, live from homelab-apps docs/platform/; magehand guide catalog for blocks and models
magehand app [name] The app's blocks, every env var its pod gets and where it comes from, its URLs. In an app repo the name is the repo's
magehand login Sign in to OpenBao through authentik (passkey) with role dev: read-only access to agent apps' LiteLLM keys, 1h (8h max). The token is kept in the macOS Keychain
magehand dev up|down|status Docker containers for the app's postgres/redis blocks (the blocks' own pinned images) on a per-app network, and local values for secret blocks
magehand run [--no-proxy] -- CMD Runs CMD with the env the app's pod gets: values from its Deployment, the LLM key from OpenBao, databases from dev up. Precedence: manifest < the repo's .magehand.env (committed, non-secret overrides such as WEB_DIR=./web) < your shell < secrets. A proxy on 127.0.0.1:8080 adds the X-authentik-* headers Traefik would, as you
magehand run --container [--no-build] [-- CMD] Builds the repo's Dockerfile and runs the image as its pod runs: read-only, /tmp tmpfs, the pod's user, no capabilities, exactly the pod's env. Secrets go in as -e NAME only, never in the image, argv or on disk
magehand setup [--undo] [--dns ADDRESS] Once per machine: GitHub, Docker, *.lab name resolution (the only step that may ask for your password), sign-in
magehand doctor Checks GitHub access, that openbao.lab is reachable, the sign-in and Docker
magehand version The installed version

Development

uv venv && uv pip install -e .
.venv/bin/python -m unittest discover -s tests

Python 3.9+ (the Mac's system Python works). Stdlib plus PyYAML. Releases: bump version in pyproject.toml, merge, then tag vX.Y.Z. The release workflow builds and publishes to PyPI through trusted publishing (no stored token). OpenClaw's VM installs a pinned version from homelab platform/openclaw/vm/versions.env.

Never commit secrets, tokens, IP addresses or email addresses: this repo is public.

Metadata

Release files for magehand 0.1.1

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

Source distribution (sdist)

Source distribution for magehand 0.1.1
File Size Uploaded
magehand-0.1.1.tar.gz 15.6 kB Details

Built distribution (wheel)

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

Total release size: 29.9 kB

Release files / magehand-0.1.1.tar.gz

Download URL magehand-0.1.1.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5ef5a0529c52aa7f36a965c3ffbba8bfb8b5f9f642df12d5f71dbfd6fec1d6d8
BLAKE2b-256 checksum
How to use checksums
a814fd5ec96cf9d46bb666fcd8162021b83ae3c5c2fc0fbea54163695bc87591
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 2, 2026.

Transparency log

Release files / magehand-0.1.1-py3-none-any.whl

Download URL magehand-0.1.1-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad1a6c0f5422da50b29aa6379da4c6c8a6a90d4cebd88befea3470191241df05
BLAKE2b-256 checksum
How to use checksums
1bb631bc5e2b8a86458ca4dafd97ed2fb70b1d1f6e85535f27ebbe0c1ea2c5a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 2, 2026.

Transparency log
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