openai-api-server-via-codex

(★ 43)

Lightweight OpenAI-compatible API server in Go, backed by your Codex/ChatGPT login. Use existing OpenAI clients within your Codex limits

파일 탐색기

  • .dockerignore
  • .gitignore
  • .python-version
  • AGENTS.md
  • CLAUDE.md
  • docker-compose.yml
  • Dockerfile
  • go.mod
  • go.sum
  • LICENSE
  • pyproject.toml
  • README.md
  • uv.lock

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

codex

설명 보기 ▼

OpenAI로 구동되는 터미널용 자연어 코드 어시스턴트.
요청을 수행하기 위해 현재 디렉터리의 파일을 읽고 수정.
더 많은 정보: <https://developers.openai.com/codex/cli/reference>.

codex

현재 디렉터리에서 대화형 Codex 세션을 시작:

codex "{{prompt}}"

프롬프트를 사용해 단일 Codex 명령을 실행:

codex --sandbox workspace-write "{{prompt}}"

프롬프트를 전체 자동 모드로 실행:

🔍

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

설명 보기 ▼

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

설명 보기 ▼

This command is an alias of `docker image pull`.

tldr docker image pull

View documentation for the original command:

🔍

docker run

설명 보기 ▼

This command is an alias of `docker container run`.

tldr docker container run

View documentation for the original command:

🔍

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

설명 보기 ▼

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

설명 보기 ▼

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

설명 보기 ▼

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

설명 보기 ▼

정적 파일 제공 및 디렉토리 목록화 도구.
더 많은 정보: <https://github.com/vercel/serve>.

serve

기본 포트에서 현재 디렉토리를 제공하는 HTTP 서버 시작:

serve -p {{port}} {{path/to/directory}}

특정 [p]포트에서 특정 디렉토리를 제공하는 HTTP 서버 시작:

serve {{[-C|--cors]}}

모든 응답에 `Access-Control-Allow-Origin: *` 헤더를 포함하여 CORS가 활성화된 HTTP 서버 시작:

🔍

tar

설명 보기 ▼

아카이브 유틸리티.
종종 `gzip` 또는 `bzip2`와 같은 압축 방법과 결합하여 사용됩니다.
더 많은 정보: <https://www.gnu.org/software/tar/manual/tar.html>.

tar cf {{path/to/target.tar}} {{path/to/file1 path/to/file2 ...}}

아카이브 생성 후 파일로 저장:

tar czf {{path/to/target.tar.gz}} {{path/to/file1 path/to/file2 ...}}

g[z]ipped 아카이브 생성 후 파일로 저장:

tar czf {{path/to/target.tar.gz}} {{[-C|--directory]}} {{path/to/directory}} .

디렉토리에서 상대 경로를 사용하여 g[z]ipped (압축된) 아카이브 생성:

🔍

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

설명 보기 ▼

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

설명 보기 ▼

이 명령은 `uv tool run`의 별칭입니다.

tldr uv tool

자세한 내용은 원본 명령을 참고하세요:

# 프로젝트 배지

// repository documentation