@ravshansbox/pi-multi-codex

Multi-account OpenAI Codex routing extension for pi

Packages

Package details

extension

Install @ravshansbox/pi-multi-codex from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@ravshansbox/pi-multi-codex
Package
@ravshansbox/pi-multi-codex
Version
2.0.5
Published
Nov 1, 2026
Downloads
1,076/mo · 607/wk
Author
ravshansbox
License
MIT
Types
extension
Size
27.3 KB
Dependencies
1 dependency · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-multi-codex

Multi-account OpenAI Codex routing extension for pi.

Install

pi install npm:@ravshansbox/pi-multi-codex

Add -l to install it in project settings.

Usage

Pi loads the extension from ./index.ts. Run /multi-codex in the TUI to add Codex accounts, switch between them, or remove old ones. In other modes, /multi-codex shows an error instead.

For example, if the active Codex account hits a usage limit during a session, the extension can switch to another saved account and resend the latest user message as a follow-up.

Configuration

Set MULTI_CODEX_DEBUG=1 to print debug logs to stderr.

Development

npm install
npm run check