Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

promigence-openai-environments — OpenAI Agents API self-hosted environments on Promigence

Run codex exec-server for OpenAI Agents API self-hosted environments on Promigence sandboxes.

Install

pip install promigence-openai-environments "openai>=3.16.0"  # Python >= 3.10
export PROMIGENCE_API_KEY=prom_api_...  PROMIGENCE_API_URL=https://api.promigence.ai/v1
npm i -g promigence  # the CLI, for the secrets line below
export OPENAI_EXECUTOR_API_KEY=sk-...  # the OpenAI key the executor uses
promigence secrets set CODEX_API_KEY --from-env OPENAI_EXECUTOR_API_KEY

Use

import asyncio
from openai import OpenAI
from promigence_openai_environments import ExecutorPool

client = OpenAI()                      # OPENAI_API_KEY — stays outside the sandbox
sessions = [
    client.beta.agents.sessions.create(
        agent={"model": "gpt-6-astra", "instructions": "..."},
        environment={"type": "self_hosted", "workspace_directory": "/workspace"},
    )
    for _ in range(8)
]

async def main() -> None:
    async with ExecutorPool(sessions, snapshot="codex-exec-server@1a2b3c4", spend_cap=5) as pool:
        for w in pool.workers:
            print(w.environment_id, w.sandbox_id)
        # Send input to the sessions and read their event streams from your own application.
        await asyncio.sleep(3600)

asyncio.run(main())

Help

Every error carries a code, a message and what to do next; the codes are listed at https://www.promigence.ai/docs/errors. Questions: support@promigence.ai.

Metadata

Release files for promigence-openai-environments 0.1.0a1

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

Source distribution (sdist)

Source distribution for promigence-openai-environments 0.1.0a1
File Size Uploaded Provenance Actions
promigence_openai_environments-0.1.0a1.tar.gz 8.4 kB Without provenance Details for promigence_openai_environments-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for promigence-openai-environments 0.1.0a1
File Interpreter ABI Platform Actions
promigence_openai_environments-0.1.0a1-py3-none-any.whl Python 3 none any Details for promigence_openai_environments-0.1.0a1-py3-none-any.whl

Total release size: 18.0 kB

Release files / promigence_openai_environments-0.1.0a1.tar.gz

Download URL promigence_openai_environments-0.1.0a1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cedd80ae3c43e8475c5fb368c177db3f09c55afe94180e26741c8aae63b7f668
BLAKE2b-256 checksum
How to use checksums
77d9eb4bd117a642c9f67481cf03c31d160d6140b9b6b553a8bfbf1c1656cfe3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / promigence_openai_environments-0.1.0a1-py3-none-any.whl

Download URL promigence_openai_environments-0.1.0a1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53342a1571d5f6d1d4c230208fe51ec80d9fc512520a9023d40eb34ffac25800
BLAKE2b-256 checksum
How to use checksums
c74e9b1bc5667b83aeb04aa4282144bd99aacf975927093865bf5ea69f0d5743
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for promigence-openai-environments 0.1.0a1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release
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