chatpanel
A typed client for the local ChatPanel gateway. Zero dependencies; Python 3.11+; streaming; pairing.
pip install chatpanel
from chatpanel import ChatPanel
cp = ChatPanel.from_environment() # token from ~/.chatpanel/gateway-token
# Ask a model — through the gateway, so names/emails/numbers are redacted on the way out
for text in cp.chat.text({"model": "claude", "messages": [{"role": "user", "content": "Summarise our rollback decision."}]}):
print(text, end="", flush=True)
# Search the user's history (chats, notes, meetings, briefs)
hits = cp.history.smart_search({"question": "what did we decide about the rollback?", "queries": ["rollback decision"]})
record = cp.history.get({"id": hits["results"][0]["id"], "maxChars": 4000})
# Memory
recalled = cp.memory.recall({"text": "how does the user like answers written"})
cp.memory.remember({"text": "Prefers short answers with a code sample", "source": {"via": "my-app"}}) # needs the token
# What the model would receive
preview = cp.redaction.preview({"text": "Call Jordan at 555-0100"}) # "Call [[PERSON_1]] at [[PHONE_1]]"
# Follow a team run live
for frame in cp.teams.run_events(run_id, {"after": -1}):
print(frame.data["type"])
Pairing from an application that cannot read the token file: cp.pair(code) exchanges a
code from chatpanel-gateway pair and returns the token for you to keep (keychain or a
0600 file — never a log).
Every failure is a ChatPanelError with status, type and operation:
GatewayUnreachableError, GatewayTooOldError (have, need), ForbiddenError,
NotFoundError, InvalidRequestError.
ChatPanel(
base_url="http://127.0.0.1:4320", # loopback only, unless allow_remote=True + https
token=lambda: keyring.get_password("chatpanel", "gateway"),
timeout=20.0, retries=2, version_gate=True,
)
The surface (cp.history, cp.memory, …) is generated from the gateway's OpenAPI contract in
the chatpanel-sdk repository; cp.request(op_id, ...)
reaches any operation by id. The client is synchronous; wrap calls in asyncio.to_thread from
async code.
Metadata
Release files for chatpanel 0.15.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 | Provenance | Actions |
|---|---|---|---|---|
| chatpanel-0.15.0.tar.gz | 41.8 kB | With provenance | Details for chatpanel-0.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chatpanel-0.15.0-py3-none-any.whl | Python 3 | none | any | Details for chatpanel-0.15.0-py3-none-any.whl |
Total release size: 81.7 kB
Release files / chatpanel-0.15.0.tar.gz
| Download URL | chatpanel-0.15.0.tar.gz |
|---|---|
| Size | 41.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddb7fe9c0a516a46d000ecebace64d5f629d204790eaafe3ac9fe67562e40ca1
|
|
BLAKE2b-256 checksum How to use checksums |
f2759a5fdf906cccea8ff6838b26cb1dda58c3e6e081d70c1040b0a4e2a55954
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.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 Sep 27, 2026.
Transparency logRelease files / chatpanel-0.15.0-py3-none-any.whl
| Download URL | chatpanel-0.15.0-py3-none-any.whl |
|---|---|
| Size | 40.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b62393d841ec513811417eeaf6b784f024358bdc59bcb4ac46485a2a3238ba9
|
|
BLAKE2b-256 checksum How to use checksums |
f5a4bd8c20c3fb64b6c080f8879c050656621d7bf7969643d3a8e39d6374c3ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.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 Sep 27, 2026.
Transparency logSecurity for chatpanel 0.15.0
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 chatpanel-0.15.0.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 Sep 27, 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.