Skip to main content
A fast, full-featured terminal interface for developers, analysts, and AI agents. Interactive dashboards, CSV exports, WebSocket streaming, and machine-readable JSON output β€” all from the command line. GitHub β†’ | Commands Reference β†’

Interactive TUI

Full-screen terminal dashboard with live navigation and 7-day braille price charts.

CSV & JSON Export

Export market rankings and historical data directly to CSV or JSON for pipelines and analysis.

Live WebSocket Streaming

Real-time price updates via cg watch with NDJSON output for piping.

AI Agent-Friendly

--dry-run mode and cg commands for tool discovery and LLM integration.

Get Started

1

Install

brew install coingecko/coingecko-cli/cg
Or download a binary from GitHub Releases.
2

Authenticate

Get a Demo (free) or Pro (paid) API key, then run:
cg auth
Or pass credentials directly:
cg auth --key YOUR_API_KEY --tier demo
Verify with cg status.
3

Try it out

cg price --ids bitcoin,ethereum
cg markets --total 100
cg history bitcoin --days 7
cg tui markets
See the full Commands Reference for all available commands.

Use Cases

  • CI/CD alerts β€” integrate into GitHub Actions or cron jobs, monitor price thresholds with -o json and jq
  • Dataset generation β€” fetch and export top 1000 coins to CSV in seconds
  • Debugging β€” use --dry-run to preview exact API parameters and URLs before production code
  • Shell integration β€” embed in your terminal prompt for live metrics
  • Function calling β€” give your LLM the cg binary as a tool, resolve symbols via cg search, and analyze results
  • Market research β€” identify hot sectors with cg trending, drill into performers with --category
  • Context injection β€” feed fresh -o json data to ensure reasoning uses real-time market conditions
  • Self-documentation β€” cg commands lets agents discover available sub-commands
  • Historical snapshots β€” generate CSV reports for specific dates or ranges for Excel or Python
  • Movers analysis β€” track biggest gainers/losers across timeframes
  • Category benchmarking β€” export sector data (Layer-2, RWA, etc.) for cross-category comparison

Share Feedback

Tell us how you’re using the CLI and what we should improve.

Open an Issue or PR

Report bugs, request features, or contribute on GitHub.