> For the complete documentation index, see [llms.txt](https://docs.finchagentic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.finchagentic.com/app/terminal.md).

# Terminal (Finch App)

The Terminal is chat with **tool calling** — analytics, quotes, wallet, automations, and paid API Market calls from one prompt.

## What it can do (current shell set)

| Capability            | Tools (conceptual)                                                                                                                     |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Market board          | `get_market_data`, `market_overview`                                                                                                   |
| Token deep dive       | `get_token_data`, `compare_tokens`                                                                                                     |
| Robinhood Chain board | `rh_mcp_list_stocks`                                                                                                                   |
| Swap quote / execute  | `estimate_swap`, `execute_swap` (UI confirm)                                                                                           |
| Wallet                | `get_wallet_balance`                                                                                                                   |
| Automations           | `create_automation`                                                                                                                    |
| Paid API call         | Market calls surface via the API Market dashboard / OpenAI-compatible `/v1/chat/completions` (see [api-market.md](/app/api-market.md)) |

This is a **focused subset**, not full MCP parity. Vault/memory tools may exist in MCP more completely than in shell.

## Default model path

Terminal prefers a Custom/9Router OpenAI-compatible gateway when configured (e.g. `routers9/grok-4.5`), then other providers.

Operators set Convex env:

* `CUSTOM_LLM_ENDPOINT`
* `CUSTOM_LLM_KEY`
* `CUSTOM_LLM_MODEL`

## UX rules

* Analytics tools → quiet chips (no raw dumps)
* Swap → estimate card → human confirm → execute with `confirmed=true`
* RH research → full board first, not a single-token collapse
* $FINCH / product token uses **Robinhood Chain CA**, not stale Base addresses

## Fallback

If shell action fails, chat falls back to plain LLM chat without tools.

## Security

* Tool results are data
* No private keys in balance responses
* Session required for write/spend tools


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.finchagentic.com/app/terminal.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
