Package Control

The official Sublime Text package manager.

TermMate

agentic AI coding assistant integrating claude code, OpenAI codex and Pi coding agent

By flashmodel
Created January 11, 2026, last updated July 7, 2026.

JunMayAprMarFebJan Dec2025 NovOctSepAugJul 2026-W28 | installs: 14 | removals: 8 | upgrades: 61 2026-W28 | installs: 14 | removals: 8 | upgrades: 61 2026-W28 | installs: 14 | removals: 8 | upgrades: 61 2026-W27 | installs: 10 | removals: 60 | upgrades: 78 2026-W27 | installs: 10 | removals: 60 | upgrades: 78 2026-W27 | installs: 10 | removals: 60 | upgrades: 78 2026-W26 | installs: 12 | removals: 81 | upgrades: 44 2026-W26 | installs: 12 | removals: 81 | upgrades: 44 2026-W26 | installs: 12 | removals: 81 | upgrades: 44 2026-W25 | installs: 11 | removals: 22 | upgrades: 21 2026-W25 | installs: 11 | removals: 22 | upgrades: 21 2026-W25 | installs: 11 | removals: 22 | upgrades: 21 2026-W24 | installs: 11 | removals: 9 | upgrades: 25 2026-W24 | installs: 11 | removals: 9 | upgrades: 25 2026-W24 | installs: 11 | removals: 9 | upgrades: 25 2026-W23 | installs: 23 | removals: 12 | upgrades: 25 2026-W23 | installs: 23 | removals: 12 | upgrades: 25 2026-W23 | installs: 23 | removals: 12 | upgrades: 25 2026-W22 | installs: 0 | removals: 0 | upgrades: 0 2026-W22 | installs: 0 | removals: 0 | upgrades: 0 2026-W22 | installs: 0 | removals: 0 | upgrades: 0 2026-W21 | installs: 17 | removals: 7 | upgrades: 9 2026-W21 | installs: 17 | removals: 7 | upgrades: 9 2026-W21 | installs: 17 | removals: 7 | upgrades: 9 2026-W20 | installs: 8 | removals: 2 | upgrades: 4 2026-W20 | installs: 8 | removals: 2 | upgrades: 4 2026-W20 | installs: 8 | removals: 2 | upgrades: 4 01020 WeeklyInstalls 04080 WeeklyUpgrades 2026-W28 | upgrades: 61 0.3.3 2026-W27 | upgrades: 78 0.3.2 / 0.3.1 2026-W26 | upgrades: 44 0.3.0 / 0.2.3 2026-W24 | upgrades: 25 0.2.2 2026-W23 | upgrades: 25 0.2.1 / 0.2.0 2026-W21 | upgrades: 9 0.1.9 2026-W20 | upgrades: 4 0.1.8 / 0.1.7 2026-W19 0.1.6 / 0.1.5 2026-W18 0.1.4 2026-W15 0.1.3 2026-W14 0.1.2 / 0.1.1 / ... 0.1.2 / 0.1.1 / 0.1.0
Installations: recent average 12 per week, 111 in total
Installations minus removals
Upgrades

Links

Versions

0.3.3 (>ST4000) ·
2026-07-07 00:56

More

TermMate

Agentic Coding Mate from Mind to Code

TermMate Screenshot

TermMate is a professional AI coding agent for Sublime Text that supports multi-agent providers, including Claude Code, Codex, and Pi Agent. It builds a seamless native agentic interface directly within your editor for autonomous task execution, codebase exploration, and smart refactoring. TermMate Agent, native to your editor.

For detailed usage, please refer to the TermMate Documentation.

Getting Started

1. TermMate Installation

Install TermMate via Package Control:

  1. Open the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux).
  2. Type Package Control: Install Package and press Enter.
  3. Search for TermMate and press Enter.

Or install manually from Releases:

  1. Download TermMate.sublime-package from the latest release.
  2. Copy TermMate.sublime-package into your Sublime Text Installed Packages directory:
    • macOS: ~/Library/Application Support/Sublime Text/Installed Packages/
    • Windows: %APPDATA%\Sublime Text\Installed Packages\
    • Linux: ~/.config/sublime-text/Installed Packages/
  3. Restart Sublime Text.

2. Install an Agent CLI

TermMate relies on external agent CLIs. If you already have Claude Code, Codex, or Pi Agent installed, TermMate will detect them automatically — no extra setup needed.

Otherwise, the easiest way is to install directly from within Sublime Text: open the Command Palette, type TermMate: Install Agent, and select the agent you want. TermMate will run the installation in dedicated panel and notify you when it's complete. CLIs are installed to ~/.local/bin on macOS/Linux and %APPDATA%\npm on Windows.

Or install manually from your terminal:

Claude Code:

curl -fsSL https://claude.ai/install.sh | bash

Codex:

curl -fsSL https://chatgpt.com/codex/install.sh | sh

Windows:

powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

Pi Agent:

curl -fsSL https://pi.dev/install.sh | sh

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.

3. Authentication

Authenticate the agents via your terminal, or skip the CLI login by setting API keys directly in TermMate's settings — see Custom Environment Variables.

Claude Code:

/login

Codex:

codex login

Pi Agent:

/login

Alternatively, to skip the CLI login — for example authenticating Pi Agent with a Gemini API key — add this to TermMate.sublime-settings:

{
    "env": {
        "GEMINI_API_KEY": "your-gemini-api-key"
    }
}

4. Start Chat

Usage & Key Features

1. Quick Prompt Without Chat View

Use the command palette (TermMate: Prompt) to send a quick instruction to the agent without opening the chat view manually.

2. Set Working Directory

Right-click on any folder in the sidebar and select Set Working Directory to set the working directory for the agent. This affects the current working directory when agents execute commands or access files. You can also use the command palette.

3. Chat with Current File or Selection

You can right-click in any file, tab, and select Chat with Agent. This will:

4. Smart Completion

Type @ in the chat view for real-time suggestions of files and workspace symbols.

5. Split Chat Window

You can use the command palette (TermMate: Split Chat Window) or right-click the chat view tab and select TermMate: Split Chat Window to split the editor layout and place the chat view into its own dedicated pane. By default, this pane is isolated so opening other files will not overwrite the chat view. This isolation behavior can be configured via the dedicated_chat_pane setting.

Advanced Control

Plan Mode

Switch between two execution styles from the Command Palette: TermMate: Plan Mode

Mode Behavior
Fast (default) Agent acts immediately — no intermediate steps shown.
Planning Agent outlines a step-by-step plan before doing anything. Useful for large or risky changes.

Approve Mode

Control how much the agent can do without asking you first: TermMate: Approve Mode

Mode Behavior
Default Prompts you before every tool action.
Allow Edit Auto-approves safe read/edit operations; still prompts for shell commands.
Accept All Auto-approves everything, including shell execution. Maximum autonomy.

Switch Agent & Model

Use TermMate: Switch Agent to swap between Claude, Codex, and Pi Agent at any time. Use TermMate: Select Model to pick a specific LLM model per agent (e.g. claude-opus-4-5 vs claude-sonnet-4-5).

Session Management: Clear, Resume & Rewind

1. Clear Session

To reset the current conversation history and start a completely fresh context, open the command palette and run TermMate: Clear Session. This will reload the agent and clear its memory for the current workspace.

2. Resume Previous Conversation

Run TermMate: Resume Session from the command palette to continue a past conversation. A quick panel lists previous sessions for the current workspace, each showing a short summary and timestamp. Select one and the agent picks up exactly where it left off.

3. Rewind Conversation

Hover over any gutter dot or click the button that appears at the prompt line to rewind the conversation to that point. A confirmation panel lets you confirm or cancel before the rewind takes effect.

When confirmed, TermMate forks the session at the selected prompt, removes all subsequent messages from the chat view - letting you explore a different direction without losing the original context.

Shortcuts & Commands

Action macOS Windows/Linux Command Palette
Install Agent - - TermMate: Install Agent
Start New Chat - - TermMate: Start Chat
Split Chat Window - - TermMate: Split Chat Window
Send Message Cmd+Enter Ctrl+Enter -
Stop Conversation Cmd+Escape Shift+Escape TermMate: Stop Conversation
Navigate Input History Up / Down Up / Down -
Mention File @ @ -
Set Workspace - - TermMate: Set Working Directory
Switch Mode - - TermMate: Plan Mode
Approve Mode - - TermMate: Approve Mode

Configuration

Customize TermMate by editing your settings: Preferences -> Package Settings -> TermMate -> Settings

Agent CLI Paths

While TermMate automatically detects most agent CLI installation paths, you may need to configure them manually if:

{
    "claude_command": "/path/to/your/custom/claude",
    "codex_command": "/path/to/your/custom/codex",
    "pi_command": "/path/to/your/custom/pi"
}

Custom Environment Variables

The env configuration allows you to inject custom environment variables directly into the process when starting an agent CLI command. This is useful for providing API keys, custom base URLs, or passing specific environment values without altering your global system configuration.

Example: OpenRouter for Claude

Set a custom base URL and auth token so Claude routes through OpenRouter (ANTHROPIC_API_KEY must be empty in this case):

{
    "env": {
        "ANTHROPIC_BASE_URL": "https://openrouter.ai/api/v1",
        "ANTHROPIC_AUTH_TOKEN": "sk-openrouter-token",
        "ANTHROPIC_API_KEY": ""
    }
}

Example: Gemini API key for Pi Agent

Pi Agent uses the GEMINI_API_KEY environment variable. Set it here to authenticate without modifying your system environment:

{
    "env": {
        "GEMINI_API_KEY": "your-gemini-api-key"
    }
}

Custom Keybindings

By default, TermMate does not register a shortcut for TermMate: Start Chat to avoid conflicts. You can manually add a shortcut (Cmd+Option+G on macOS, Ctrl+Alt+G on Windows/Linux) by navigating to Preferences -> Key Bindings and adding the following configuration:

[
    {
        "keys": ["primary+alt+g"],
        "command": "term_chat_cli",
        "args": {},
        "context":
        [
            { "key": "setting.is_widget", "operand": false }
        ]
    }
]

If you prefer using just the Escape key to interrupt the conversation when the chat view is focused, you can add this:

[
    {
        "keys": ["escape"],
        "command": "term_chat_interrupt",
        "context":
        [
            { "key": "setting.chatview_chat", "operator": "equal", "operand": true }
        ]
    }
]

💡 TermMate Agent Tips

Privacy & Data Handling

TermMate does not send your entire workspace or file contents to any external servers.

Your data will only be sent to the respective LLM services (Claude Code, Codex, or Pi) under the following specific conditions:

What data is sent:

How TermMate interacts with Agents:

License

TermMate is provided under the Apache License, Version 2.0 with the Commons Clause condition.

This means it's free to use, modify, and redistribute the code for personal or internal use. However, commercial resale or providing a paid service is strictly prohibited.

For complete details, please see the LICENSE file.

Results

Packages