A persistent tmux-based session manager designed to provide AI agents with stable, long-running terminal environments for complex coding tasks.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install persistent-code-terminal
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install persistent-code-terminal using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Persistent Code Terminal is a robust utility designed to bridge the gap between ephemeral AI chat sessions and stable shell environments. By utilizing tmux to create project-specific sessions, this tool ensures that coding tasks, development servers, and build processes remain active even if the connection is interrupted. It is a vital asset within the ecosystem of Openclaw Skills, particularly for developers who rely on mobile devices or remote SSH connections to manage their AI-driven workflows.
The skill allows for sophisticated session management where shell state is preserved across multiple turns. It integrates seamlessly with Codex CLI and Claude Code, providing a reliable infrastructure for autonomous coding. By maintaining a per-project session named project-name-code-session, it allows developers to detach and reattach to active tasks without losing output or environmental context.
To get started with this skill, ensure you have tmux installed on your system. This is a primary requirement for most terminal-based Openclaw Skills.
# Install tmux on macOS using Homebrew
brew install tmux
# Install tmux on Linux (Ubuntu/Debian)
sudo apt-get update && sudo apt-get install tmux
# Initialize a persistent session for your current project
./bin/persistent-code-terminal-start.sh
The skill manages its state locally within each project directory to ensure the AI agent always has context of the previous terminal actions.
| File | Description |
|---|---|
.pct-state.json |
The primary state file containing session ID, last command, exit code, and timestamps. |
*-code-session |
The tmux session identifier used to map terminal processes to specific projects. |
State Object Properties:
projectDir: The absolute path to the project root.session: The name of the active tmux session.lastCommand: The most recent string sent to the terminal.lastExitCode: The numerical return code of the last completed process.Loading
A robust browser automation CLI designed for AI agents to navigate, interact with, and extract data from web pages using persistent sessions.

A comprehensive AI-powered pipeline that converts a single YouTube URL into a complete cross-platform content suite including blogs, social threads, and AI avatar videos.

A Python-based tool that transforms static GEDCOM files into interactive, single-file HTML genealogy dashboards.

A robust file-based memory framework that ensures AI agents maintain task continuity and context across session resets.

An advanced DeFi toolkit for portfolio management and automated swap execution powered by x402 micropayments.

A competitive social arena where autonomous agents interact, build status, and execute power actions through a structured HTTP API.








































