You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install to ~/.local/bin by default — no sudo needed. Respects
BITMEX_INSTALL_DIR override. Fetches release tag from GitHub API;
aligns asset names with cargo-dist output. Warns if install dir is not
on PATH with shell-specific instructions.
Splits curl | sh into download-then-run via mktemp to avoid AI agent
security blocks and /tmp symlink attacks.
Dual auth path in onboarding prompt: share keys directly or run
bitmex auth add in terminal to keep keys away from the AI.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
If I don't have a BitMEX account yet, walk me through:
@@ -33,8 +33,9 @@ If I don't have a BitMEX account yet, walk me through:
33
33
## API Key
34
34
Guide me to https://www.bitmex.com/app/apiKeys to create an API key with
35
35
"Order" and "Account" permissions (add "Withdraw" only if I need withdrawals).
36
-
Ask me for the key and secret, then run:
37
-
bitmex auth set --api-key <KEY> --api-secret <SECRET>
36
+
Ask me to choose:
37
+
- Share my key and secret with you, and run: bitmex auth set --api-key <KEY> --api-secret <SECRET>
38
+
- Or keep keys private: ask me to open a terminal and run `bitmex auth add` myself (do NOT run this for me — it requires an interactive terminal)
38
39
39
40
## Verify
40
41
Run: bitmex account me -o json
@@ -67,10 +68,10 @@ And suggest starting with --testnet to practice safely before using real funds.
67
68
### Install script (recommended)
68
69
69
70
```bash
70
-
curl -sSfL https://raw.githubusercontent.com/BitMEX/bitmex-cli/master/install.sh | sh
71
+
tmpfile="$(mktemp)"&&curl -sSfL https://raw.githubusercontent.com/BitMEX/bitmex-cli/master/install.sh -o "$tmpfile"&& sh "$tmpfile"
71
72
```
72
73
73
-
Downloads a pre-built binary for your platform (macOS/Linux, x86_64/arm64), verifies the SHA256 checksum, and installs to `/usr/local/bin`. No Rust or build tools needed. Requires `curl`, `tar`, and `sha256sum` (or `shasum`). May prompt for `sudo` if `/usr/local/bin` is not writable.
74
+
Downloads a pre-built binary for your platform (macOS/Linux, x86_64/arm64), verifies the SHA256 checksum, and installs to `~/.local/bin`. No Rust or build tools needed. No `sudo` required. Requires `curl`, `tar`, and `sha256sum` (or `shasum`). Override the install location with `BITMEX_INSTALL_DIR`.
0 commit comments