Back to z4p

Documentation

Getting Started with z4p

z4p is a Rust-native trading harness. It is designed so that powerful automation never means giving up control.

The philosophy

  • Default posture: observe-only + dry-run.
  • Every agent has a vault bible (Markdown): soul, instructions, memories, skills, loops, bot configs.
  • Bots are scoped — they only see and do what their policy + wallet roles allow.
  • Writes require explicit approval by default.

Core pieces

PieceWhat it is
Vault bibleSingle source of truth for one agent
Tick engineDrives the compose → retrieve → simulate → approve → execute loop
PermissionEngineEnforces bot policies, allowances, halts
GatewayLocal HTTP + /vault UI + MCP endpoint
LoopsReusable behavior (price_watcher, etc.)

Your first 10 minutes

  1. Install + doctor
  2. z4p gateway
  3. Create a bot via CLI or UI
  4. Run dry-run ticks and read the output
  5. Decide what (if anything) deserves real keys and policies

z4p Mobile will surface approvals and portfolio context later.

For deeper details, read the architecture docs in the z4p repository.