@marketintell/cli
Command-line interface for MarketIntell — talk to the Brain, stream answers, and watch alpha signals from your terminal.
npm install -g @marketintell/cli
mi auth login --key mi_k_yourkey
mi chat "Should I long or short BTC right now?"
mi signals --watch
Install
npm i -g @marketintell/cli
Requires Node 18+ (for native fetch).
Get an API key
Sign up at marketintell.ai and create a key in your dashboard. Keys look like mi_k_<48 hex chars>.
Quickstart
mi auth login --key mi_k_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
mi auth status
mi chat "What's BTC funding doing on the 1H?"
mi chat --stream "Give me a deep dive on ETH derivatives positioning"
mi chat -i
mi signals --watch
Commands
mi auth
mi auth login --key <KEY> | Save a key to ~/.config/marketintell/config.json (chmod 600) |
mi auth login --key <KEY> --no-verify | Skip the round-trip verification |
mi auth status | Show the key prefix, tier, scopes, and today's quota usage |
mi auth logout | Delete the local config |
mi auth login also accepts --api-url <url> for self-hosted / staging deployments.
mi chat
mi chat "<query>"
mi chat --stream "<query>"
mi chat -i
mi chat -s <session-id> "<query>"
mi chat --mode deep "<query>"
mi chat --domain us_equities "..."
REPL commands inside mi chat -i:
:q / :quit | exit |
:reset | start a new session (forgets context) |
:session | print the current session_id |
| Ctrl-D | exit |
mi signals
mi signals
mi signals --limit 25
mi signals --watch
mi signals --watch --interval 30000
Global flags
-v, --version | Print the CLI version |
-h, --help | Show help (works on subcommands too) |
--json | Emit machine-readable JSON for piping to jq |
Configuration
Config lives at ~/.config/marketintell/config.json. Two env vars override it (handy for CI):
MARKETINTELL_API_KEY | API key (overrides the file) |
MARKETINTELL_API_URL | API base URL (default https://marketintell.fly.dev) |
MARKETINTELL_CONFIG_DIR | Override the config directory (default ~/.config/marketintell) |
Examples
mi --json signals --limit 5 | jq '.signals[].headline'
mi signals --watch
MARKETINTELL_API_KEY=$MI_KEY mi --json chat "BTC trend?" | jq -r '.content'
Roadmap
v0.1 surfaces only the endpoints that exist today. Coming in v0.2 once the API ships them:
mi whales — large-trade tape
mi options — flow scanner
mi predict — prediction-market mispricings
mi portfolio — portfolio context tools
- Persistent REPL history
License
Proprietary — see LICENSE at the repo root.