github krakenfx/kraken-cli v0.4.0
0.4.0 - 2026-07-27

latest release: v0.4.1
18 days ago

Release Notes

Version 0.4.0 adds a repeatable research loop around the trading CLI. Users can
isolate a paper account, record a market window, preserve decisions, replay the
same observations, and grade the result against criteria fixed in advance.

The release exposes 173 request/response commands in 14 groups and ships 59
agent skills. Streaming and recording remain CLI-only. The project is still
alpha software: test with paper trading and use least-privilege credentials.

Research workflow

Workspaces are durable account scopes. Creation also funds the paper
account, eliminating half-created states. Each workspace records its capital,
currency, fees, slippage, and optional pair restrictions. Resets open a new
journal epoch without deleting history. Reports separate session activity,
manual trades, resets, reconciliation drift, and current equity.

The familiar spot order verbs route to simulated execution inside a paper
workspace and retain live behavior outside one. Named live workspaces are
blocked until credentials can be scoped safely.

Sessions are recorded windows over a workspace journal. They preserve
opening and closing valuation, market data, provenance, fills, and decision
notes. A separate typed state cell lets an agent resume without mixing its
cursor into the evidence. Sessions distinguish recording, stopped, aborted,
and damaged states; repeated stops return the existing result.

Tapes store WebSocket data in DuckDB, JSONL, or both. They carry symbols,
channels, time bounds, integrity counters, and completion state. SIGINT and
SIGTERM finalize every backend. Concurrent writers are refused, readers can
coexist with a writer, and finalized tapes can be appended or replayed.
Incomplete captures cannot masquerade as replayable evidence.

--monitor adds JSONL diagnostics on stderr for latency, throughput, gaps,
staleness, heartbeats, reconnects, dropped events, and parse failures. Stdout
remains reserved for command data.

Lab experiments seal a hypothesis, thresholds, and optional live/replay
plan before results exist. The lab verifies the seal, identifies the next run,
checks tape hashes, scores stopped sessions, and compares every planned result.
Failures remain visible rather than disappearing from a comparison.

Scoring covers return, drawdown, fees and execution friction, turnover, hit
rate, profit factor, trade counts, and slippage sensitivity. explain pnl
reconciles the stop total across price movement, fees, spread, slippage,
residual differences, missed-fill counterfactuals, and recorded decisions.

Automation contracts

The public catalog describes parameters, allowed values, authentication,
examples, and safety annotations for all request/response commands. MCP exposes
those commands through the same parser and dispatcher as the CLI. Unknown MCP
arguments now fail with the accepted names instead of being dropped.

JSON-formatted parser failures use the stable error envelope. Rate-limit errors
include retry guidance, a retryable flag, and the relevant Kraken documentation
URL. Workspace, session, tape, experiment, and P&L request/response operations
are available through MCP; long-running streams are not.

Financial values in workspace and session contracts use exact decimal strings.
Pair restrictions are enforced before price lookup or journal mutation.
Damaged manifests, journals, tapes, and seals fail closed. Destructive resets
require confirmation, and futures-paper mutations are refused inside a
workspace because that simulator still has one global account.

Release archives are built with cargo-dist for Apple Silicon and Intel macOS
plus ARM64 and x86-64 Linux. Archives include SHA-256 checksums, provenance
attestations, and Minisign signatures.

Changes requiring migration

  • paper init, paper reset, paper status, and paper balance remain as
    compatibility aliases, but lifecycle responses now use the workspace
    contract. Amounts are decimal strings.
  • paper reset can change capital, currency, fee, and slippage for the new
    epoch. Unattended resets require the global --yes flag.
  • Recording vocabulary now uses tape. record --dataset remains a CLI
    alias, but output and stored metadata use tape.
  • MCP tool kraken_dataset_list is replaced by kraken_tape_list; its replay
    reference field is tape, not dataset.
  • Playground lifecycle commands moved to session start, stop, list,
    show, and note. Bare kraken playground remains the guided demo.
  • --session and session references now accept latest, s<N>, or a unique
    label. Reusable recordings use tape:<NAME>; session recordings use
    session:s<N>.
  • MCP argument names follow the CLI. Existing aliases still work, but unknown
    names are rejected.

Upgrade from 0.3.2

  1. Re-list MCP tools and refresh cached schemas.
  2. Replace kraken_dataset_list with kraken_tape_list.
  3. Read paper lifecycle responses as workspace contracts with decimal strings.
  4. Add --yes to unattended resets.
  5. Select paper accounts with --workspace <NAME> or
    KRAKEN_WORKSPACE=<NAME>. Empty, omitted, and default select the flat
    real-account layout.
  6. Replace playground lifecycle calls with session commands.
  7. Update recording references to tape:<NAME> or session:s<N>.

Release facts

  • Version: 0.4.0
  • Minimum Rust version: 1.97
  • Catalog: 173 request/response commands in 14 groups
  • Skills: 59
  • Previous release: 0.3.2

Install kraken-cli 0.4.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/krakenfx/kraken-cli/releases/download/v0.4.0/kraken-cli-installer.sh | sh

Download kraken-cli 0.4.0

File Platform Checksum
kraken-cli-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
kraken-cli-x86_64-apple-darwin.tar.gz Intel macOS checksum
kraken-cli-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
kraken-cli-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum

Verifying GitHub Artifact Attestations

The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:

gh attestation verify <file-path of downloaded artifact> --repo krakenfx/kraken-cli

You can also download the attestation from GitHub and verify against that directly:

gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>

Don't miss a new kraken-cli release

NewReleases is sending notifications on new releases.