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

> ## Agent Instructions
> To query the Token Terminal data catalog, read https://tokenterminal.com/docs/catalog/agents-manual.md first. It is the whole catalog as one page: table naming grammar, key columns, partition and cluster rules, units, additivity, and the tables that are documented but not served yet.
> Never query a catalog table on a time bound alone. Also filter its cluster key, which you read from INFORMATION_SCHEMA.COLUMNS; an empty result means the object is a view, whose pruning contract is on its page. Compute is billed to the caller's own Google Cloud project.

# OpenCode

> Set up the Token Terminal MCP server in OpenCode

1. Run `opencode mcp add` in your terminal and follow the prompts:
   * **Location**: Global
   * **Name**: `tokenterminal`
   * **Type**: Remote
   * **URL**: `https://mcp.tokenterminal.com/mcp`
   * **OAuth authentication**: Yes
   * **Pre-registered client ID**: No

2. Run `opencode mcp auth tokenterminal` to complete the authentication flow in your browser.

3. The Token Terminal MCP server should now be available in your OpenCode conversations.


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