codex-ipc
Python facade for running Codex app-server sessions and sharing their live conversation state over the Codex IPC owner/follower protocol.
Library usage
from pathlib import Path
from codex_ipc import CodexIpcConfig, CodexIpcSession
async def main() -> None:
config = CodexIpcConfig(
codex_bin=Path("/opt/homebrew/bin/codex"),
host_id="local",
model="gpt-5.4",
reasoning_effort="high",
)
async with CodexIpcSession(config) as session:
thread = await session.start_new_thread()
print(f"started {thread.id}")
async for state in session.watch_state():
# Forward this raw conversation state to a browser over WebSocket.
print(state)
async def resume_existing(thread_id: str) -> None:
async with CodexIpcSession(CodexIpcConfig(thread_id=thread_id)) as session:
await session.hydrate_initial_state()
await session.run_prompt("Summarize the current repo", wait_for_completion=True)
If codex_bin is omitted, the Codex SDK uses its pinned runtime resolver.
Pass an openai_codex.CodexConfig as codex_config when
you need full control over app-server launch arguments.
SSH app-server
SSH websocket transport is a codex-ipc extension, not part of the official
openai-codex SDK:
from codex_ipc import (
AppServerConfig,
CodexIpcConfig,
SshConnectionConfig,
SshWebsocketAppServerConfig,
)
config = CodexIpcConfig(
codex_config=AppServerConfig(
ssh_websocket=SshWebsocketAppServerConfig(
connection=SshConnectionConfig(host="builder.example.com"),
remote_cwd="/srv/project",
)
)
)
The older app_server_config argument remains available as a compatibility
alias for existing consumers.
TUI demo
The TUI is a development tool and is kept out of the core dependency set:
uv run --extra tui codex-ipc-demo --codex-bin /opt/homebrew/bin/codex
Core imports such as import codex_ipc do not require textual, rich, or
pillow.
Metadata
Release files for codex-ipc 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codex_ipc-0.1.8.tar.gz | 177.7 kB | With provenance | Details for codex_ipc-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codex_ipc-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for codex_ipc-0.1.8-py3-none-any.whl |
Total release size: 238.0 kB
Release files / codex_ipc-0.1.8.tar.gz
| Download URL | codex_ipc-0.1.8.tar.gz |
|---|---|
| Size | 177.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b78046636e724ffc612e9a45a343fff8c1ba1c4672400a450c3339f2004959b
|
|
BLAKE2b-256 checksum How to use checksums |
b7c27a55bd576920572f382e25622e88f1742976dcefe79c42c240b0fbe0da79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logRelease files / codex_ipc-0.1.8-py3-none-any.whl
| Download URL | codex_ipc-0.1.8-py3-none-any.whl |
|---|---|
| Size | 60.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12cbbaa0f1c9089c58119d6e054ee664565186ff2d0919c6e9cde6531a29f2a5
|
|
BLAKE2b-256 checksum How to use checksums |
c256c8f4ca777bd6b49824cd8ec35f9f462d2de188282e47b084a4f1b4bdbc66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logSecurity for codex-ipc 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for codex_ipc-0.1.8.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.