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

# Installation

> Install Termyte and choose where its local data lives.

# Install Termyte

## Requirements

* Node.js 20 or newer
* npm
* Claude Code, Codex, or OpenCode for automatic capture

```bash theme={null}
npm install -g termyte
termyte init
```

`termyte init` is interactive. It detects supported agents, installs their user-level hooks or plugin, saves `~/.termyte/config.json`, and creates the local database when needed. If setup fails, it restores the integration files it changed.

## Local files

| Path                                    | Purpose                                              |
| --------------------------------------- | ---------------------------------------------------- |
| `~/.termyte/config.json`                | Selected agents and memory-processing mode           |
| `~/.termyte/termyte.db`                 | Captured events, tasks, memories, jobs, and feedback |
| `~/.claude/settings.json`               | Claude Code hooks                                    |
| `~/.codex/hooks.json`                   | Codex hooks                                          |
| `~/.config/opencode/opencode.json`      | OpenCode plugin registration                         |
| `~/.config/opencode/plugins/termyte.js` | Generated OpenCode capture plugin                    |

Set `TERMYTE_HOME` to move the Termyte config directory or `TERMYTE_DB` to choose a different database file.

## Upgrade

```bash theme={null}
npm install -g termyte@latest
termyte init
```

Running setup again refreshes the installed integrations and keeps unrelated valid configuration entries.

## Remove integrations

```bash theme={null}
termyte uninstall
```

Uninstall removes the Termyte hook or plugin entries you select. It does not delete the database.
