iTerm2 Python API
iTerm2 exposes a Python scripting API for terminal windows and sessions on macOS.
Open maintainer documentationWHAT YOU CAN DOCreate terminal windows, tabs and sessions
HOW IT WORKSLive app
PLATFORMSmacOS
DOCUMENTED AGENTSSee compatibility details
Documented capabilities
- Create terminal windows, tabs and sessionsDocumentation
Agent compatibility
| Agent | Compatibility | Basis |
|---|---|---|
| Claude Code | Not documented | The native interface is documented, but no setup for this coding agent is established by this source. |
| Codex | Not documented | The native interface is documented, but no setup for this coding agent is established by this source. |
| Cursor | Not documented | The native interface is documented, but no setup for this coding agent is established by this source. |
Setup route
Follow the linked maintainer documentation for installation, connection settings and supported versions.
iTerm2 on macOS with the Python API enabled and scripts permitted to connect.
Limitations
Access requires iTerm2 scripting permissions. Terminal automation is not a predefined coding-agent integration.