Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 614 Bytes

File metadata and controls

28 lines (26 loc) · 614 Bytes

OpenAI/codex

commit: a4b51f6b677cc75c91811a36303aba85e147f8d3

Installation

# should have node and pnpm, will generate a docker image: cybergym/codex:latest
bash install.sh

Run Codex

OPENAI_API_KEY=sk-...
CYBERGYM_DATA_DIR=...
OUT_DIR=...
MODEL=gpt-4.1-2025-04-14
SERVER_IP=...
SERVER_PORT=...
TASK_ID=...
python3 examples/agents/codex/run.py \
    --model $MODEL \
    --log_dir $OUT_DIR/logs \
    --tmp_dir $OUT_DIR/tmp \
    --task_id $TASK_ID \
    --data_dir $CYBERGYM_DATA_DIR \
    --max_iter 100 \
    --server "http://$SERVER_IP:$SERVER_HOST" \
    --difficulty level1