Live now· #47 this week
HiAPI Codex CLI

HiAPI Codex CLI

Run Codex CLI against HiAPI's OpenAI-compatible GPT models

SubscriptionAICode49 impressions#47 this week1 comment

Comments

>log in to comment
  • sheepcubs[maker]· 9d ago

    Codex CLI lets you run GPT models from the command line via HiAPI. I built it to simplify connecting Codex to HiAPI with a one‑click CC Switch import or manual setup, supporting gpt‑6‑astra and other models. It works on macOS and Windows after installing Node.js and the CLI. Let me know what works well and what could be improved 😊

A setup guide for pointing Codex CLI at HiAPI instead of the default provider. It shows how to import the configuration with CC Switch and how to configure the CLI manually, so existing Codex workflows keep working while requests and billing go through one HiAPI key that also covers image, video, and text models.

More AI tools →80 free dev tools →

HiAPI Codex CLI lets you run Codex CLI against HiAPI's OpenAI-compatible GPT models using one API key.

for
Developers using Codex CLI who want to switch providers without changing their workflow
pricing
paid
works withNode.jsCodex CLICC Switch

Key features

6 features of HiAPI Codex CLI
  • One-click import via CC Switch — Import HiAPI configuration into Codex CLI instantly with the CC Switch tool.
  • Manual TOML configuration — Configure Codex CLI manually by editing a hiapi.config.toml file.
  • Node.js and Codex CLI setup — Guides installing Node.js LTS and the @openai/codex package.
  • Model selection in CLI — Choose HiAPI models like gpt-6-astra directly from the Codex input prompt.
  • Environment variable support — Set HIAPI_API_KEY in the terminal to authenticate requests.
  • Cross-platform instructions — Provides separate steps for macOS and Windows PowerShell.

Use cases

  • Run existing Codex scripts against HiAPI’s GPT-6-Astra model
  • Switch billing to a single HiAPI key covering text, image, and video models
  • Test new HiAPI models without reinstalling Codex

HiAPI Codex CLI vs alternatives

HiAPI Codex CLIluoluoAI
Best forRedirecting Codex CLI to HiAPI endpointsUnified model endpoint
PricingPaidOne time fee
DevHunt upvotes152
LaunchedNov 2026Sep 2026
  • HiAPI Codex CLI vs luoluoAI: Provides a single endpoint for all models, while HiAPI Codex CLI configures Codex specifically for HiAPI models

HiAPI Codex CLI FAQ

Why does Codex still ask to sign in to ChatGPT?+

The HiAPI provider card isn’t enabled or Codex wasn’t fully restarted; enable the card in CC Switch and relaunch Codex.

What if the /model command doesn’t list gpt-6-astra?+

The HiAPI provider isn’t active; ensure the HiAPI card is marked “In use” in CC Switch.

Why does manual configuration report “config cannot be found”?+

The file must be named hiapi.config.toml and placed in ~/.codex (or the directory set by CODEX_HOME) without a .txt suffix.

I get a 401 error after manual setup. What’s wrong?+

The HIAPI_API_KEY environment variable wasn’t set in the same terminal session; export it before starting Codex.

Summarized by DevHunt from hiapi.ai · Nov 10, 2026. Details may change; check the official site.