PeerHold

Nobody can type kubectl on a small screen

No tab completion, half the screen is keyboard, and one typo means starting over. cmdbin runs on the machine that holds your commands and serves them to whatever you're holding. Pick a command, fill the blanks in a form, copy it finished.

Download cmdbin Try it below Free to download and use. Nothing to sign up for.
cmdbin icon
First

Run the binary

One file, on the machine that holds your commands. It opens a browser at a loopback address and keeps the bin at ~/.cmdbin/bin.json.

Then

Switch sharing on

A second listener starts on your local network over TLS and prints an address and a six-digit PIN. Off until you ask for it — and off means no listener exists.

After that

Open it on the other device

In the browser it already has. Enter the PIN once, search, fill the form, copy. No app store, no account, no sync.

The real app: switch sharing on, open it on another device, accept the self-signed certificate warning, then find, copy and paste a command.

This is what your other device opens

The same interface, running in this page with 21 sample entries. Try dockr, k8s, or --force-with-lease, pick one and fill in the blanks. The Phone and Tablet switches show those layouts. Nothing you type leaves the page; open the network tab and watch.

cmdbin sample data · no network calls
cmdbin

    © 2026 PeerHold About Safety notes Privacy License Licenses Imprint

    The search is a simplified stand-in and the usage numbers are invented. Everything else behaves like the app: the same placeholders and types, and secrets dropped after the copy.

    Quick start Download, check the hash, unpack, run. One line per platform.

    Linux x86-64

    curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-linux-v1_1.tar.gz && curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-linux-v1_1.tar.gz.sha256 && sha256sum -c cmdbin-linux-v1_1.tar.gz.sha256 && tar -xzf cmdbin-linux-v1_1.tar.gz && chmod +x cmdbin-linux-v1_1 && ./cmdbin-linux-v1_1 -seed tour.json

    macOS Apple silicon · M1 and later

    curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-mac-v1_1.tar.gz && curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-mac-v1_1.tar.gz.sha256 && shasum -a 256 -c cmdbin-mac-v1_1.tar.gz.sha256 && tar -xzf cmdbin-mac-v1_1.tar.gz && (xattr -dr com.apple.quarantine cmdbin-mac-v1_1 tour.json 2>/dev/null || true) && chmod +x cmdbin-mac-v1_1 && ./cmdbin-mac-v1_1 -seed tour.json

    macOS Intel

    curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-mac-intel-v1_1.tar.gz && curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-mac-intel-v1_1.tar.gz.sha256 && shasum -a 256 -c cmdbin-mac-intel-v1_1.tar.gz.sha256 && tar -xzf cmdbin-mac-intel-v1_1.tar.gz && (xattr -dr com.apple.quarantine cmdbin-mac-intel-v1_1 tour.json 2>/dev/null || true) && chmod +x cmdbin-mac-intel-v1_1 && ./cmdbin-mac-intel-v1_1 -seed tour.json

    Windows x86-64 · PowerShell

    curl.exe -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-v1_1.zip
    curl.exe -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-v1_1.zip.sha256
    $want = (Get-Content cmdbin-v1_1.zip.sha256 -Raw).Trim().Split(' ')[0].ToLower()
    $got  = (Get-FileHash cmdbin-v1_1.zip -Algorithm SHA256).Hash.ToLower()
    if ($got -eq $want) { Expand-Archive cmdbin-v1_1.zip -DestinationPath . -Force; .\cmdbin-v1_1.exe -seed tour.json } else { Write-Error 'Checksum failed' }

    Windows on ARM Snapdragon · PowerShell

    curl.exe -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-arm64-snapdragon-v1_1.zip
    curl.exe -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-arm64-snapdragon-v1_1.zip.sha256
    $want = (Get-Content cmdbin-arm64-snapdragon-v1_1.zip.sha256 -Raw).Trim().Split(' ')[0].ToLower()
    $got  = (Get-FileHash cmdbin-arm64-snapdragon-v1_1.zip -Algorithm SHA256).Hash.ToLower()
    if ($got -eq $want) { Expand-Archive cmdbin-arm64-snapdragon-v1_1.zip -DestinationPath . -Force; .\cmdbin-arm64-snapdragon-v1_1.exe -seed tour.json } else { Write-Error 'Checksum failed' }

    Raspberry Pi OS 64-bit · headless, shared to your phone

    curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-linux-arm64-pios-modern-v1_1.tar.gz && curl -fLO https://github.com/PeerHold/cmdbin/releases/download/v1.1/cmdbin-linux-arm64-pios-modern-v1_1.tar.gz.sha256 && sha256sum -c cmdbin-linux-arm64-pios-modern-v1_1.tar.gz.sha256 && tar -xzf cmdbin-linux-arm64-pios-modern-v1_1.tar.gz && chmod +x cmdbin-linux-arm64-pios-modern-v1_1 && ./cmdbin-linux-arm64-pios-modern-v1_1 -seed tour.json -no-browser -share

    Which Mac file? Apple menu → About This Mac. Any M-series chip (M1 or later) is Apple silicon; anything named Intel takes the Intel file. The Intel build also runs on Apple silicon through Rosetta, but the Apple silicon build will not start on an Intel Mac.

    What the flags and the macOS step do

    -seed imports the tour file (included in every archive) if your bin is empty, so you land on a working bin instead of an empty box. -no-browser -share is the headless pair: nothing opens locally, and it prints an address and a PIN for another device. On macOS, xattr clears the download quarantine flag, without which the unsigned binary is refused. It runs only after the checksum passes.

    Archives and checksums are on GitHub releases. A matching hash proves the file arrived intact, not what it does; the checks below test behavior.

    Filling the bin without typing A local HTTP API, for the model or script of your choice.

    cmdbin answers requests. It never makes them.

    Claude Code, Ollama, a shell script, or you with curl call a local endpoint; cmdbin replies. It opens no connection of its own, and a packet capture shows the difference.

    cmdbin holds no API key, no model endpoint and no vendor relationship. Which model you use, local or hosted, is your client's business.

    A worked loop

    # 1. learn the contract
    curl -s localhost:7717/api/llm > contract.json
    
    # 2. read a project back, in a shape a model can edit
    curl -s 'localhost:7717/api/llm/pack?groups=3&limit=20' > pack.json
    
    # 3. hand both to a model, collect its JSON
    
    # 4. check it without writing anything
    curl -s -X POST 'localhost:7717/api/llm/add?dry=1' --data-binary @generated.json | jq
    
    # 5. write it
    curl -s -X POST localhost:7717/api/llm/add --data-binary @generated.json | jq

    GET describes and POST executes on the same path. Step 4 writes nothing and returns a problems array naming the command, the field and the error, ready to hand back to the model as a correction.

    What a generated command can and cannot do to your bin

    • It can add. It cannot modify or delete. Those endpoints don't exist. Sending a batch twice skips duplicates rather than overwriting.
    • Everything added this way carries the tag llm. Applied by the server and kept on export, so a batch can be reviewed or deleted as a batch.
    • The composed text has to re-parse to what was asked for, using the app's own parser. Anything that reads back differently is refused.
    • A command that looks destructive but arrived unmarked gets a note saying exactly that, visible to whoever copies it later. It doesn't set the danger flag; only a person sets that.

    What it doesn't do

    • No account, no sign-in, no email address
    • No outbound requests, ever — no update check either
    • No sync server, because there is no server
    • No app to install on the phone
    • No telemetry, crash reporting, or analytics
    • No Electron, no runtime, no bundled browser
    • No execution — it moves text, you decide what runs
    • No lock-in — your bin is JSON you can read

    How to check all of that Every claim above that can be tested from outside, and the command that tests it.

    Five checks run them yourself · Linux

    # 1. Nothing goes out. Start this first, then start cmdbin, use it, arm the API.
    #    Expect nothing from cmdbin, including at startup. Other programs will show up;
    #    the strace line below watches cmdbin alone and should print no connect() at all.
    sudo tcpdump -i any -n 'not (host 127.0.0.1 or host ::1) and not port 22'
    strace -f -e trace=connect ./cmdbin-linux-v1_1 -no-browser
    
    # 2. Only loopback is listening until you switch sharing on. Expect 127.0.0.1:7717.
    ss -ltnp | grep cmdbin
    
    # 3. It works identically with no network at all: a namespace with loopback only.
    unshare -rn sh -c 'ip link set lo up; ./cmdbin-linux-v1_1 -no-browser & sleep 1; curl -s localhost:7717/ | head -c 200'
    
    # 4. A value typed into a secret field is not in the file. Copy, quit, then expect no output.
    grep -i 'hunter2' ~/.cmdbin/bin.json
    
    # 5. One file, nothing linked in. Expect "not a dynamic executable". Your data is the other one.
    ldd ./cmdbin-linux-v1_1 ; cat ~/.cmdbin/bin.json

    Repeat check 2 after switching sharing on and off: off means the listener is gone, not idle. The API adds no listener, so check 2 looks the same with it armed. On macOS, use otool -L instead of ldd.

    Four more checks for the local API
    # 1. Off until you arm it. Start cmdbin normally. Expect: api-off
    curl -s localhost:7717/api/llm | jq -r .reason
    
    # 2. Armed, but no token. Start with -api. Expect: api-token-missing
    curl -s localhost:7717/api/llm | jq -r .reason
    
    # 3. A web page can't reach it: browsers always send Origin. Expect: api-origin
    curl -s -H "X-Cmdbin-Token: $TOKEN" -H 'Origin: https://example.com' \
      localhost:7717/api/llm | jq -r .reason
    
    # 4. Reading doesn't grant writing. Still armed with -api only. Expect: api-read-only
    curl -s -H "X-Cmdbin-Token: $TOKEN" -H 'Content-Type: application/json' \
      -X POST localhost:7717/api/llm/add --data-binary '{"commands":[]}' | jq -r .reason

    Set TOKEN from the startup banner. Each refusal names the rule that stopped it. Keep the packet capture from check 1 running; nothing here should add to it.

    The license Free to use. Not open source.

    • You may install and use it on any number of devices you own or control, for personal or internal business use, free of charge
    • You may pass the binary on, provided it is unmodified, complete with its notices, and free of charge
    • You may not modify it, make derivative works, or reverse engineer it — except where your local law says otherwise and doesn't allow that to be contracted away
    • Your bin file is yours. It stays yours if the license ends, and it is readable JSON with or without us

    The full text, privacy notes and imprint are inside the app, offline, each with a version and date.

    Questions

    Is sharing safe to leave on?
    It's a convenience for a network you trust, not a hardened channel. Anyone with the address and PIN can read and write your bin. The PIN locks after ten wrong guesses and sessions last twelve hours. The self-signed certificate stops passive listening, not someone already between your devices. Switch it off when you're done; that ends every session.
    Can I bind it to 0.0.0.0 instead of pairing?
    You can, with -host, and you shouldn't. That exposes the bin with no PIN and no encryption — anyone who can reach the port reads and edits everything. The PIN and the TLS belong to the sharing feature, not to the main address. If another device needs access, use sharing.
    The name says "bin" — is my data encrypted?
    No. The bin and every export are plaintext JSON, readable by anyone who can read your disk or backups. Use full-disk encryption if that matters. Values typed into secret fields are never written at all.
    Does it detect dangerous commands?
    No. Nothing analyzes command text. You tick a box and write a note, and that note is what you see later. An unmarked command hasn't been found harmless; it hasn't been checked at all.
    How do I sync between machines?
    With infrastructure you already run. Export to JSON and keep it in a Git repo alongside your dotfiles, or drop it in a Syncthing folder. Import only adds and never overwrites, so you can't lose a local edit; the worst case is a near-duplicate. There's no built-in sync because that would mean running a server.
    What actually gets stored, and for how long?
    One JSON file, at the path shown in the About panel: your commands, projects, tags, placeholder metadata, and usage history. Usage events are kept for 365 days or the most recent 100 per command, whichever is smaller. Remembered placeholder values are capped at 10 per placeholder, oldest dropped first. Secret values are never written. Deleting a command moves it to the trash, where it stays inside the file until you empty it.
    Why isn't it open source?
    It's free to use and to pass on unmodified, and it won't grow a subscription. What you don't get is the source, so the claims here are worth what you can test from outside, which is most of them. The five checks above are the ones we'd run in your position.
    Why not just fzf and a text file?
    If that already works for you, keep it. What got tedious for us was filling in the variable parts by hand every time, keeping credentials out of a file that gets backed up, remembering what a command needed six months later, and doing any of it on a phone. A text file on your laptop is not reachable from the device in your hand, and that is the gap this fills.
    What happens if you stop maintaining it?
    Your bin is a JSON file on your own disk and the binary keeps working, because nothing about it depends on us being here. There is no license server to expire, no account to deactivate, and no update check to fail. You lose future versions, and nothing else.

    Follow releases RSS. No signup.

    New cmdbin versions and checksum changes go out here. If you verify hashes before running a binary, this is how you hear there's a new one.

    feed.xml
    Open the feed

    A plain file with no tracking attached. Whoever serves the copy you are reading may keep ordinary access logs.

    Support the work

    Everything here is free, and staying that way. If something saved you an afternoon, send some BTC.

    Found a bug? Open an issue on GitHub, or find me on Bluesky at @peerhold.