npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@normahq/codex-acp-bridge

v1.6.3

Published

Meta package for codex-acp-bridge

Readme

codex-acp-bridge

test lint Go Report Card coverage npm version

Run Codex as an ACP agent.

codex-acp-bridge starts the local codex app-server backend and exposes it to Agent Client Protocol (ACP) clients over stdio. Use it when an ACP runner needs to talk to Codex through a stable command while keeping Codex authentication, session state, model selection, and tool behavior native to the Codex CLI.

It is not an OpenAI API proxy. It uses the authenticated Codex session on the machine where the bridge runs, so no OpenAI API key is required.

Requirements

  • codex CLI installed and available in PATH.
  • Authenticated Codex session on the host running the bridge.
  • Active Codex subscription.

Quickstart

Run the bridge with npx:

npx -y @normahq/codex-acp-bridge@latest

Inspect the ACP handshake:

npx -y @normahq/acp-dump -- npx -y @normahq/codex-acp-bridge@latest

Start an interactive ACP session:

npx -y @normahq/acp-repl -- npx -y @normahq/codex-acp-bridge@latest

Installation

Install globally if your ACP client expects a stable executable name:

npm install -g @normahq/codex-acp-bridge@latest

Then run:

codex-acp-bridge

What The Bridge Provides

  • ACP initialize, session/new, session/prompt, session/cancel, and session/resume backed by Codex app-server threads.
  • Durable ACP session IDs mapped directly to Codex app-server thread.id values.
  • ACP-native model handling through session/new.models and session/set_model.
  • ACP session configuration for model-advertised reasoning effort values.
  • Text and image prompt blocks.
  • Optional streaming for Codex agent messages and reasoning thoughts.
  • Per-session MCP server configuration from ACP mcpServers.
  • Raw terminal provider/app-server failure details preserved in session/prompt._meta.error.
  • Strict session/new._meta.codex validation for Codex-specific startup options.

For protocol-level details, see docs/usage.md and docs/json-api.md.

Runtime Options

codex-acp-bridge [flags]

Common flags:

  • --name: ACP agent name reported in initialize.agentInfo.name. Default: norma-codex-acp-bridge.
  • --message-streaming: stream Codex agentMessage deltas as ACP agent_message_chunk updates. Default: false.
  • --reasoning-streaming: stream Codex reasoning deltas live. Default: true.
  • --reasoning-thoughts: reasoning lane projected as ACP thoughts: off, summary, content, or both. Default: summary.
  • --debug: enable debug logging.

Examples:

codex-acp-bridge --name team-codex
codex-acp-bridge --message-streaming
codex-acp-bridge --reasoning-thoughts=both
codex-acp-bridge --reasoning-streaming=false
codex-acp-bridge --debug

Codex Session Metadata

Codex-specific session startup options belong under ACP session/new.params._meta.codex.

Supported keys include:

  • sandbox
  • approvalPolicy
  • approvalsReviewer
  • baseInstructions
  • developerInstructions
  • modelProvider
  • personality
  • serviceTier
  • ephemeral
  • profile
  • compactPrompt
  • config

Unknown keys are rejected with ACP invalid_params. ACP session IDs are generated by the backend; session/new._meta.sessionId is rejected.

Use ACP session/set_model for model changes instead of bridge-specific model flags; the model ID must be one advertised by Codex model/list. Use ACP mcpServers for per-session MCP servers; supported transports are stdio and http, while sse is rejected.

Links

  • Repository: https://github.com/normahq/codex-acp-bridge
  • Issues: https://github.com/normahq/codex-acp-bridge/issues
  • Releases: https://github.com/normahq/codex-acp-bridge/releases
  • npm package: https://www.npmjs.com/package/@normahq/codex-acp-bridge