Codex Local Python SDK Usage for Schema-Constrained Output
Use the third-party codex_local_sdk package to choose sync, async, or schema-constrained execution against a local Codex CLI.
中文Install in Codex
Codex, local Codex CLI, Python, the codex-local-sdk-python checkout, and non-sensitive fixture data.
- Open the pinned GitHub original and retain the complete `.agents/skills/codex-local-sdk-usage/` directory in the checkout.
- Open Codex in that checkout and invoke `$codex-local-sdk-usage` with the example task and desired output.
Example task
Invoke `$codex-local-sdk-usage` to produce JSON with `title` and `count` from three synthetic local bookmarks. Verify the field types.What to check
The example uses the repository SDK and produces a result that can be checked against the specified schema.
Original SKILL.md on GitHub · Updated
Frequently asked question
Is this the official Codex Python package?
This skill targets the third-party codex_local_sdk from the maestromaximo repository. Follow the pinned project docs for its interfaces.