> ## Documentation Index
> Fetch the complete documentation index at: https://docs.floprouter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI

> Browse miners, chat, and do the wallet steps (key, grant, deposit) from a terminal.

`floprouter` browses miners and models, runs chat, and does the wallet steps on your own machine: creating a key, signing the grant, depositing FLOP. Keys stay local. The router receives your address, a signature over its login challenge, and the transactions you sign.

The package is `floprouter` on npm, so `npx floprouter` runs it without an install. It needs Node 18.17 or later.

```bash theme={null}
npx floprouter models
npx floprouter miners --reachable --sort settle_rate
npx floprouter login --key-file ./my-wallet.json     # polkadot-js JSON export, or --seed-file, or a hidden prompt
npx floprouter grant                                 # one signature: your wallet stays the payer on chain
npx floprouter deposit 1                             # fund the balance for the router fee
npx floprouter chat "What is a payment channel?"
npx floprouter session <id>
```

A seed or password is never accepted as a command-line argument. Before signing a grant, the CLI checks the chain's genesis hash against the router's and refuses any call other than `flopSessionKeys.createSession` limited to `ComputeChannel`.

`login` saves the key to `~/.config/floprouter/config.json` (mode 600). The [MCP server](https://docs.floprouter.com/mcp-server.md) reads the same file, so one login serves both. `npx floprouter help` lists every command.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.