Role model

From try-works/role-model · View interactive version

Role model is an AI agent skill from the GitHub repository try-works/role-model. Connect Codex to a local role-model runtime via the codex-role-model adapter.

How to use this skill

Skill file

role-model (Codex)

Use the @try-works/codex-role-model CLI to point Codex at a local role-model runtime.

Setup (signed-in — keeps ChatGPT history)

  1. Start the role-model runtime (default http://127.0.0.1:3456).
  2. Run codex-role-model setup (writes openai_base_url + merged catalog; does not force API login).
  3. Run codex-role-model start (adapter on http://127.0.0.1:3460/v1).
  4. Fully quit and reopen Codex so it reloads user-level config.
  5. Native GPT models stay in the picker; role-model strategy/model ids are added in the merged catalog. Select a role-model id for routed turns; GPT models still go to ChatGPT via the adapter.

Never paste API keys or bearer tokens into chat.

Important truths

Diagnostics

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.