origo-newapi-init
v0.1.0
Published
One-click Codex bootstrap for Origo New API
Downloads
103
Readme
origo-newapi-init
Small npx bootstrap CLI for novice users of an OpenAI-compatible New API relay.
Current behavior:
- Configures Codex by default
- Uses
https://ai.xxread.top/v1as the default base URL - Prompts only for the user's own API key in interactive mode
- Writes
~/.codex/config.toml - Writes
~/.codex/auth.json - Writes a reusable shell env file with
OPENAI_BASE_URLandOPENAI_API_KEY - Supports Windows by generating
.cmdand.ps1scripts - Creates backups before overwriting existing files
- Keeps OpenClaw optional via
--with-openclaw - Works without any runtime dependencies
Example
npx origo-newapi-initNon-interactive:
npx origo-newapi-init \
--yes \
--api-key sk-xxxxWindows PowerShell:
npx origo-newapi-init --yes --api-key sk-xxxxRecommended product flow
For novice users, publish this package and show only one command in your docs:
npx origo-newapi-initThen let the wizard ask only:
- API key
Everything else defaults to your hosted relay endpoint and Codex settings.
Optional OpenClaw support
If you later want to write ~/.openclaw/openclaw.json too:
npx origo-newapi-init --with-openclaw