{"id":49286896,"url":"https://github.com/gryszzz/kaspilot","last_synced_at":"2026-04-25T22:01:20.243Z","repository":{"id":353823947,"uuid":"1220865105","full_name":"gryszzz/KasPilot","owner":"gryszzz","description":"KASPilot is a CPU \u0026 GPU miner , high-signal Kaspa operations console. W / ASIC fleet control.","archived":false,"fork":false,"pushed_at":"2026-04-25T17:51:41.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-25T19:23:57.671Z","etag":null,"topics":["cpu-mining","cryptocurrency","gpu-mining","kaspa","kaspa-miner","kheavyhash","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gryszzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-25T12:46:26.000Z","updated_at":"2026-04-25T18:42:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gryszzz/KasPilot","commit_stats":null,"previous_names":["gryszzz/kaspa-miner"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gryszzz/KasPilot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryszzz%2FKasPilot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryszzz%2FKasPilot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryszzz%2FKasPilot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryszzz%2FKasPilot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gryszzz","download_url":"https://codeload.github.com/gryszzz/KasPilot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryszzz%2FKasPilot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32278249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpu-mining","cryptocurrency","gpu-mining","kaspa","kaspa-miner","kheavyhash","rust"],"created_at":"2026-04-25T22:01:18.309Z","updated_at":"2026-04-25T22:01:20.234Z","avatar_url":"https://github.com/gryszzz.png","language":"Rust","readme":"# KASPilot\n\n[![CI](https://github.com/gryszzz/KasPilot/actions/workflows/ci.yml/badge.svg)](https://github.com/gryszzz/KasPilot/actions/workflows/ci.yml)\n[![Release](https://github.com/gryszzz/KasPilot/actions/workflows/release.yml/badge.svg)](https://github.com/gryszzz/KasPilot/actions/workflows/release.yml)\n[![Latest Release](https://img.shields.io/github/v/release/gryszzz/KasPilot?label=release)](https://github.com/gryszzz/KasPilot/releases/latest)\n[![Rust](https://img.shields.io/badge/rust-2021-111827)](https://www.rust-lang.org/)\n[![Kaspa](https://img.shields.io/badge/kaspa-only-70c7ba)](https://kaspa.org/)\n\n```text\n _  __    _    ____  ____  _ _       _\n| |/ /   / \\  / ___||  _ \\(_) | ___ | |_\n| ' /   / _ \\ \\___ \\| |_) | | |/ _ \\| __|\n| . \\  / ___ \\ ___) |  __/| | | (_) | |_\n|_|\\_\\/_/   \\_\\____/|_|   |_|_|\\___/ \\__|\n\nKASPA OPS TERMINAL  ::  ASIC FLEET CONTROL  ::  CPU DEV MINER\n```\n\n**KASPilot** is a Kaspa-only mining operations terminal built for ASIC fleet visibility, pool validation, and local kHeavyHash benchmarking. It gives you a production-facing fleet controller and a polished CPU dev miner in one Rust binary.\n\nThe production lane is ASIC operations. The CPU lane is for benchmarking, pool testing, stratum validation, and development work.\n\n\n## UI Preview\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/kaspilot-ui-preview.svg\" alt=\"CLI-rendered KASPilot real-time mining cockpit preview\" width=\"100%\"\u003e\n\u003c/p\u003e\n\n## Signal\n\n`kaspa` `kheavyhash` `asic-mining` `stratum` `stratum-ssl` `cgminer-api` `fleet-monitoring` `cpu-benchmark` `autotune` `rust` `tui` `mining-ops`\n\n## Command Deck\n\n| Mission | Command | What it does |\n| --- | --- | --- |\n| Fleet control | `kaspa-miner --fleet` | Monitor ASIC reachability, TH/s, temp, fan, uptime, pool, accepted/rejected shares |\n| One-shot audit | `kaspa-miner --fleet --fleet-once` | Poll every configured ASIC once and exit |\n| CPU benchmark | `kaspa-miner --benchmark` | Measure local kHeavyHash throughput without touching a pool |\n| CPU autotune | `kaspa-miner --tune` | Sweep thread and batch settings, then rank the fastest configs |\n| Dev mining | `kaspa-miner` | Run the Kaspa Common Stratum CPU dev miner with TUI |\n| Plain logs | `kaspa-miner --no-tui` | Run without dashboard rendering for tmux, services, and logs |\n\n## What It Has\n\n| Layer | Capability |\n| --- | --- |\n| Coin target | Kaspa only |\n| Fleet telemetry | CGMiner-compatible `summary`, `pools`, `devs`, `stats` over TCP |\n| ASIC inventory | TOML registry with model, location, API/web ports, expected TH/s, enabled state |\n| Pool transport | `stratum+tcp://`, `stratum://`, `tcp://`, `stratum+ssl://`, `ssl://` |\n| Pool hardening | Connect timeout, TLS support, `TCP_NODELAY`, reconnect loop |\n| Hash path | kHeavyHash PoW using `kaspa-hashes` primitives |\n| Difficulty | Share target derived from `mining.set_difficulty` |\n| Nonce scan | Extranonce support plus non-overlapping per-thread stride |\n| Operator UI | Ratatui dashboard, plain logs, fleet report, benchmark report |\n| Performance knobs | Release LTO, native CPU build option, configurable batch size, autotune matrix |\n| Releases | Linux archive, signed Windows archives, notarized macOS universal installer |\n\n## Download\n\nGrab the latest binaries from:\n\nhttps://github.com/gryszzz/KasPilot/releases/latest\n\nRelease assets:\n\n- `kaspa-miner-macos-universal.pkg`\n- `kaspa-miner-x86_64-unknown-linux-gnu.tar.gz`\n- `kaspa-miner-x86_64-pc-windows-msvc.zip`\n- `kaspa-miner-aarch64-pc-windows-msvc.zip`\n- `SHA256SUMS.txt`\n\nEach release archive includes the binary, `README.md`, `config.example.toml`, and `fleet.example.toml`. Windows archives also include a first-run installer that puts the binary on your user path.\n\n## First Run\n\nmacOS, recommended universal package:\n\n```sh\nsudo installer -pkg kaspa-miner-macos-universal.pkg -target /\nkaspa-miner --version\n```\n\nWindows:\n\n```powershell\n.\\install-windows.cmd\nkaspa-miner --version\n```\n\nPublic desktop releases are blocked unless Apple notarization and Windows Authenticode signing secrets are configured. See `docs/macos-no-warning-release.md` and `docs/windows-no-warning-release.md`.\n\n## Install From Source\n\n```sh\ngit clone https://github.com/gryszzz/KasPilot.git\ncd KasPilot\ncargo build --release\n```\n\nFor best local benchmark numbers on the same machine:\n\n```sh\nRUSTFLAGS=\"-C target-cpu=native\" cargo build --release\n```\n\nCreate local configs:\n\n```sh\ncp config.example.toml config.toml\ncp fleet.example.toml fleet.toml\n```\n\n## ASIC Fleet Control\n\nEdit `fleet.toml`:\n\n```toml\npoll_secs = 30\ntimeout_ms = 750\n\n[[devices]]\nname = \"kas-rig-01\"\nhost = \"192.168.1.101\"\nmodel = \"KS-series\"\nlocation = \"rack-a\"\nexpected_hashrate_ths = 9.5\napi_port = 4028\nweb_port = 80\nenabled = true\n```\n\nRun a single fleet scan:\n\n```sh\n./target/release/kaspa-miner --fleet --fleet-once\n```\n\nRun the controller continuously:\n\n```sh\n./target/release/kaspa-miner --fleet\n```\n\nIf an ASIC exposes a CGMiner-compatible API on `api_port`, KASPilot normalizes live TH/s, average TH/s, temperature, fan RPM, uptime, pool URL, accepted shares, and rejected shares. If a unit only exposes a web UI, leave `api_port` unset and use `web_port` for reachability.\n\n## CPU Dev Miner\n\nEdit `config.toml`:\n\n```toml\npool = \"stratum+ssl://pool.example.com:5555\"\nwallet = \"kaspa:your_wallet_address\"\nworker = \"rig-01\"\nthreads = 8\nbatch_size = 4096\nreconnect_secs = 5\n```\n\nStart the TUI:\n\n```sh\n./target/release/kaspa-miner\n```\n\nUse plain logs:\n\n```sh\n./target/release/kaspa-miner --no-tui\n```\n\nOverride config from the command line:\n\n```sh\n./target/release/kaspa-miner \\\n  --pool stratum+ssl://pool.example.com:5555 \\\n  --wallet kaspa:your_wallet_address \\\n  --worker rig-01 \\\n  --threads 8 \\\n  --batch-size 4096 \\\n  --no-tui\n```\n\nSupported pool URL schemes:\n\n- `stratum+tcp://host:port`\n- `stratum://host:port`\n- `tcp://host:port`\n- `stratum+ssl://host:port`\n- `ssl://host:port`\n\n## Benchmark And Autotune\n\nSingle benchmark:\n\n```sh\n./target/release/kaspa-miner --benchmark --threads 8 --batch-size 4096 --bench-seconds 15\n```\n\nAutotune:\n\n```sh\n./target/release/kaspa-miner --tune --tune-max-threads 8 --tune-seconds 5\n```\n\nCustom sweep:\n\n```sh\n./target/release/kaspa-miner \\\n  --tune \\\n  --tune-max-threads 12 \\\n  --tune-batches 1024,4096,16384,65536 \\\n  --tune-seconds 8\n```\n\nTuning rules:\n\n- Start with physical performance cores.\n- Increase `batch_size` to reduce bookkeeping overhead.\n- Lower `batch_size` if you need faster work refresh on high-latency pools.\n- Keep clocks stable. Thermal throttling eats hashrate.\n- Use nearby pool endpoints to reduce stale shares.\n- Use `--no-tui` for `systemd`, `launchd`, Docker, tmux, and log collectors.\n\n## CLI Reference\n\n```text\n--config \u003cPATH\u003e       CPU miner config path, default: config.toml\n--pool \u003cURL\u003e          stratum+tcp://host:port or stratum+ssl://host:port\n--wallet \u003cADDRESS\u003e    kaspa: or kaspatest: address\n--worker \u003cNAME\u003e       Worker name appended to wallet for pool login\n--threads \u003cN\u003e         CPU worker threads\n--batch-size \u003cN\u003e      Nonces per thread before checking pool work\n--no-tui              Plain terminal logs\n--benchmark           Offline kHeavyHash benchmark\n--bench-seconds \u003cN\u003e   Benchmark duration\n--tune                Sweep CPU settings and rank local hashrate\n--tune-seconds \u003cN\u003e    Per-test duration for --tune\n--tune-max-threads N  Maximum thread count for --tune\n--tune-batches LIST   Comma-separated batch sizes for --tune\n--fleet               ASIC fleet controller mode\n--fleet-config \u003cPATH\u003e Fleet config path, default: fleet.toml\n--fleet-once          Poll fleet once and exit\n```\n\n## Stratum Notes\n\nKASPilot expects the common two-parameter Kaspa notify payload:\n\n```text\nmining.notify params: [\"jobId\", \"headerHash\"]\n```\n\nThe `headerHash` is parsed as:\n\n```text\n32 bytes pre_pow_hash || 8 bytes timestamp_le\n```\n\nThe miner submits:\n\n```text\nmining.submit params: [\"wallet.worker\", \"jobId\", \"nonce\"]\n```\n\nThe nonce is the full 8-byte hex nonce, including any pool-provided extranonce prefix.\n\n## Production Checklist\n\n- Confirm your pool supports Kaspa Common Stratum.\n- Prefer `stratum+ssl://` when the pool supports TLS.\n- Keep wallet addresses in `config.toml`, not shell history.\n- Keep ASIC management ports on a trusted LAN or VPN.\n- Do not expose CGMiner API ports to the public internet.\n- Use `--fleet` for ASIC operations and CPU mode for protocol validation.\n- Use release builds for benchmarks and production binaries.\n- Use `RUSTFLAGS=\"-C target-cpu=native\"` only when the binary will run on the build machine.\n- Watch rejected shares. Repeated low-difficulty, duplicate, or stale share errors usually indicate pool, protocol, or latency issues.\n\n## Release Flow\n\nCI runs on Linux, macOS, and Windows. Release archives are produced whenever a `v*` tag is pushed.\n\n```sh\ngit tag v0.1.1\ngit push origin v0.1.1\n```\n\nThe release workflow builds:\n\n- `x86_64-unknown-linux-gnu`\n- `x86_64-pc-windows-msvc`\n- `aarch64-pc-windows-msvc`\n- `macos-universal.pkg`\n\n## Roadmap\n\n- Vendor-specific adapters for richer IceRiver and Bitmain-style telemetry.\n- JSON and CSV fleet export.\n- Alert thresholds for offline rigs, high temperature, fan faults, and reject spikes.\n- Pool failover visibility and worker grouping.\n- Optional local web dashboard.\n- Apple notarization and Windows Authenticode signing.\n\n## References\n\n- Kaspa Common Stratum Protocol: https://file1.iceriver.io/protocols/KAS-Miner-Mining-Protocol-EN.pdf\n- Rusty Kaspa PoW primitives: https://docs.rs/kaspa-pow\n- Kaspa hash primitives: https://docs.rs/kaspa-hashes\n- CGMiner-compatible API pattern: https://docs.luxor88.com/firmware/api/cgminer/summary\n\n## License\n\n`Cargo.toml` declares `MIT OR Apache-2.0`. Add matching license files before public distribution.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgryszzz%2Fkaspilot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgryszzz%2Fkaspilot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgryszzz%2Fkaspilot/lists"}