r44
Relay44 CLI for market ops, trading, and agent execution.
It stays a regular CLI. The new pieces are there to make repeated operator work less brittle: named profiles, a real shared shell parser, local workflows, local hooks, and shell session logs.
Install
Or build from source:
Quick start
# configure a profile
# check the profile
# browse markets
# authenticate
# trade
# interactive mode
Profiles
Profiles isolate API URL, auth state, wallet, and default output mode.
The active profile is stored in the config file. Override it per command with --profile <name>.
Doctor
r44 doctor checks:
- API reachability
- authenticated request viability
- wallet presence
- profile completeness
- shell completion installation
Use it after setup, after switching profiles, or when an operator environment feels off.
Shell
r44 shell uses the same clap parser as the normal CLI. If a command works at the top level, it works in the shell.
Inside the shell:
- omit the
r44prefix - use
helporhelp <command> - use
Ctrl-Rfor history search - use
exitorquitto leave
The shell persists:
- command history
- session logs as JSONL
Workflows
Workflows are local command sequences stored in CLI config. They are not plugins and they are not repo-managed.
Supported placeholders inside workflow steps:
{{1}},{{2}}, ... for positional args{{args}}for all args{{profile}}{{api_url}}
Example workflow config:
Hooks
Hooks are local shell commands that run before or after specific command paths.
Supported stages:
prepost
Hook matching is exact on command path, for example:
orders placeorders cancel-allworkflow run
Example:
Available hook env vars:
R44_HOOK_STAGER44_COMMAND_PATHR44_PROFILER44_API_URLR44_SOURCER44_EXIT_STATUSR44_DURATION_MS
Sessions
Shell commands are logged locally as JSONL.
session replay is dry-run by default. Use --execute to actually rerun commands.
Config layout
The CLI config stores:
active_profileprofilesworkflowshookssession_logaliases
Example:
Environment variables
| Variable | Description |
|---|---|
R44_API_URL |
Override API base URL |
R44_PROFILE |
Override selected profile |
R44_ACCESS_TOKEN |
Override stored access token |
R44_OUTPUT |
Output format: table or json |
R44_QUIET |
Suppress non-essential output |
R44_WALLET |
Solana wallet address for login |
R44_PRIVATE_KEY |
Ed25519 private key for agent login |
Shell completions
License
Apache-2.0