Skip to content

docs(examples): spell out the codex-on-AgentKit deploy choices#609

Merged
zakahan merged 3 commits into
mainfrom
docs/codex-agentkit-deploy-steps
Jun 15, 2026
Merged

docs(examples): spell out the codex-on-AgentKit deploy choices#609
zakahan merged 3 commits into
mainfrom
docs/codex-agentkit-deploy-steps

Conversation

@yaozheng-fang

Copy link
Copy Markdown
Collaborator

Follow-up to the codex_runtime_on_agentkit example. Users deploying via the README hit the interactive agentkit config wizard and can pick the wrong options — most painfully the TOS bucket, which fails the build with a ListBuckets ownership error unless set to Auto.

The "3. Deploy to AgentKit" step now gives:

  • a copy-paste non-interactive agentkit config command (fill 3 <...> placeholders) → then launch / status / invoke.
  • the choices that matter if configuring interactively instead:
    • Launch type → cloud
    • TOS bucket → Auto (avoids the ListBuckets ownership failure)
    • Auth type → API Key (default; not custom_jwt)
    • API key name → Auto
    • Runtime role → the account's AgentKit runtime service role
    • Runtime env vars → the MODEL_AGENT_* set (required — the codex runtime needs MODEL_AGENT_API_BASE + MODEL_AGENT_API_KEY)

Both README.md and README.zh.md; markdownlint clean. These are the exact values used to deploy + verify the example end-to-end.

Users following the README hit the interactive `agentkit config` wizard and
could pick wrong (esp. the TOS bucket). Replace the bare command list in the
"Deploy" step with:

- a copy-paste non-interactive `agentkit config` command (3 placeholders), and
- the choices that matter if configuring interactively: launch type = cloud,
  TOS bucket = Auto (avoids the ListBuckets ownership failure), auth = API Key,
  runtime role, and the required MODEL_AGENT_* env vars.

zh + en.
…onal

Split the deploy config into explicit **Required** / **Optional** groups so
users know what they must fill: agent_name/entry_point/launch_type/region,
tos_bucket=Auto, runtime_role_name, and the MODEL_AGENT_ name/base/key env
vars are required; language/version, runtime_name, apikey name, auth type,
MODEL_AGENT_PROVIDER and OTEL_SDK_DISABLED are optional/defaulted. zh + en.
Per maintainer: MODEL_AGENT_* don't need to go in --runtime_envs (they are read
from the .env bundled into the image), and --runtime_role_name is auto-selected.
Show the minimal config command and move both to Optional; the required set is
agent_name/entry_point/language(+version)/launch_type/region/tos_bucket=Auto/
runtime_name/runtime_apikey_name + OTEL_SDK_DISABLED. zh + en.
@zakahan zakahan merged commit 5939bfc into main Jun 15, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants