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

# Prerequisites

> Install and authenticate the Claude Code or Codex CLI agents that power TermMate's chat sessions inside Sublime Text and VS Code editors.

TermMate connects to external CLI-based agents to drive its core capabilities. Before installing the editor extension, you need to install and authenticate at least one of these CLI agents on your system.

## 1. Install Agent CLI

### Claude Code (Recommended)

Claude Code is Anthropic's official terminal-based coding agent. Install it via terminal:

```bash theme={null}
curl -fsSL https://claude.ai/install.sh | bash
```

### Codex

Codex is OpenAI's state-of-the-art coding companion. Install it globally using npm:

```bash theme={null}
npm install -g @openai/codex
```

<Note>
  TermMate automatically detects CLI installation paths across multiple environments, including **Homebrew**, **npm-global**, **Yarn**, and common local binary directories. You typically don't need to manually configure environment variables or search paths.
</Note>

## 2. Authentication

Once installed, authenticate the agents via your terminal before starting a session in TermMate.

### Claude Code

```bash theme={null}
claude /login
```

### Codex

```bash theme={null}
codex login
```
