Skip to main content

conseel

Drop-in encrypted transport for AI SDKs. Wraps cohere-tng to route requests through OHTTP encryption with TEE attestation verification. TNG automatically promotes the model field from JSON request bodies into an x-gateway-model-name header for backend routing (via body_field_headers config).

Install

pip install conseel

Usage

Cohere

import cohere
import httpx
from conseel import Transport

co = cohere.ClientV2(
    api_key="...",
    httpx_client=httpx.Client(transport=Transport()),
)
co.chat(model="command-a-plus-05-2026", messages=[...])

OpenAI

from openai import OpenAI
import httpx
from conseel import Transport

client = OpenAI(
    http_client=httpx.Client(transport=Transport()),
)
client.chat.completions.create(model="gpt-4", messages=[...])

Async

import httpx
from conseel import AsyncTransport

async with httpx.AsyncClient(transport=AsyncTransport()) as client:
    resp = await client.post(url, json={"model": "command-a-plus-05-2026", ...})

What it does

  1. Encrypts all traffic via OHTTP so that even the network infrastructure cannot inspect request or response payloads.
  2. Verifies the remote TEE via Intel Trust Authority attestation before sending any data (configurable via the verify parameter).
  3. Promotes the model field from JSON request bodies to the x-gateway-model-name HTTP header for gateway routing. This happens inside TNG via body_field_headers config. Body parsing is skipped entirely for non-JSON requests (e.g. multipart audio uploads) and when the target headers are already present on the request.
  4. Forwards authorization and x-gateway-model-name headers through the OHTTP layer to the backend.

Configuration

Transport and AsyncTransport accept the same verify and ohttp keyword arguments as cohere_tng.Transport (see TNG configuration docs for the full schema). The only difference is that conseel provides sensible defaults:

  • verify — Defaults to Intel Trust Authority attestation. Pass None to disable verification (not recommended for production).
  • ohttp — Defaults include forwarding authorization headers and promoting the model JSON body field to x-gateway-model-name via body_field_headers.

Metadata

Release files for conseel 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for conseel 0.7.0
File Size Uploaded
conseel-0.7.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for conseel 0.7.0
File Interpreter ABI Platform
conseel-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / conseel-0.7.0.tar.gz

Download URL conseel-0.7.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6a2d96124452ba4922fc5821638a0a9130b3662584e07c1356e68d33aae4f13d
BLAKE2b-256 checksum
How to use checksums
20f10ea63bbcbc501fdb0427c95ddd2fdccbd56ab4d088decfcbac9c0634213d
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 Aug 20, 2026.

Transparency log

Release files / conseel-0.7.0-py3-none-any.whl

Download URL conseel-0.7.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2876d436b49ca1425ad6f5a9735927c1e459c4cc393fcbffe035a50afb38a785
BLAKE2b-256 checksum
How to use checksums
bf02fe6155222a9f6f90ccb53c1a8a812706f0b37e17303ae7eab968a6cdef66
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 Aug 20, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.0

2 release files

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page