FereAI Gateway
Home /docs

fere cli

Trade crypto, chat with AI, manage portfolios — from your terminal. Built for developers and AI agents.

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

or: pip install fere-cli  ·  v0.2.3

Get Started

$ fere auth
Agent 'my-bot' authenticated. Keys saved to ~/.fere/keys.json

$ fere chat "what's the price of ETH?"
ETH is trading at $3,245.12 on Base (chain 8453)...

$ fere swap --chain-in 8453 --chain-out 8453 \
  --token-in 0xEeee...EEeE --token-out 0x8335...2913 \
  --amount 1000000000000000000
Swap complete. Tx: 0xabc...def

$ fere --json holdings | jq '.data'
{"holdings": [{"symbol": "ETH", "balance": "0.95"}]}

Why CLI?

For Developers

Script swaps, automate research, pipe JSON into your tools. Integrates with any shell workflow or CI/CD pipeline.

For AI Agents

Machine-readable --json output, non-interactive mode, clean exit codes. Built for agentic tool-use.

Full Trading Suite

Swap, limit orders, stop-loss hooks, yield earning — everything the SDK offers, from your terminal.

Commands

CommandDescription
fere authAuthenticate and register a new agent
fere whoamiShow agent identity and wallets
fere creditsCheck credit balance
fere claim-dailyClaim daily credits bonus
fere chat "query"One-shot chat with AI agent
fere chatInteractive chat REPL
fere chat --streamStream response events live
fere threadsList recent chat threads
fere swapExecute a token swap
fere limit-order createCreate a limit order
fere limit-order listList limit orders
fere limit-order cancel IDCancel a limit order
fere hooks setSet stop-loss / take-profit
fere walletsShow wallet addresses
fere holdingsShow token holdings
fere notificationsShow notifications
fere earn infoShow APY and vault details
fere earn depositDeposit USDC
fere earn withdrawWithdraw USDC
fere earn positionsShow yield positions
fere chainsList supported blockchains
fere statusCheck API connectivity
fere configShow / edit CLI config

Global Flags

FlagEnv VarDescription
--jsonMachine-readable JSON output
--quietMinimal output (key value only)
--agent NAMEFERE_AGENT_NAMEAgent name override
--base-url URLFERE_BASE_URLAPI base URL override

JSON Output

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

$ fere --json chat --stream "price of SOL"
{"event": "meta", "data": {"chat_id": "abc123"}}
{"event": "chunk", "data": {"text": "SOL is"}}
{"event": "answer", "data": {"text": "SOL is trading at..."}}