Codebind
Codebind is an IPython extension that runs a model with one tool: an IPython cell executed in the active session. IPython owns execution, namespace, history, magics, tracebacks, and rich display; Codebind owns only conversation and model orchestration.
Installation
Run Codebind without installing it permanently:
uvx codebind
Or install it with any Python package installer:
pip install codebind
After installation, start ordinary IPython with the Codebind extension from any directory:
codebind
It opens standard IPython with chat and Models in the user namespace. All normal IPython command-line options remain available.
models = Models({"openai": "OPENAI_API_KEY"})
chat.ask(
"Inspect this project and tell me what to implement first.",
models.chat("openai/gpt-5", reasoning_effort="medium"),
)
Codebind does not load files or construct a project prompt automatically. The user states what should be loaded as context. Pass instructions= to Session only when an application needs its own system instructions.
Jupyter
Install Codebind in the environment used by a Jupyter kernel, then start the Jupyter frontend normally:
pip install codebind jupyterlab
jupyter lab
Load Codebind in a notebook:
%load_ext codebind
models = Models({"openai": "OPENAI_API_KEY"})
model = models.chat("openai/gpt-5")
await chat.aask("Inspect the current notebook state.", model)
Codebind publishes cells, assistant Markdown, stdout, tracebacks, and rich results through IPython's MIME display system. The active frontend decides how to render HTML, Markdown, images, SVG, audio, tables, and plain text.
Model-authored cells are recorded in native IPython history and displayed through the active frontend. A kernel cannot insert a genuine input cell into every possible frontend without a frontend-specific extension, so Codebind does not attempt to control notebook or editor UI.
ChatGPT account login
Models Provider can start its OpenAI browser sign-in flow directly from IPython:
import webbrowser
models = Models()
authorization = await models.sign_in("openai")
webbrowser.open(authorization.url)
await authorization.complete()
chat.ask(
"Inspect this project.",
models.chat("openai/gpt-5", authorization=authorization),
)
The authorization remains in memory for this session. Persistent credential storage belongs to the host application.
OpenAI officially supports ChatGPT subscription sign-in for Codex clients. Models Provider reproduces that account-access boundary for this library; it is separate from the public, pay-as-you-go OpenAI API and may require compatibility updates when the Codex account protocol changes.
Release files for codebind 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| codebind-0.2.0.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| codebind-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / codebind-0.2.0.tar.gz
| Download URL | codebind-0.2.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3583dac4c752b5fdc36239403b0ec5c4ee695c741256257157b097ec21957f0
|
|
BLAKE2b-256 checksum How to use checksums |
d7ea73a379d740352281cb84b82da8fcac6c65df3731396a24d2da12dd66a112
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
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 Sep 19, 2026.
Transparency logRelease files / codebind-0.2.0-py3-none-any.whl
| Download URL | codebind-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bdbe315f3333d05b3884816dcfcc54cdf3a2dc66b7802ebcd98e44ebb38b86d
|
|
BLAKE2b-256 checksum How to use checksums |
c440c9b01f46469d2404c43c33d88b76f3306b6fa6fa6d589236fe97fba5b3b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
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 Sep 19, 2026.
Transparency log