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

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