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
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 bashInstalls 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.
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
$ dataline auth loginOpens your browser, signs in with a wallet, and saves a refresh token to
~/.config/dataline/credentials.json. - 2
$ dataline crypto price BTCSmoke test — fetches the current spot price from your tier's preferred venue.
- 3
$ dataline initDrops skill files into detected agent installs (Claude Code, Codex) so they learn how to invoke
datalineproperly. - 4
$ dataline --helpBrowse 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 jsonEnvironment overrides
| Variable | Effect |
|---|---|
DATALINE_BASE_URL | Default public base URL written into the CLI local env. |
DATALINE_RELEASE_API_URL | Control API URL used by install.sh and `dataline version --check`. |
DATALINE_RELEASE_CHANNEL | CLI release channel used for install and update checks. |
DATALINE_ISSUER | Override OAuth issuer only (split deployments). |
DATALINE_DATA_API_URL | Override data API only (split deployments). |
DATALINE_CREDENTIALS_FILE | Path to the credentials JSON (default: $XDG_CONFIG_HOME/dataline/credentials.json). |
DATALINE_SKILLS_DIR | Force `init` to write skills to this directory. |
Uninstall
curl -fsSL http://127.0.0.1:37567/uninstall.sh | bashOr remove the binary and ~/.config/dataline/credentials.json.