openai-api-server-via-codex
Lightweight OpenAI-compatible API server in Go, backed by your Codex/ChatGPT login. Use existing OpenAI clients within your Codex limits
File Explorer
- ci.yml
- release.yml
- main.go
- main_test.go
- codex-login-entrypoint.sh
- quick-start.png
- quick-start.svg
- go-vs-python-linux-amd64.json
- HEAD.md
- v0.0.2.md
- v0.0.3.md
- v0.0.4.md
- v0.0.5.md
- v0.1.0.md
- v0.1.1.md
- v0.1.2.md
- v0.1.3.md
- v0.1.4.md
- v0.1.5.md
- v0.1.6b1.md
- v0.1.6b2.md
- v0.2.0.md
- build-from-source.md
- docker.md
- go-migration.md
- performance.md
- release.md
- auth.go
- auth_test.go
- backend.go
- backend_auth_retry_test.go
- compat.go
- compat_test.go
- config.go
- config_test.go
- contract_test.go
- daemon.go
- daemon_test.go
- fuzz_test.go
- process_unix.go
- process_windows.go
- redaction.go
- redaction_test.go
- server.go
- server_test.go
- store.go
- server.go
- auth.go
- __init__.py
- __main__.py
- launcher.py
- build-platform-wheels.py
- build-release-archives.py
- release-notes.py
- run-platform-wheel-e2e.py
- binary_test.go
- live_test.go
- test_launcher.py
- test_live_codex_http_compatibility.py
- test_live_integration.py
- test_openai_client_contract.py
- test_package_metadata.py
- test_platform_wheel_e2e_script.py
- test_platform_wheels.py
- test_release_archives.py
- test_release_notes.py
- test_release_workflow.py
- .dockerignore
- .gitignore
- .python-version
- AGENTS.md
- CLAUDE.md
- docker-compose.yml
- Dockerfile
- go.mod
- go.sum
- LICENSE
- pyproject.toml
- README.md
- uv.lock
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
codex
View Details ▼
codex
Natural language code assistant for the terminal, powered by OpenAI.
Reads and edits files in your current directory to fulfill requests.
codex
Start an interactive Codex session in the current directory:
codex "{{prompt}}"
Run a single Codex command using a prompt:
codex --sandbox workspace-write "{{prompt}}"
Run a prompt allowing Codex to edit files in the workspace:
docker compose up
View Details ▼
docker compose up
Start and run Docker services defined in a Compose file.
docker compose up
Start all services defined in the docker-compose file:
docker compose up {{[-d|--detach]}}
Start services in the background (detached mode):
docker compose up --build
Start services and rebuild images before starting:
docker compose
View Details ▼
docker compose
Run and manage multi container Docker applications.
docker compose ps
List all running containers:
docker compose up {{[-d|--detach]}}
Create and start all containers in the background using a `docker-compose.yml` file from the current directory:
docker compose up --build
Start all containers, rebuild if necessary:
docker pull
View Details ▼
docker pull
This command is an alias of `docker image pull`.
tldr docker image pull
View documentation for the original command:
docker run
View Details ▼
docker run
This command is an alias of `docker container run`.
tldr docker container run
View documentation for the original command:
go build
View Details ▼
go build
Compile Go sources.
go build {{path/to/main.go}}
Compile a 'package main' file (output will be the filename without extension):
go build -o {{path/to/binary}} {{path/to/source.go}}
Compile, specifying the output filename:
go build -o {{path/to/binary}} {{path/to/package}}
Compile a package:
go install
View Details ▼
go install
Compile and install packages named by the import paths.
go install
Compile and install the current package:
go install {{path/to/package}}
Compile and install a specific local package:
go install {{golang.org/x/tools/gopls}}@{{latest}}
Install the latest version of a program, ignoring `go.mod` in the current directory:
go test
View Details ▼
go test
Test Go packages (files have to end with `_test.go`).
Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.
go test
Test the package found in the current directory:
go test -v
[v]erbosely test the package in the current directory:
go test -v ./...
Test the packages in the current directory and all subdirectories:
go vet
View Details ▼
go vet
Check Go source code and report suspicious constructs (e.g. lint your Go source files).
Go vet returns a non-zero exit code if problems are found; returns a zero exit code if no problems are found.
go vet
Check the Go package in the current directory:
go vet {{path/to/file_or_directory}}
Check the Go package in the specified path:
go tool vet help
List available checks that can be run with go vet:
serve
View Details ▼
serve
Static file serving and directory listing.
serve
Start an HTTP server listening on the default port to serve the current directory:
serve -p {{port}} {{path/to/directory}}
Start an HTTP server on a specific [p]ort to serve a specific directory:
serve {{[-C|--cors]}}
Start an HTTP server with CORS enabled by including the `Access-Control-Allow-Origin: *` header in all responses:
tar
View Details ▼
tar
Archiving utility.
Often combined with a compression method, such as `gzip` or `bzip2`.
tar cf {{path/to/target.tar}} {{path/to/file1 path/to/file2 ...}}
[c]reate an archive and write it to a [f]ile:
tar czf {{path/to/target.tar.gz}} {{path/to/file1 path/to/file2 ...}}
[c]reate a g[z]ipped archive and write it to a [f]ile:
tar czf {{path/to/target.tar.gz}} {{[-C|--directory]}} {{path/to/directory}} .
[c]reate a g[z]ipped (compressed) archive from a directory using relative paths:
uv run
View Details ▼
uv run
Run a command or script in the project environment.
uv run {{path/to/script.py}}
Run a Python script:
uv run {{[-m|--module]}} {{module_name}}
Run a Python module:
uv run {{[-w|--with]}} {{package}} {{command}}
Run a command with additional packages installed temporarily:
uv tool
View Details ▼
uv tool
Install and run commands provided by Python packages.
uv tool run {{command}}
Run a command from a package, without installing it:
uv tool install {{package}}
Install a Python package system-wide:
uv tool upgrade {{package}}
Upgrade an installed Python package:
uvx
View Details ▼
uvx
This command is an alias of `uv tool run`.
tldr uv tool
View documentation for the original command:
