Dataline CLI

One binary, all the market data your agent needs

The dataline CLI is a single Go binary that talks to the same backend as the API and MCP server. It's the easiest way to give your local coding agent — Claude Code, Codex, Cursor — access to crypto, securities, FX, prediction markets, and news without managing API keys yourself.

Quick install

macOS · Linux · Windows · detected: Linux
curl -fsSL http://127.0.0.1:37567/install.sh | DATALINE_BASE_URL=http://127.0.0.1:37567 DATALINE_RELEASE_API_URL=http://127.0.0.1:37567 bash

Installs the platform binary, then runs dataline init to drop skill files into Claude Code / Codex if they're detected. Inspect the scripts first: /install.sh or /install.ps1.

Manual download

If you'd rather not pipe a script to your shell, grab the binary for your platform and put it on $PATH.

macOS
Linux
detected
Windows

After manual download on macOS/Linux: chmod +x dataline-* && mv dataline-* ~/.local/bin/dataline. On Windows, rename the downloaded .exe to dataline.exe and place it on PATH.

First five minutes

  1. 1
    $ dataline auth login

    Opens your browser, signs in with a wallet, and saves a refresh token to ~/.config/dataline/credentials.json.

  2. 2
    $ dataline crypto price BTC

    Smoke test — fetches the current spot price from your tier's preferred venue.

  3. 3
    $ dataline init

    Drops skill files into detected agent installs (Claude Code, Codex) so they learn how to invoke dataline properly.

  4. 4
    $ dataline --help

    Browse the full command tree: crypto, securities, fx, prediction, news, auth, skill.

For agents

Agents should spawn dataline auth login as a subprocess and keep it running — the CLI starts a local loopback listener and exits 0 once the browser callback completes. Read the authorization URL from stdout and hand it to the user; do not kill the subprocess. Use --no-browser to skip the auto-open if the host has no GUI.

dataline auth login --no-browser --format json
# → reads authorization_url from stdout, waits for callback, exits 0
dataline auth status --format json

Environment overrides

VariableEffect
DATALINE_BASE_URLDefault public base URL written into the CLI local env.
DATALINE_RELEASE_API_URLControl API URL used by install.sh and `dataline version --check`.
DATALINE_RELEASE_CHANNELCLI release channel used for install and update checks.
DATALINE_ISSUEROverride OAuth issuer only (split deployments).
DATALINE_DATA_API_URLOverride data API only (split deployments).
DATALINE_CREDENTIALS_FILEPath to the credentials JSON (default: $XDG_CONFIG_HOME/dataline/credentials.json).
DATALINE_SKILLS_DIRForce `init` to write skills to this directory.

Uninstall

curl -fsSL http://127.0.0.1:37567/uninstall.sh | bash

Or remove the binary and ~/.config/dataline/credentials.json.