role-model (Codex)
SkillAI & modelsConnect Codex to a local role-model runtime via the codex-role-model adapter.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the role-model (Codex) skill
What this skill tells your AI
The instructions your AI receives, as published by try-works/role-model in packages/codex-role-model/skills/role-model/SKILL.md and read by ahel’s review.
Use the @try-works/codex-role-model CLI to point Codex at a local role-model runtime.
Setup (signed-in — keeps ChatGPT history)
- Start the role-model runtime (default
http://127.0.0.1:3456). - Run
codex-role-model setup(writesopenai_base_url+ merged catalog; does not force API login). - Run
codex-role-model start(adapter onhttp://127.0.0.1:3460/v1). - Fully quit and reopen Codex so it reloads user-level config.
- 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
- Provider keys are written only to user-level Codex config (
$CODEX_HOME/config.toml). Project.codex/config.tomlcannot setmodel_providers/openai_base_url. - Default signed-in mode preserves the ChatGPT session group. Do not set
forced_login_method=apiunless you accept hidden ChatGPT histories. - Codex hooks do not inject
role_model.intent; the local adapter does on role-model-routedPOST /v1/responses. - Compaction is Codex-managed. This adapter does not implement
/v1/responses/compact.
Diagnostics
codex-role-model doctorcodex-role-model statuscodex-role-model explain latest
Signals
- GitHub stars
- 115
- Forks
- 5
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
role-model- Source
- github.com/try-works/role-model