Skip to main content

n0brains CLI

Token-efficient command-line access to the n0brains crypto intelligence API — built for trading agents, scripts, and humans. Every command prints raw JSON to stdout, so it composes with jq, pipes into an LLM, or feeds a bot directly. Zero third-party dependencies (Python 3.8+ stdlib only); the optional stream command needs websockets.

Why a CLI (vs the MCP server)

n0brains also ships an MCP server for Claude / Cursor / Cline. The CLI is the better fit when you're driving a bot or shell pipeline: plain JSON with no protocol envelope is more token-efficient, it composes with Unix tools, and it runs anywhere curl does. Same data, both surfaces.

Install

pip install n0brains-cli          # once published
# or run the single file directly:
python3 n0brains_cli.py --help

Auth

export N0BRAINS_API_KEY=intel_sk_...   # get one at https://n0brains.com
# or pass --api-key on any command. Public endpoints (proof) work without a key.

Commands

Command What it returns
signals [--proven-only] [--asset BTC] [--type hack] [--limit N] Active classified signals
signal <id> One signal with full context
similar <query> Semantic similarity search (pro)
levels <coin> Support/resistance levels
liquidation-map <coin> Estimated liquidation-cluster zones
correlation [coin] [--vs BTC] [--coins BTC,ETH,SOL] Correlation matrix or one coin's corr+beta
rotation Altseason/rotation read (into_alts / into_btc / neutral)
macro Daily BTC/ETH macro bias
narrative <coin> Narrative context
trust <coin> Trust/rug score
manipulation <coin> Manipulation score
proof [--equity] Live forward-return proof per signal type (+ equity curve)
performance [--days 30] [--tier N] Backtest stats
plan <coin> Assembled trade plan — direction, entry, strongest target, stop, R:R, options context + warnings (pro)
rank [--coins BTC,ETH,SOL] Cross-asset ranking — which coin is the best trade now (pro)
state [coin] One-call per-coin snapshot (price + market-state + levels + regime); omit coin for the unified market state (pro)
regime Market regime read — risk-on/off score (pro)
liquidity Liquidity map — net liq, stablecoin dry powder, OI, taker flow (pro)
flows Capital-flow map — rotation, cross-asset OI, institutional posture (pro)
market-map One-call cross-asset market map (regime + liquidity + flows) (pro)
discovery Emergent-edge discovery — corroboration patterns with live forward-return edge (pro)
stream Live signal stream over WebSocket (pro)

Examples

# Only proven-edge signals, as JSON
n0brains signals --proven-only --limit 10

# Is it altseason? one-line answer
n0brains rotation | jq -r .regime

# Where are BTC liquidation magnets?
n0brains liquidation-map BTC | jq '.densest_long_liq_zone, .densest_short_liq_zone'

# Feed proven-edge signals into a bot loop
while n0brains signals --tradeable-only --limit 5 | jq -c '.signals[]'; do sleep 60; done

# Live stream (needs: pip install websockets)
N0BRAINS_API_KEY=... n0brains stream | jq -c 'select(.conviction=="strong")'

Exit code is 2 on an API error (so scripts can detect failures), 0 on success.

For agent frameworks

See SKILL.md for a capability description you can drop into an agent framework (the same tools are also exposed via MCP and REST).

Metadata

Release files for n0brains-cli 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for n0brains-cli 1.3.0
File Size Uploaded Provenance Actions
n0brains_cli-1.3.0.tar.gz 6.4 kB Without provenance Details for n0brains_cli-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for n0brains-cli 1.3.0
File Interpreter ABI Platform Actions
n0brains_cli-1.3.0-py3-none-any.whl Python 3 none any Details for n0brains_cli-1.3.0-py3-none-any.whl

Total release size: 13.6 kB

Release files / n0brains_cli-1.3.0.tar.gz

Download URL n0brains_cli-1.3.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
70ef5653a186e3e5fa9a6f2091766ef0c6d26296e97931e29f2c3eac52563a86
BLAKE2b-256 checksum
How to use checksums
1e84d9cd594cb6ad9b26d5b9b9214a3b2280b58b12396bde5c26719f282079ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / n0brains_cli-1.3.0-py3-none-any.whl

Download URL n0brains_cli-1.3.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a060fc24c8fb2d6cbc924ea5b9088e575abc8a31e9e2b8879264767377d7623c
BLAKE2b-256 checksum
How to use checksums
d1f248a8098e6489a60e76eba3c6326294d07c6acda23f6f74daee100167a656
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for n0brains-cli 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page