Skip to main content

CLI for the Adanos Market Sentiment API

Project description

adanos-cli

PyPI version

adanos-cli is the command-line client for the Adanos Market Sentiment API.

It is built for three use cases:

  • traders who want fast stock and crypto sentiment reports
  • analysts who want repeatable CLI workflows
  • agents and automation that need stable JSON output

The CLI is versioned independently from the API backend. It targets the public API at https://api.adanos.org/docs and uses the published Python SDK under the hood.

Install

Recommended

pipx install adanos-cli

cURL

curl -fsSL https://raw.githubusercontent.com/adanos-software/adanos-cli/main/install.sh | bash

The shell installer downloads the latest standalone binary for:

  • macOS arm64
  • macOS x86_64
  • Linux x86_64

By default it installs to ~/.local/bin. Override with ADANOS_INSTALL_DIR=/your/path.

Homebrew (macOS / Linux)

brew install adanos-software/tap/adanos-cli

PowerShell (Windows)

irm https://raw.githubusercontent.com/adanos-software/adanos-cli/main/install.ps1 | iex

Plain pip

python3 -m pip install adanos-cli

From source

git clone https://github.com/adanos-software/adanos-cli.git
cd adanos-cli
python3 -m pip install -e ".[dev]"

Quick Start

If you already have an API key:

adanos login --api-key sk_live_xxx
adanos whoami
adanos doctor

First market checks:

adanos consensus TSLA
adanos explain TSLA --profile investor
adanos scan --asset stocks --style daytrader --top 10

Crypto:

adanos crypto BTC
adanos crypto BTC/ETH

Start Modes

adanos shows a compact start screen with the CLI header and next actions.

adanos

Explicit interactive shell:

adanos shell

One-shot command mode:

adanos stock NVDA

Authentication

Persist a key locally:

adanos login --api-key sk_live_xxx

Request a recovery email for an existing account:

adanos onboard recover --email you@example.com

Start a new signup from the CLI:

adanos onboard register --name "Jane Doe" --email "jane@example.com" --purpose "Trading research"
# then redeem the one-time token from the verification email
adanos onboard redeem --token kt_xxx --save

Use profiles:

adanos auth login --api-key sk_live_prod --profile prod
adanos auth login --api-key sk_live_staging --profile staging
adanos auth switch prod
adanos auth current --json

Priority order:

  • --api-key
  • ADANOS_API_KEY
  • stored credentials in the active profile

Common Workflows

Stock report:

adanos stock TSLA

Cross-platform consensus:

adanos consensus TSLA

Narrative explanation:

adanos explain TSLA --profile investor

Watchlists:

adanos watchlist add core --asset stocks --symbols TSLA,NVDA,AAPL
adanos watchlist report core --asset stocks
adanos watch core --kind watchlist --asset stocks --refresh 60 --iterations 1

Raw endpoint access:

adanos endpoint list
adanos endpoint call root.health
adanos endpoint call reddit-stocks.trending --limit 10
adanos endpoint call reddit-stocks.market-sentiment --from 2026-05-01 --to 2026-05-07
adanos endpoint call reddit-stocks.stock.mentions --ticker TSLA --from 2026-05-01 --to 2026-05-07 --limit 10 --offset 10 --include-inherited
adanos endpoint call x-stocks.stock.explain --ticker TSLA

Polymarket endpoint output includes both market_count for selected-window breadth and current_market_count for live-only active-market breadth.

Period-capable commands and endpoint calls accept --from YYYY-MM-DD and --to YYYY-MM-DD as inclusive UTC date windows. --days N remains available for v1 compatibility, but is legacy; combining --from, --to and --days returns API validation error 422. Search commands are the exception: they accept only --limit and use the API-managed recent summary window.

AI / Automation

The CLI supports machine-readable output via --output json or --quiet.

adanos --quiet capabilities
adanos --quiet whoami
adanos --quiet doctor
adanos --quiet ask "How does TSLA look?"
adanos --quiet endpoint call news-stocks.trending --limit 3

JSON conventions:

  • object payloads include a stable kind
  • command wrappers include command, and subcommand when relevant
  • endpoint-backed payloads include platform, route, endpoint, path, and data

Diagnostics

Identity and runtime context:

adanos whoami

Problem-focused self-check:

adanos doctor
adanos doctor --verbose

Releases

Tagged releases build standalone archives for:

  • macOS arm64
  • macOS x86_64
  • Linux x86_64

The repo also generates a Homebrew formula artifact for each tagged binary release and can publish it to adanos-software/homebrew-tap when HOMEBREW_TAP_TOKEN is configured.

PyPI publishing also happens from this repo, not from the API monorepo.

Development

Install the repo in editable mode:

python3 -m pip install -e ".[dev]"

Run tests:

python3 -m pytest tests -q

Build wheel and sdist:

python3 -m build

Build a standalone binary archive locally:

python3 scripts/build_cli_binary.py --output-dir dist-binaries

Generate a Homebrew formula:

VERSION=$(python3 - <<'PY'
import re
from pathlib import Path
text = Path("src/adanos_cli/__init__.py").read_text(encoding="utf-8")
print(re.search(r'__version__\s*=\s*"([^"]+)"', text).group(1))
PY
)

python3 scripts/generate_homebrew_formula.py \
  --version "$VERSION" \
  --darwin-arm64-url "https://example.com/adanos-cli-${VERSION}-darwin-arm64.tar.gz" \
  --darwin-arm64-sha256 <sha256> \
  --darwin-x86_64-url "https://example.com/adanos-cli-${VERSION}-darwin-x86_64.tar.gz" \
  --darwin-x86_64-sha256 <sha256> \
  --linux-x86_64-url "https://example.com/adanos-cli-${VERSION}-linux-x86_64.tar.gz" \
  --linux-x86_64-sha256 <sha256> \
  --output dist/homebrew/adanos-cli.rb

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adanos_cli-1.29.0.tar.gz (75.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adanos_cli-1.29.0-py3-none-any.whl (57.8 kB view details)

Uploaded Python 3

File details

Details for the file adanos_cli-1.29.0.tar.gz.

File metadata

  • Download URL: adanos_cli-1.29.0.tar.gz
  • Upload date:
  • Size: 75.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for adanos_cli-1.29.0.tar.gz
Algorithm Hash digest
SHA256 6d440067e50d553df39ec69a4287b5b315fd6bcc9c4dabb139c24e77a5434d7d
MD5 dcb0ec8eade05cd2403df2b4fafa8ff5
BLAKE2b-256 a63d07fda209920a41da2c2847d5959c4ac8b62452b91b214e6f72b4cbd6a633

See more details on using hashes here.

Provenance

The following attestation bundles were made for adanos_cli-1.29.0.tar.gz:

Publisher: publish-pypi.yml on adanos-software/adanos-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file adanos_cli-1.29.0-py3-none-any.whl.

File metadata

  • Download URL: adanos_cli-1.29.0-py3-none-any.whl
  • Upload date:
  • Size: 57.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for adanos_cli-1.29.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a602f3868590f616a5fb89c45cdf440de7af83969a1c79d08768096842d24355
MD5 68d8e30aeebb1a0fbb1070afac75c5f3
BLAKE2b-256 50bb11ce3ffbf54f4432e57b073e692f0c536168a395e6c6333c94e697640735

See more details on using hashes here.

Provenance

The following attestation bundles were made for adanos_cli-1.29.0-py3-none-any.whl:

Publisher: publish-pypi.yml on adanos-software/adanos-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page