Agent Sandbox Registry

awesome-templates

codex-agent-api/template.yaml

无中文版

codex-agent-api/template.yaml

name: codex-agent-api
version: "1.0.0"
description: "Self-hosted OpenAI Agents API compatible service powered by Codex CLI"
author: "alibaba-agent-sandbox"
tags:
  - codex
  - openai
  - agents-api
  - ai-agent
  - self-hosted

base: python:3.12-slim

system_packages:
  - python3
  - python3-pip
  - git
  - curl
  - wget
  - build-essential
  - ripgrep
  - jq

python_packages:
  - openai>=1.0
  - rich
  - httpx

node_packages:
  - "@openai/codex"

capabilities:
  - shell
  - files
  - code
  - ports

ports:
  - 9000


env:
  OPENAI_API_KEY: ""
  CODEX_MODEL: "codex-mini"
  AGENT_MAX_SESSIONS: "20"
  AGENT_SESSION_TTL: "1800"
  CODEX_SANDBOX_MODE: "true"
  WORKSPACE: "/app"

resources:
  cpu: 2
  memory: 4096