codex-a2a-setup

codex-a2a-setup is a skill for Claude Code, Codex from phamviet86/codex-a2a-gateway. It costs 49 tokens per session (693 once invoked), scanned A, original, Apache-2.0.

A setup guide for installing and repairing a local Codex A2A Gateway and connecting it to Codex or an inbound agent service. A2A means agent-to-agent communication between software agents.

In plain words
What is it for?
Use it when configuring, checking, or repairing the gateway and its Codex or Hermes client connections. It is for setup and readiness, not ordinary task delegation.
Why use it?
It reduces configuration mistakes during installation, authentication, and connection setup. It preserves the user's selected workspace, host, mode, and existing credentials.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it when configuring, checking, or repairing the gateway and its Codex or Hermes client connections. It is for setup and readiness, not ordinary task delegation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phamviet86/codex-a2a-gateway/codex-a2a-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add phamviet86/codex-a2a-gateway --skill codex-a2a-setup
Clone the repo
git clone --depth 1 https://github.com/phamviet86/codex-a2a-gateway

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-a2a-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/phamviet86/codex-a2a-gateway/codex-a2a-setup/github.svg)](https://agentmods.dev/skills/phamviet86/codex-a2a-gateway/codex-a2a-setup)
Your own site
<a href="https://agentmods.dev/skills/phamviet86/codex-a2a-gateway/codex-a2a-setup"><img src="https://agentmods.dev/badge/skills/phamviet86/codex-a2a-gateway/codex-a2a-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex-a2a-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/phamviet86/codex-a2a-gateway/codex-a2a-setup"><img src="https://agentmods.dev/badge/skills/phamviet86/codex-a2a-gateway/codex-a2a-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 693 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.00693
Opus 5 $0.00024 $0.00347
Sonnet 5 $0.00010 $0.00139
Haiku 4.5 $0.00005 $0.00069

Measured 3d ago against content hash c9c19582d556, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-17, from the pricing page.

Security

Grade A, and why

codex-a2a-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/codex_a2a_gateway/skills/codex-a2a-setup/SKILL.md · 21 lines

What it actually says

Set up Codex A2A Gateway

Complete the requested installation using the existing CLI; this skill is the setup workflow. Preserve the user's selected host, workspace, mode, and existing authentication. Ask only for required values that cannot be obtained from the request or current configuration.

Read runtime.json, generated by install-skills, for the absolute Python command array. Append CLI arguments to that array using a subprocess argument list; do not execute a JSON string as shell code. Run --version and --help before configuration. The reference contains no credentials and works outside the original checkout. If its Python was moved or removed, reinstall the package/skills using the selected replacement environment; do not silently select an unrelated PATH executable.

  1. Determine outbound (Codex asks Hermes), inbound (A2A client asks Codex), or both. Reuse a settled choice; ask once if direction is materially unknown. Only inbound needs an explicit Codex workspace. Generic inbound A2A clients do not require Hermes.
  2. Inspect existing registrations and selected host prerequisites. Outbound requires a configured Hermes default agent and active local Hermes A2A platform. Inbound requires a Codex CLI with existing sign-in and accessible workspace. Provider login belongs to Codex/Hermes: there is no universal gateway API key. Do not solicit or print tokens in chat.
  3. Follow the relevant sections of workstation configuration. Preserve unrelated client entries and Hermes settings. Keep A2A on loopback. Use an absolute, persistent launcher when configuration must survive GUI launches; shell-only export is insufficient. Install startup services only when the user requests or opts into automatic startup.
  4. Run doctor --mode for the selected direction through the same launcher/environment used at runtime. Outbound mode checks Hermes; inbound mode checks the local gateway, workspace and Codex executable without Hermes. Read-only checks do not prove sign-in or model execution. Confirm MCP registration and tool discovery from a fresh client session. Already installed skills can be checked with install-skills --check --dest <current-skills-root> (derive the root from this skill directory, retaining a custom install destination); differing managed files require review before --replace.
  5. If the user has authorized a live model test, send one harmless uniquely identified task for each selected direction and retrieve its result. Otherwise report live execution unverified. Retain stable task handles; never resend after an ambiguous timeout.

If a gateway-created Codex worker needs RAG, verify local-rag-mcp registration in the actual execution host/Codex configuration and verify discovery or a harmless retrieval in that worker context. Same-host configuration may already provide it; Desktop-injected tools/plugins are not automatically inherited. Do not infer availability from the Desktop tool list or gateway health.

Finish with installed runtime, selected direction/workspace, readiness evidence, and any missing prerequisite. Distinguish configured transport from verified model execution. For normal work use the installed codex-a2a skill; do not rerun setup for every task.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 21 lines · 49 tokens per session scan A c9c19582d556

Subscribe to this mod's changes

codex-a2a-setup is a skill published in the GitHub repository phamviet86/codex-a2a-gateway (0 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 693 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-14.