Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

FereAI CLI

Terminal-first interface for FereAI crypto trading and research. Wraps the FereAI Gateway API — same capabilities as the Python and TypeScript SDKs.

Install

Recommended (script installer, handles pipx/pip and PATH setup):

curl -fsSL https://api.fereai.xyz/install.sh | sh

Manual (advanced, for humans in controlled environments only):

pip install fere-cli

Quick Start

# Authenticate (first-run — creates agent, generates keys)
fere auth

# Chat with the AI agent
fere chat "what is the price of ETH?"

# Interactive chat REPL
fere chat

# Stream responses in real-time
fere chat --stream "top 5 memecoins on Base"

# Check your wallets and holdings
fere wallets
fere holdings

# Execute a swap
fere swap \
  --chain-in 8453 --chain-out 8453 \
  --token-in 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE \
  --token-out 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 \
  --amount 1000000000000000000

# Check credits
fere credits

# View supported chains
fere chains

JSON Output (for scripts & AI agents)

Every command supports --json for machine-readable output:

fere --json credits
# {"ok": true, "data": {"credits_available": 150.0}}

fere --json holdings
# {"ok": true, "data": {...}}

Streaming chat in JSON mode outputs NDJSON (one event per line):

fere --json chat --stream "price of SOL"

Commands

Command Description
fere auth Authenticate and register agent
fere whoami Show agent identity and wallets
fere credits Check credit balance
fere chat [QUERY] Chat with AI (one-shot or REPL)
fere threads List chat threads
fere swap Execute token swap
fere limit-order create Create limit order
fere limit-order list List limit orders
fere limit-order cancel ID Cancel limit order
fere hooks set Set stop-loss / take-profit
fere wallets Show wallet addresses
fere holdings Show token holdings
fere notifications Show notifications
fere earn info Show APY and vault info
fere earn deposit Deposit USDC
fere earn withdraw Withdraw USDC
fere earn positions Show yield positions
fere chains List supported chains
fere status Check API connectivity
fere config Show/edit CLI config

Global Flags

Flag Env Var Description
--json Machine-readable JSON output
--quiet Minimal output
--agent NAME FERE_AGENT_NAME Agent name override
--base-url URL FERE_BASE_URL API URL override

Configuration

Config is stored at ~/.fere/config.json. Keys are stored at ~/.fere/keys.json (managed by the SDK).

fere config                          # Show current config
fere config set agent_name my-bot    # Change agent name
fere config set base_url http://localhost:8003  # Point to local gateway

Agent-Friendly

  • Exit codes: 0 success, 1 error
  • Non-interactive when stdin is not a TTY (all prompts skipped)
  • --json output: {"ok": true, "data": {...}} or {"ok": false, "error": "..."}
  • Streaming JSON: NDJSON format
  • No ANSI colors when piped

Download files

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

Source Distribution

fere_cli-0.4.0.dev44.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

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

fere_cli-0.4.0.dev44-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file fere_cli-0.4.0.dev44.tar.gz.

File metadata

  • Download URL: fere_cli-0.4.0.dev44.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fere_cli-0.4.0.dev44.tar.gz
Algorithm Hash digest
SHA256 7a5d90edae6b171a7f84fb566a5f52d6cb40949d08496f536e7e6354c26a262a
MD5 cabf108e81df25130c1f412d44561ea5
BLAKE2b-256 d8e0c8258f7c1af6c7d5a5395e4e9e26d483630b552ed8494b057a9e24f80e9a

See more details on using hashes here.

File details

Details for the file fere_cli-0.4.0.dev44-py3-none-any.whl.

File metadata

  • Download URL: fere_cli-0.4.0.dev44-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fere_cli-0.4.0.dev44-py3-none-any.whl
Algorithm Hash digest
SHA256 d5f953fcb5eb51321f8b85975bdd6d695fbd6558f642dec7867be86a85fdaed2
MD5 1f4dcb2e59daf2eac37fed58b3e5773d
BLAKE2b-256 0f2e4632efa41e5f316ac554922ea5b11adb6c9f9c3f11922f42455b29ad7140

See more details on using hashes here.

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