Skip to content
Back to skills

Role Model

ASecurity

Connect Codex to a local role-model runtime via the codex-role-model adapter.

  • 118 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
ai-agentsgoapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add try-works/role-model --skill role-model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Role Model?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Role Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/try-works-role-model-ad75c1d2/badge)](https://www.skillsdirectory.com/skills/try-works-role-model-ad75c1d2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: role-model
description: Connect Codex to a local role-model runtime via the codex-role-model adapter.
---

# 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

- Provider keys are written only to **user-level** Codex config (`$CODEX_HOME/config.toml`). Project `.codex/config.toml` cannot set `model_providers` / `openai_base_url`.
- Default signed-in mode preserves the ChatGPT session group. Do not set `forced_login_method=api` unless you accept hidden ChatGPT histories.
- Codex hooks do **not** inject `role_model.intent`; the local adapter does on role-model-routed `POST /v1/responses`.
- Compaction is **Codex-managed**. This adapter does not implement `/v1/responses/compact`.

## Diagnostics

- `codex-role-model doctor`
- `codex-role-model status`
- `codex-role-model explain latest`

Files in this skill

  • SKILL.md1.5 KB
  • agents/openai.yaml239 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.