Skip to main content

CLI to manage the OpenAI Responses Server that bridges chat completions to responses API calls

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

openai-responses-server

A server the serves any AI provider with OpenAI ChatCompletions as OpenAI's Responses API and hosted tools. I means it manages the stateful component of Responses API, and bridges Ollama, Vllm, LiteLLM and any other AI serving library. This means you can use OpenAI's new coding assistant "Codex", that needs Responses API endpoints.

It is still missing some features, but I would appreciate your support in stars, issues, suggestions and even pull requests if you are inclined for it.

I verified it works in my main repo, in my demo AI assistant that can hear, think and speak with the docker-compose-codex.yaml

Install today via pip: openai-responses-server

Roadmap

  • Tool run support (Tested with llama 3.2 3b on Ollama)
  • Validate work from CLI
  • dotenv support
  • State management (long term, not just in-memory)
  • Web search support (crawl4ai)
  • File upload + search
  • Code interpreter
  • Computer use

OpenAI API Configuration

OPENAI_BASE_URL_INTERNAL=# Your AI Provider host api. localhost for Ollama, Groq and even OpenAI
OPENAI_BASE_URL=http://localhost:8080 # IP and port of your openai-responses-server (ORS) OPENAI_API_KEY=sk-mockapikey123456789abcdefghijklmnopqrstuvwxyz # For Ollama, this should be mock. The key is tunneled to the provider

Server Configuration

API_ADAPTER_HOST=0.0.0.0 API_ADAPTER_PORT=8080

Logging Configuration (optional)

LOG_LEVEL=INFO LOG_FILE_PATH=./log/api_adapter.log

Installation

UV cli

Install uv if not installed yet. From: https://docs.astral.sh/uv/getting-started/installation/#standalone-installer

pip install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

or

powershell -c "irm https://astral.sh/uv/install.ps1 | more"

Setup environment with:

uv venv

Install dependecies with uv

uv pip install .
uv pip install -e ".[dev]"  # for development

Run server:

uv run src/openai_responses_server/cli.py start

📚 Citation

Cited projects

UncleCode. (2024). Crawl4AI: Open-source LLM Friendly Web Crawler & Scraper [Computer software]. GitHub. https://github.com/unclecode/crawl4ai

Cite this project

If you use openai-responses-server in your research or project, please cite:

Code citation format

@software{openai-responses-server, author = {TeaBranch}, title = {openai-responses-server: Open-source server the serves any AI provider with OpenAI ChatCompletions as OpenAI's Responses API and hosted tools.}, year = {2025}, publisher = {GitHub}, journal = {GitHub Repository}, howpublished = {\url{https://github.com/teabranch/openai-responses-server}}, commit = {Please use the commit hash you're working with} }

Text citation format:

TeaBranch. (2025). openai-responses-server: Open-source server the serves any AI provider with OpenAI ChatCompletions as OpenAI's Responses API and hosted tools. [Computer software]. GitHub. https://github.com/teabranch/openai-responses-server

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openai_responses_server-0.2.2.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openai_responses_server-0.2.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file openai_responses_server-0.2.2.tar.gz.

File metadata

  • Download URL: openai_responses_server-0.2.2.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for openai_responses_server-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7f9480e0d189032d5a130deba84e9ba553c7cec485fab28e97f66a9fce68bb83
MD5 9f58457285df8a2e30a7f042ff7cf28a
BLAKE2b-256 af410b802faab4c6c6961ccef2fe90e6cc5c77a75e990f4f05f15d22c4e5c9f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for openai_responses_server-0.2.2.tar.gz:

Publisher: publish.yml on teabranch/openai-responses-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openai_responses_server-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for openai_responses_server-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4873929957f3f8a2ed04d1b8cb29db6feac4d945496b74d00b5973a17fc96139
MD5 263a28e9a7cc311706ade665d5da7a3c
BLAKE2b-256 c991d3aa2d321b2085b9904033144f21799fa209f317ea96be61f6134daa0687

See more details on using hashes here.

Provenance

The following attestation bundles were made for openai_responses_server-0.2.2-py3-none-any.whl:

Publisher: publish.yml on teabranch/openai-responses-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page