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. 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

# 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": {...}}

Commands

Command Description
fere auth Authenticate and register agent
fere whoami Show agent identity and wallets
fere credits Check credit balance
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 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

1.0.0 — breaking changes

  • Removed fere chat and fere threads. Chat, chat threads and scheduled chats are no longer part of the public FereAI API.
  • fere notifications is no longer registered (notifications are not a released public feature).
  • Requires fere-sdk>=1.0.0.

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": "..."}
  • No ANSI colors when piped

Metadata

Release files for fere-cli 1.0.0.dev55

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fere-cli 1.0.0.dev55
File Size Uploaded Provenance Actions
fere_cli-1.0.0.dev55.tar.gz 22.8 kB Without provenance Details for fere_cli-1.0.0.dev55.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fere-cli 1.0.0.dev55
File Interpreter ABI Platform Actions
fere_cli-1.0.0.dev55-py3-none-any.whl Python 3 none any Details for fere_cli-1.0.0.dev55-py3-none-any.whl

Total release size: 45.1 kB

Release files / fere_cli-1.0.0.dev55.tar.gz

Download URL fere_cli-1.0.0.dev55.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
60abbf6a9c5b1b41c9c3d350c571732137920c1434b372c720e5d22464dbe413
BLAKE2b-256 checksum
How to use checksums
eb35e79379aa9f89cc8e02e773ecffa8255c0d92622296155055a4a55ecdc985
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

Release files / fere_cli-1.0.0.dev55-py3-none-any.whl

Download URL fere_cli-1.0.0.dev55-py3-none-any.whl
Size 22.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1af573c9e74672240ac3938f91c9fc25b541030bfaa85236ad8def55733079f
BLAKE2b-256 checksum
How to use checksums
fa13bab35c00fd46d5d8cf289bd13f4e79b437347d0c670490ccb8138ba807a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

Security for fere-cli 1.0.0.dev55

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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