iTerm2 Python API
iTerm2 exposes a Python scripting API for terminal windows and sessions on macOS.
Platforms: macOS
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.
Requirements and limitations
iTerm2 on macOS with the Python API enabled and scripts permitted to connect.
Access requires iTerm2 scripting permissions. Terminal automation is not a predefined coding-agent integration.